StarlingX Ansible Playbooks
038ef7ff35
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> |
||
---|---|---|
examples/remote | ||
playbookconfig | ||
.gitignore | ||
.gitreview | ||
.yamllint | ||
.zuul.yaml | ||
centos_iso_image.inc | ||
centos_pkg_dirs | ||
CONTRIBUTORS.wrs | ||
LICENSE | ||
README.rst | ||
test-requirements.txt | ||
tox.ini |
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.