Incorrect rehoming error message when DX subcloud controller-1 is the active controller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
srana |
Bug Description
Brief Description
-----------------
The Rehoming Ansible Playbook is failing as expected when controller-1 is the Active Controller for an AIO-DX subcloud; however, the error message is showing that the target is not a subcloud, which may confuse the user.
msg: The target is not a subcloud. Only subclouds can be rehomed.
Severity
--------
Minor
Steps to Reproduce
------------------
1. Install 2 System Controllers (S1 & S2) for Rehoming a subcloud
2. Deploy and Manage an AIO-DX subcloud on S1
3. Unmanage AIO-DX HW subcloud on S1
4. Swact subcloud controller-0, making controller-1 the active controller
5. Connect to S2 and initiate the rehoming
Expected Behavior
------------------
Rehoming playbook displaying a message that rehoming cannot be performed as controller-0 is not the active controller
Actual Behavior
----------------
Rehoming playbook displaying a message that rehoming cannot be performed that the target is not a subcloud
Reproducibility
---------------
100%
System Configuration
-------
2 DC Systems
Branch/Pull Time/Commit
-------
Master
Last Pass
---------
N/A
Timestamp/Logs
--------------
TASK [rehome-
Wednesday 17 January 2024 20:24:02 +0000 (0:00:07.240) 0:00:13.269 *****
fatal: [subcloud4008]: FAILED! => changed=false
msg: The target is not a subcloud. Only subclouds can be rehomed.
PLAY RECAP *******
subcloud4008 : ok=15 changed=4 unreachable=0 failed=1 skipped=18 rescued=0 ignored=0
Test Activity
-------------
Evaluation
Workaround
----------
Ignore the error message and swact to controller-0.
tags: | added: stx.9.0 stx.distcloud |
Changed in starlingx: | |
assignee: | nobody → srana (salmanr) |
importance: | Undecided → Low |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/906744
Review: https:/