-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhos-18.0 FR 1 (Nov 2024)
-
None
-
2
-
False
-
-
False
-
Proposed
-
RHOSSTRAT-168 - Support Cell deletion
-
None
-
-
-
Compute Next Sprint Candidates
-
1
-
Moderate
While cell deletion is progressing or failed the Nova Ready condition remains True and there is no indication to the user that the spec change is not reflected in the world and there is not way to the user to know what step is failed when the deletion fails.
To reproduce you can try to delete a cell while there is still computes in it (which is not a valid scenario but it is easy to use to inject an error to the cell deletion process). The cell deletion job will fail as nova-manage cell_v2 delete_cell command will fail as HostMapping is still present, but Nova CR still reports Ready=True all the time.
❯ oc get Nova/nova -o yaml | yq '.status.conditions[0]' lastTransitionTime: "2024-10-28T14:00:48Z" message: Setup complete reason: Ready status: "True" type: Ready ❯ oc patch OpenStackControlPlane openstack-galera-network-isolation --type='json' -p='[{"op": "remove", "path": "/spec/nova/template/cellTemplates/cell1"}]' openstackcontrolplane.core.openstack.org/openstack-galera-network-isolation patched ❯ oc get job nova-cell1-cell-delete NAME COMPLETIONS DURATION AGE nova-cell1-cell-delete 0/1 25s 25s ❯ oc get pod | grep nova-cell1-cell-delete nova-cell1-cell-delete-glcrw 0/1 CrashLoopBackOff 2 (15s ago) 35s ❯ oc get Nova/nova -o yaml | yq '.status.conditions[0]' lastTransitionTime: "2024-10-28T14:21:00Z" message: Setup complete reason: Ready status: "True" type: Ready