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

Managed cluster name doesn't propogate during Hosted Cluster creation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.19
    • HyperShift
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

        Managed cluster name doesn't propagate during Hosted Cluster creation  

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

          4.19

      How reproducible:

          Always

      Steps to Reproduce:

      1. When the ACM operator is installed and if multicluster hub CR is created with the custom local cluster name as below
      spec:
        availabilityConfig: High
        localClusterName: ocpxxxhub

      2. If the local-cluster name is customised this name is not propagated to managed cluster annotation and hence the hosted cluster does not show status on the UI with the error "registration agent stopped updating its lease"

       oc get managedcluster virtual-xxx -oyaml | yq .metadata.annotations
      {
        "import.open-cluster-management.io/hosting-cluster-name": "local-cluster",    <<<< Change this to ocpxxxhub
        "import.open-cluster-management.io/klusterlet-deploy-mode": "Hosted",
        "open-cluster-management/created-via": "hypershift"
      } 

      3. This above annotation has to be manually changed otherwise the klusterlet-xxx namespace does not gets created and hence the above error is reported.

              Unassigned Unassigned
              rhn-support-hchaturv Himank Chaturvedi
              None
              None
              Yu Li Yu Li
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: