Restore of the system controller fails if backup is taken with unprovisioned host.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Virginia Martins Perozim |
Bug Description
Brief Description
-----------------
Restore of the system controller fails if backup is taken with unprovisioned host.
Severity
--------
Major: Restore fails and system not usable after that
Steps to Reproduce
------------------
1. Backup the system with unprovisioned host
$ansible-playbook /usr/share/
2. Reinstall controller-0
3. Restore controller-0 from backup file
ansible-playbook /usr/share/
Expected Behavior
------------------
Backup and Restore should end with success.
Actual Behavior
----------------
Backup was successful and restore fails
Reproducibility
---------------
Reproducible
System Configuration
-------
DC system, AIO-DX, Standard
Branch/Pull Time/Commit
-------
master
Last Pass
---------
N/A
Timestamp/Logs
--------------
TASK [recover-ceph-data : Get list of OSDs defined in /etc/ceph/
changed: [localhost]
TASK [recover-ceph-data : Remove "[osd.*]" sections from /etc/ceph/
changed: [localhost] => (item=osd.0)
TASK [recover-ceph-data : Set initial ceph-mon name] *******
ok: [localhost]
TASK [recover-ceph-data : Update host config data to get ceph-mon size] *******
changed: [localhost]
TASK [recover-ceph-data : Fail if host hieradata cannot be generated] *******
fatal: [localhost]: FAILED! => changed=false
msg: Failed to create puppet hiera host config.
PLAY RECAP *******
Test Activity
-------------
Regression Testing
Workaround
----------
watch the playbook output until this completes
2021-11-10 18:32:26,797 p=10486 u=sysadmin | Wednesday 10 November 2021 18:32:26 +0000 (0:01:30.560) 0:32:12.449 ****
2021-11-10 18:32:27,033 p=10486 u=sysadmin | changed: [localhost]
2021-11-10 18:32:27,038 p=10486 u=sysadmin | TASK [restore-
Then issue system host-delete 3
Changed in starlingx: | |
assignee: | nobody → Virginia Martins Perozim (vmperozim) |
status: | New → In Progress |
tags: | added: stx.update |
tags: | added: stx.7.0 |
Changed in starlingx: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/828914
Review: https:/