Unable to run DC orchestration after rehoming a subcloud that has an existing VIM strategy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Gustavo Herzmann |
Bug Description
Brief Description
-----------------
If a subcloud that contains an existing VIM strategy is rehomed, the DC orchestration will fail when trying to apply a different strategy type because it can't create e new strategy while another one already exists.
It doesn't have context about the existing strategy, so the strategy needs to be automatically deleted after the rehome operation is complete.
Severity
--------
<Major: System/Feature is usable but degraded>
Steps to Reproduce
------------------
Create a VIM strategy on the subcloud;
Rehome the subcloud;
Try to run DC orchestrator by applying a different type of strategy.
Expected Behavior
------------------
Subcloud should not contain any existing strategies after a successful rehome;
The DC orchestrator should be able to create the new strategy without conflicts
Actual Behavior
----------------
Subcloud has an existing strategy after rehoming. DC orchestrator fails due to conflict with existing strategy.
Reproducibility
---------------
100% reproducible
System Configuration
-------
Distributed cloud system
Branch/Pull Time/Commit
-------
Master (2024-02-13)
Last Pass
---------
The behavior always has been like this
Timestamp/Logs
--------------
$ dcmanager strategy-step list
| cloud | stage | state | details started_at | finished_at | | subcloud3 | 3 | failed | creating vim kube rootca update strategy: Operation failed: conflict detected. strategy already exists of type:kube-upgrade | 2024-02-05 13:12:40.429065 | 2024-02-05 13:13:02.345736 |
Test Activity
-------------
Feature Testing
Workaround
----------
Manually delete the existing VIM strategy on the subcloud using the sw-manager CLI
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.9.0 stx.distcloud |
Changed in starlingx: | |
assignee: | nobody → Gustavo Herzmann (gherzman) |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/908945
Review: https:/