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
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