Update proposed action in "dcmanager subcloud error" for bootstrap failure

Update the proposed action displayed by "dcmanager subcloud error"
command when a subcloud is in bootstrap-failed state.
Instead of suggesting the deletion and reinstall of the subcloud,
it should indicate the usage of "dcmanager subcloud deploy resume"
after the cause of the failure has been resolved.

Test plan:
1. PASS: deploy a subcloud with the wrong password in
bootstrap-values file and verify that the error message
displayed in "dcmanager subcloud error <subcloud>"
informs the new proposed action.

Closes-Bug: 2065189

Change-Id: Ie41b38c5b527424bdd64ca5af1ed59c91bf03e70
Signed-off-by: Raphael Lima <Raphael.Lima@windriver.com>
This commit is contained in:
Raphael Lima 2024-05-08 11:32:00 -03:00
parent 0a3c96c766
commit e999c89c52
1 changed files with 2 additions and 2 deletions

View File

@ -248,8 +248,8 @@ CONFIG_ERROR_MSG = DEPLOY_STATE_CONFIG_FAILED
ERR_MSG_DICT = {
BOOTSTRAP_ERROR_MSG: "For bootstrap failures, please delete and re-add "
"the subcloud after the cause of failure has been "
BOOTSTRAP_ERROR_MSG: "For bootstrap failures, please use 'dcmanager subcloud "
"deploy resume' after the cause of failure has been "
"resolved.",
CONFIG_ERROR_MSG: "For configuration failures, please use dcmanager subcloud "