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

Creation of second hostedcluster in the same namespace fails with 'failed to set secret''s owner reference'


    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • 4.16.0
    • 4.14.z, 4.15.z, 4.16.0
    • HyperShift
    • Important
    • No
    • Hypershift Sprint 252, Hypershift Sprint 253, Hypershift Sprint 254, Hypershift Sprint 255
    • 4
    • False
    • Hide



      Description of problem:

      Creation of a second hostedcluster in the same namespace fails with the error "failed to set secret''s owner reference" in the status of the second hostedlcuster's yaml.
        - lastTransitionTime: "2024-04-02T06:57:18Z"
          message: 'failed to reconcile the CLI secrets: failed to set secret''s owner reference'
          observedGeneration: 1
          reason: ReconciliationError
          status: "False"
          type: ReconciliationSucceeded
      Note that the hosted control plane namespace is still different for both clusters.
      Customer is just following the doc - https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.9/html/clusters/cluster_mce_overview#creating-a-hosted-cluster-bm for both the clusters and only the hostedcluster CR is created in the same namespace.

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


      How reproducible:


      Steps to Reproduce:

          1. Create a hostedcluster as per the doc https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.9/html/clusters/cluster_mce_overview#creating-a-hosted-cluster-bm
          2. Create another hostedcluster in the same namespace where the first hostedcluster was created.
          3. Second hostedcluster fails to proceed with the said error.

      Actual results:

      The hostedcluster creation fails

      Expected results:

      The hostedcluster creation should succeed

      Additional info:


            rh-ee-mraee Mulham Raee
            rhn-support-alosingh Alok Singh
            Liangquan Li Liangquan Li
            1 Vote for this issue
            10 Start watching this issue