dcmanager subcloud-backup create error message misleading when subcloud is in pre-deploy state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Hugo Nicodemos Brito |
Bug Description
Brief Description
-----------------
dcmanager subcloud-backup create error message misleading when subcloud is in pre-install state. The code must check both deploy status and availability for the error message
$ dcmanager subcloud list
+----+-
| id | name | management | availability | deploy status | sync | backup status | backup datetime |
+----+-
| 1 | subcloud6 | unmanaged | online | pre-install | out-of-sync | complete | 2022-09-25 23:49:08.049246 |
| 2 | subcloud8 | managed | online | complete | in-sync | unknown | None |
+----+-
$ dcmanager subcloud-backup
create delete
$ dcmanager subcloud-backup create --subcloud subcloud6 --sysadmin-password Li69nux*
Operation not allowed while subcloud is unmanaged. Please manage the subcloud and try again.
Severity
--------
Minor: The error doesn't affect the functionality
Steps to Reproduce
------------------
1. Restore the subcloud then perform backup create
Expected Behavior
------------------
Create a backup of the subcloud.
Actual Behavior
----------------
Operation is not allowed.
Reproducibility
---------------
<Reproducible>
100% reproducible.
System Configuration
-------
Distributed Cloud.
Branch/Pull Time/Commit
-------
master
Last Pass
---------
NA
Timestamp/Logs
--------------
NA
Test Activity
-------------
NA
Workaround
----------
NA
Changed in starlingx: | |
importance: | Undecided → Low |
assignee: | nobody → Hugo Nicodemos Brito (hbrito) |
tags: | added: stx.8.0 stx.distcloud |
Fix proposed to branch: master /review. opendev. org/c/starlingx /distcloud/ +/860597
Review: https:/