StarlingX Ansible Playbooks
Go to file
Ovidiu Poncea 038ef7ff35 B&R: Recover Ceph monitor data at restore on AIO-SX
This commit implements the recovery procedure for Ceph monitor data
as the last step in the restore procedure.

This procedure involves the following steps:
1. Recover ceph.conf from backup tarball;
2. Create folder for every ceph osd under '/var/lib/ceph/osd'
   and mount in there the ceph osds by parsing the 'ceph-disk list'
   output e.g ceph-disk list 2>/dev/null
/dev/sdc :
 /dev/sdc1 ceph data, active, cluster ceph, osd.1,
 osd uuid 7ce96cba-ee43-4616-966c-652e1d7da80a, journal /dev/sdc2
 /dev/sdc2 ceph journal, for /dev/sdc1
3. Create a ceph-mon logical volume (ceph-mon-lv) with 'lvcreate'
4. Format ceph-mon-lv with ext4 file system
5. Mount ceph-mon-lv in /var/lib/ceph/mon
6. Create a ceph-mon fs with:
   ceph-mon --mkfs -i controller-0
7. Start ceph-mon
8. Collect data from osds (store.db file) using "ceph-objectstore-tool"
   to create a new store.db
8. Stop ceph-mon
9. Copy the newly created store.db over the one in /var/lib/ceph/mon
10. Start ceph-mon/ceph-mgr/osds

Co-Authored-By: Elena Taivan <elena.taivan@windriver.com>
Change-Id: I96c1c749dfa5a2ce92bce12469ac6ec5e6051e9a
Story: 2004761
Task: 36200
Depends-On: Id56789db11c1fb180608975a962baf19514d8da6
Signed-off-by: Ovidiu Poncea <ovidiu.poncea@windriver.com>
2019-09-27 17:00:41 +03:00
examples/remote Improve bootstrap failure recovery in replay 2019-07-09 11:49:55 -04:00
playbookconfig B&R: Recover Ceph monitor data at restore on AIO-SX 2019-09-27 17:00:41 +03:00
.gitignore Fixing up tox -e cover for stx-config 2018-12-20 08:53:15 -06:00
.gitreview Added .gitreview 2019-06-15 14:03:07 -05:00
.yamllint Enable yamllint for ansible playbook .yml files 2019-06-24 13:27:26 -05:00
.zuul.yaml Initial zuul / TOX setup 2019-06-15 14:03:17 -05:00
centos_iso_image.inc Fix remote bootstrap from Windows control host 2019-07-09 17:28:06 -04:00
centos_pkg_dirs Clean up repo import 2019-06-15 14:21:19 -05:00
CONTRIBUTORS.wrs Clean up repo import 2019-06-15 14:21:19 -05:00
LICENSE Clean up repo import 2019-06-15 14:21:19 -05:00
README.rst Set PLATFORM_RELEASE=19.09 2019-08-16 14:32:25 -04:00
test-requirements.txt Initial zuul / TOX setup 2019-06-15 14:03:17 -05:00
tox.ini Enable yamllint for ansible playbook .yml files 2019-06-24 13:27:26 -05:00

stx-ansible-playbooks

StarlingX Bootstrap and Deployment Playbooks

Execution environment

  • Unix like OS (recent Linux based distributions, MacOS, Cygwin)
  • Python 2.7

Additional Required Packages

The playbooks in this repo have been verified with the following versions of Ansible and StarlingX playbooks dependencies:

  • sshpass 1.06
  • python2-ptyprocess 0.5
  • python2-pexpect 4.6
  • python2-netaddr 0.7
  • ansible 2.7.5

Supported StarlingX Releases

The playbooks in this repo are compatible with the following StarlingX releases:

  • 19.09

Executing StarlingX Playbooks

Executing Bootstrap Playbook

Please refer to StarlingX Deployment Guides, section Configuration controller-0 of the respective system configuration for instructions on how to set up and execute the bootstrap playbook from another host.

References