Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-16597

A Master Machine is stuck in deleting state after replacing the network by a wrong one in CPMS and updating it back

    XMLWordPrintable

Details

    • +
    • Important
    • No
    • ShiftStack Sprint 240, ShiftStack Sprint 241, ShiftStack Sprint 243, ShiftStack Sprint 244, ShiftStack Sprint 245
    • 5
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      Changes to existing {{Machine}} CRs are not reflected in the underlying OpenStack instance. However, if an existing {{Machine}} was modified to use an invalid resource (such as a non-existent network) the changes, a later attempt to delete the machine would result in the machine getting stuck in the {{deleting}} state. This has now been addressed and {{Machine}} will be deleted as expected.
      Show
      Changes to existing {{Machine}} CRs are not reflected in the underlying OpenStack instance. However, if an existing {{Machine}} was modified to use an invalid resource (such as a non-existent network) the changes, a later attempt to delete the machine would result in the machine getting stuck in the {{deleting}} state. This has now been addressed and {{Machine}} will be deleted as expected.
    • Bug Fix

    Description

      Description of problem:

      After updating a CPMS CR with a non-existent network a machine is stuck in provisioning state.
      The when updating the CPMS with the previous one the Master Machine is stuck in deleting state 
      
      Logs from the machine api controller:
      I0720 13:03:58.894171       1 controller.go:187] ostest-2pwfk-master-xwprn-0: reconciling Machine
      I0720 13:03:58.902876       1 controller.go:231] ostest-2pwfk-master-xwprn-0: reconciling machine triggers delete
      E0720 13:04:00.200290       1 controller.go:255] ostest-2pwfk-master-xwprn-0: failed to delete machine: filter matched no resources
      E0720 13:04:00.200499       1 controller.go:329]  "msg"="Reconciler error" "error"="filter matched no resources" "controller"="machine-controller" "name"="ostest-2pwfk-master-xwprn-0" "namespace"="openshift-machine-api" "object"={"name":"ostest-2pwfk-master-xwprn-0","namespace":"openshift-machine-api"} "reconcileID"="9ccb5885-4b9f-4190-95a2-1120f2566c52"

      Version-Release number of selected component (if applicable):

      OCP 4.14.0-0.nightly-2023-07-18-085740
      RHOS-17.1-RHEL-9-20230712.n.1

      How reproducible:

      100%

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

      Attachments

        Issue Links

          Activity

            People

              sfinucan@redhat.com Stephen Finucane
              itbrown@redhat.com Itshak Brown
              Itshak Brown Itshak Brown
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: