Backup & Restore: Ansible restore playbook fails in Restore armada manifests task -Armada folder was not restored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Thiago Paiva Brito |
Bug Description
*+Brief Description+*
Fail trying to run the restore playbook.
*+Severity+*
<Critical: System/Feature is not usable after the defect>
*+Steps to Reproduce+*
* Install a simplex system with StarlingX master
* Run the Backup Ansible playbook from controller-0
* Install a clean image of StarlingX in the system with wipedisk=false
* Run the restore Ansible playbook locally with the backup file saved above
*+Expected Behavior+*
Run the ansible restore playbook and unlock the controller successfully.
*+Actual Behavior+*
The execution of the ansible restore playbook fails.
*+Reproducibility+*
Reporducible
*+System Configuration+*
SX IPv4
*+Timestamp/Logs+*
*ansible.log issue:*
{code:java}
2022-06-21 14:24:51,897 p=11492 u=sysadmin | Tuesday 21 June 2022 14:24:51 +0000 (0:00:12.260) 0:28:24.793 **********
2022-06-21 14:25:04,032 p=11492 u=sysadmin | failed: [localhost] (item=opt/
cmd:
- tar
- -C
- /
- --overwrite
- -xpf
- /scratch/
- opt/platform/
delta: '0:00:11.965780'
end: '2022-06-21 14:25:03.999967'
item: opt/platform/
msg: non-zero return code
rc: 2
start: '2022-06-21 14:24:52.034187'
stderr: |-
tar: opt/platform/
tar: Exiting with failure status due to previous errors
stderr_lines:
- 'tar: opt/platform/
- 'tar: Exiting with failure status due to previous errors'
stdout: ''
stdout_lines: <omitted>
2022-06-21 14:25:04,033 p=11492 u=sysadmin | PLAY RECAP *******
2022-06-21 14:25:04,033 p=11492 u=sysadmin | localhost : ok=481 changed=269 unreachable=0 failed=1
2022-06-21 14:25:04,033 p=11492 u=sysadmin | Tuesday 21 June 2022 14:25:04 +0000 (0:00:12.136) 0:28:36.930 ********** {code}
Armada folder is missed or not restored.
{code:java}
controller-0:~$ ls /opt/platform/
config device_images extra helm_charts keystone lost+found puppet sysinv
{code}
*+Alarms+*
{code:java}
[sysadmin@
+------
| Alarm ID | Reason Text | Entity ID | Severity | Time Stamp |
+------
| 200.001 | controller-0 was administratively locked to take it out-of-service. | host=controller-0 | warning | 2022-06-21T14:17:41 |
| | | | | .556522 |
| | | | | |
+------
*+Test Activity+*
Regression Testing
*+Workaround+*
Manually edit the playbook to remove the restore condition
Changed in starlingx: | |
assignee: | nobody → Thiago Paiva Brito (outbrito) |
tags: | added: stx.7.0 stx.update |
Changed in starlingx: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/847076
Review: https:/