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

MOSB should not re-trigger if apply MC for second time

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

       

      Related to this https://issues.redhat.com/browse/OCPBUGS-34745
      For internal registry MOSC when we re-apply the MC the MOSB-2 should not re-triggred instead of that MCP should start updating.
       
      

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

          

      How reproducible:

          

      Steps to Reproduce:

      Apply MOSC for internal registry

      Check the MOSB-1 is build

      oc get machineosbuilds.machineconfiguration.openshift.io 
      NAME                                        PREPARED   BUILDING   SUCCEEDED   INTERRUPTED   FAILED   AGE
      worker-4-e7777b07c650d826b1dde6665888a47b   False      False      True        False         False    8m37s 

      Apply the MC and check MOSB-2 is build

      oc get machineosbuilds.machineconfiguration.openshift.io 
      NAME                                        PREPARED   BUILDING   SUCCEEDED   INTERRUPTED   FAILED   AGE
      worker-4-66cc02490882da7f126a76358ff2b1ad   False      False      True        False         False    74m
      worker-4-e7777b07c650d826b1dde6665888a47b   False      False      True        False         False    98m

      Delete the image for MOSB-1

      $ oc tag -d ocb-image:worker-4-e7777b07c650d826b1dde6665888a47b
      Deleted tag openshift-machine-config-operator/ocb-image:worker-4-e7777b07c650d826b1dde6665888a47b.

      Delete the MC

      $ oc delete mc test-file
      machineconfig.machineconfiguration.openshift.io "test-file" deleted

      MOSB-1 re-triggred

      $ oc get machineosbuilds.machineconfiguration.openshift.io
      NAME PREPARED BUILDING SUCCEEDED INTERRUPTED FAILED AGE
      worker-4-66cc02490882da7f126a76358ff2b1ad False False True False False 80m
      worker-4-e7777b07c650d826b1dde6665888a47b False True False False False 2m18s

      Apply the MC again

      $ oc get machineosbuilds.machineconfiguration.openshift.io 
      NAME                                        PREPARED   BUILDING   SUCCEEDED   INTERRUPTED   FAILED   AGE
      worker-4-66cc02490882da7f126a76358ff2b1ad   False      True       False       False         False    10s
      worker-4-e7777b07c650d826b1dde6665888a47b   False      False      True        False         False    23m 

      Able to see MOSB-2 is re-triggred again

       

      Actual results:

          

      Expected results:

          MCP should be updated after re-applying the MC

      Additional info:

          

              umohnani Urvashi Mohnani
              rh-ee-ptalgulk Prachiti Talgulkar
              None
              None
              Sergio Regidor de la Rosa Sergio Regidor de la Rosa
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: