Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-10981

Set Nova's Ready condition when cell deletion is ongoing or failed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhos-18.0 FR 1 (Nov 2024)
    • nova-operator
    • 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
      

              ksambor@redhat.com Kamil Sambor
              rh-ee-bgibizer Balazs Gibizer
              rhos-dfg-compute
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: