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

Deleting "ztp-done" label after deleting CGU doesn't trigger reconcile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.12.z
    • TALM Operator
    • Moderate
    • No
    • CNF RAN Sprint 240
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The docs say "To trigger auto-creation of the ClusterGroupUpgrade CR, remove the ztp-done label from the cluster and delete the empty ClusterGroupUpgrade CR that was previously created in the ztp-install namespace."
      
      It seems that the order is important. If you delete the "ztp-done" label, and then delete the CGU, the operator will reconcile and create a new CGU.
      
      However, if you delete the CGU, and then the "ztp-done" label, nothing happens, a new CGU is not created.
      
      This is because the operator only watches for CGU deletions to trigger a reconcile. It does not watch the ManagedCluster for updates. So if you delete the CGU, a reconcile happens (with no action, since the cluster has the "ztp-done" label), but when "ztp-done" is removed from the ManagedCluster, no reconcile happens.
      
      Manually deleting the controllermanager pod for ManagedClusterForCgu causes the reconcile to happen, and a new CGU to be created.

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

      TALM 4.12.4

      How reproducible:

       

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

            sskeard@redhat.com Steven Skeard
            lmcnaugh@redhat.com Logan McNaughton
            Joshua Clark Joshua Clark
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: