Backup & Restore: Remote restore fail gathering SSH public key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Luis Eduardo Bonatti |
Bug Description
Brief Description
-----------------
IPV4 AIO-DX remote restore fail while running restore bootstrap.
Severity
--------
<Major: System/Feature is usable but degraded>
Steps to Reproduce
------------------
Running backup remotely
Copy the playbooks directory from target host to your
Reinstall controller
Copy the backup tarball file in the controller-0
Restore remotely using the backup file
Expected Behavior
------------------
Controller restore successful
Actual Behavior
----------------
Controller restore fail
Reproducibility
---------------
Reproducible
System Configuration
-------
IPV4 AIO-DX
Branch/Pull Time/Commit
-------
Master
Last Pass
---------
Timestamp/Logs
--------------
Test Activity
-------------
Workaround
----------
Changed in starlingx: | |
status: | New → In Progress |
tags: | added: stx.update |
Changed in starlingx: | |
assignee: | nobody → Luis Eduardo Bonatti (lbonatti) |
importance: | Undecided → Medium |
tags: | added: stx.7.0 |
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/845187 /opendev. org/starlingx/ ansible- playbooks/ commit/ 959037a0a9f1825 2a1a5acb505cef7 c85ddcfd63
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 959037a0a9f1825 2a1a5acb505cef7 c85ddcfd63
Author: lbonatti <email address hidden>
Date: Thu Jun 9 00:04:27 2022 -0400
Fix remote restore fail gathering SSH public key
The error is because the output of the command
return a dict that do not contain the stdout key.
The output contains the error saying "no password
was provided". So the fix deactivate privilege
escalation and with that prevents the attribute error.
Test plan:
AIO-DX:
PASS: Run a full remote restore sucessfully
PASS: Run the remote restore playbooks sucessfully
PASS: Unlock controller-0 sucessfully
PASS: Unlock controller-1 sucessfully
AIO-SX:
PASS: Run a full remote restore sucessfully
PASS: Run the remote restore playbooks sucessfully
PASS: Run the remote restore playbooks as root sucessfully
PASS: Unlock controller-0 sucessfully
Closes-bug: 1978879
Signed-off-by: lbonatti <email address hidden> 422267ce677dea2 5ab7289e7b1
Change-Id: I09c1c99c749ee0