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

HostedCluster reconciliation might fail to remove referenced resource annotations

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.20, 4.21, 4.22
    • HyperShift
    • None
    • None
    • False
    • Hide

      None

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

      Description of problem:

      HostedCluster reconciliation might fail to remove referenced resource annotations: When a hosted cluster is deleted, there is a race condition between the deletion of the HostedCluster and HostedControlPlane resources. If the hcp gets deleted first, the referenced-resource.hypershift.openshift.io/... annotations pointing to the hosted cluster being deleted will remain on the referenced resource.

      The continuously growing list of annotations can eventually cause failures due to metadata.annotations: Too long: must have at most 262144 bytes errors.

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

      HyperShift Operator 4.20, 4.21, 4.22

      Steps to Reproduce:

      1. Create many hosted clusters that reference a secret or configmap.
      2. Delete the hosted clusters.
          

      Actual results:

      Referenced resource annotations of deleted hosted clusters remain on the referenced resource.

      Expected results:

      Referenced resource annotations are always removed when the referencing hosted cluster is deleted.

      Additional info:

          

              mate-lajko Máté Lajkó
              mate-lajko Máté Lajkó
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: