-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.19
-
None
-
False
-
-
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:
- 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.