Subcloud rename is working in managed state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Cristian Mondo |
Bug Description
Brief Description
-----------------
I was able to modify subcloud name in managed state using update command:
dcmanager subcloud update subcloud1 --name subcloud2
Severity
--------
Critical: System/Feature is not usable after the defect.
Steps to Reproduce
-----------------
$ dcmanager subcloud list
$ dcmanager subcloud update subcloud1 --name subcloud2
$ dcmanager subcloud list
Expected Behavior
-----------------
It should display the following error message:
The server could not comply with the request since it is either malformed or otherwise incorrect. Subcloud <subcloud_name> must be unmanaged and in a valid deploy state for the subcloud rename operation.
ERROR (app) Unable to update subcloud <subcloud_name>
Actual Behavior
-----------------
[sysadmin@
+----+-
| id | name | management | availability | deploy status | sync | backup status | backup datetime |
+----+-
| 1 | subcloud1 | managed | online | complete | in-sync | None | None |
+----+-
[sysadmin@
+------
| Field | Value |
+------
| id | 1 |
| name | subcloud2 |
| description | None |
| location | None |
| software_version | 23.09 |
| management | managed |
| availability | online |
| deploy_status | complete |
| management_subnet | fd00:32:66::/64 |
| management_start_ip | fd00:32:66::2 |
| management_end_ip | fd00:32:66::ffff |
| management_
| systemcontrolle
| group_id | 1 |
| peer_group_id | None |
| rehome_data | None |
| created_at | 2023-09-
| updated_at | 2023-09-
| backup_status | None |
| backup_datetime | None |
+------
[sysadmin@
+----+-
| id | name | management | availability | deploy status | sync | backup status | backup datetime |
+----+-
| 1 | subcloud2 | managed | online | complete | in-sync | None | None |
+----+-
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.9.0 stx.distcloud |
Changed in starlingx: | |
assignee: | nobody → Cristian Mondo (cmondo) |
Fix proposed to branch: master /review. opendev. org/c/starlingx /distcloud/ +/896861
Review: https:/