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

ManagedBootImages: failed to fetch architecture type of machineset no linked machine found

XMLWordPrintable

      Description of problem:

      When I test PR https://github.com/openshift/machine-config-operator/pull/4083, there is no machineset does not have any machine linked. 
      
      $ oc get machineset/rioliu-1220c-bz2gp-worker-f -n openshift-machine-api
      NAME                          DESIRED   CURRENT   READY   AVAILABLE   AGE
      rioliu-1220c-bz2gp-worker-f   0         0                             3h47m
      
      Many errors found in MCD log like below
      
      I1220 09:15:59.743704       1 machine_set_boot_image_controller.go:211] Error syncing machineset openshift-machine-api/rioliu-1220c-bz2gp-worker-f: failed to fetch architecture type of machineset rioliu-1220c-bz2gp-worker-f, err: could not find any machines linked to machineset, error: %!w(<nil>)
      
      the machineset patch is skipped in reconcile loop due to above error, boot image info cannot be patched even it does not have any machine provisioned.

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

       

      How reproducible:

      Consistently

      Steps to Reproduce:

      https://github.com/openshift/machine-config-operator/pull/4083#issuecomment-1864226629

      Actual results:

      the machineset is skipped in reconcile loop due to above error, boot image info cannot be patched

      Expected results:

      the machineset should be updated even no linked machine found, because maybe it is scaled down to 0 replica

      Additional info:

          

            djoshy David Joshy
            rhn-support-rioliu Rio Liu
            Rio Liu Rio Liu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: