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

Controlplanmachineset couldn't be created after deleting a machineset

    XMLWordPrintable

Details

    • CLOUD Sprint 226
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A

    Description

      Description of problem:

      Controlplanmachineset couldn't be created after deleting a machineset

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

      4.12.0-0.nightly-2022-10-25-210451

      How reproducible:

      Always

      Steps to Reproduce:

      1. Delete a machineset
      $ oc get machineset 
      NAME                                     DESIRED   CURRENT   READY   AVAILABLE   AGE
      mihuangawstest-kjbx9-worker-us-east-2a   1         1         1       1           110m
      mihuangawstest-kjbx9-worker-us-east-2b   1         1         1       1           110m
      mihuangawstest-kjbx9-worker-us-east-2c   1         1         1       1           110m 
      $ oc delete machineset mihuangawstest-kjbx9-worker-us-east-2c
      machineset.machine.openshift.io "mihuangawstest-kjbx9-worker-us-east-2c" deleted
      $ oc get machineset   
      NAME                                     DESIRED   CURRENT   READY   AVAILABLE   AGE
      mihuangawstest-kjbx9-worker-us-east-2a   1         1         1       1           120m
      mihuangawstest-kjbx9-worker-us-east-2b   1         1         1       1           120m
      $ oc get controlplanemachineset
      NAME      DESIRED   CURRENT   READY   UPDATED   UNAVAILABLE   STATE    AGE
      cluster   3         3         3       3                       Active   110m
      2. Delete controlplanmachineset
      $ oc delete controlplanemachineset cluster         
      controlplanemachineset.machine.openshift.io "cluster" deleted 
      3. Check if a new controlplanmachineset will be created 
      $ oc get controlplanemachineset     
      No resources found in openshift-machine-api namespace.

      Actual results:

      No new controlplanmachineset was created.
      
      E1026 05:34:55.422062       1 controller.go:326]  "msg"="Reconciler error" "error"="error reconciling control plane machine set: unable to create control plane machine set: unable to create control plane machine set: admission webhook \"controlplanemachineset.machine.openshift.io\" denied the request: spec.template.machines_v1beta1_machine_openshift_io.failureDomains: Forbidden: control plane machines are using unspecified failure domain(s) [AWSFailureDomain{AvailabilityZone:us-east-2c, Subnet:{Type:Filters, Value:&[{Name:tag:Name Values:[mihuangawstest-kjbx9-private-us-east-2c]}]}}]" "controller"="controlplanemachinesetgenerator" "reconcileID"="02af2bd5-fa3e-4bb5-8693-c3f5368f4da7"

      Expected results:

      When delete controlplanmachineset, a new controlplanmachineset will be created. 

      Additional info:

      And if on a 5 masters 3 workers cluster, don't delete machineset, delete controlplanemachineset directly, controlplanemachineset can be created and report "Observed 2 index(es) in excess"
      $ oc get controlplanemachineset                                     
      NAME      DESIRED   CURRENT   READY   UPDATED   UNAVAILABLE   STATE      AGE
      cluster   3         5         5       5                       Inactive   5s
      
        - lastTransitionTime: "2022-10-26T07:59:14Z"
          message: Observed 2 index(es) in excess
          reason: ExcessIndexes
          status: "True"
          type: Degraded

      Attachments

        Activity

          People

            joelspeed Joel Speed
            rhn-support-zhsun Zhaohua Sun
            Zhaohua Sun Zhaohua Sun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: