-
Bug
-
Resolution: Done
-
Normal
-
None
-
ACM 2.13.0
-
None
-
False
-
-
False
-
-
-
Low
-
None
Description of problem:
Import failed for an hcp cluster when the hcp cluster and the ACM hub cluster(an hcp cluster) are hosted on the same baremetal cluster.
% oc get managedclusters NAME HUB ACCEPTED MANAGED CLUSTER URLS JOINED AVAILABLE AGE hcp418-p1c1 true Unknown 2d19h hcp418-p1c2 true Unknown 3d1h hcp418-p2c1 true https://52.118.6.141:6443 True True 4d20h hcp418-p2c2 true https://52.118.6.142:6443 True True 4d20h ibm-baremetal1 true https://api.ibm-baremetal1.qe.rh-ocs.com:6443 True True 4d20h ibm-baremetal3 true https://api.ibm-baremetal3.qe.rh-ocs.com:6443 True True 4d20h local-cluster true https://52.118.43.173:6443 True True 4d20h
% oc get managedclusters hcp418-p1c1 -o yaml apiVersion: cluster.open-cluster-management.io/v1 kind: ManagedCluster metadata: annotations: open-cluster-management/created-via: other creationTimestamp: "2024-11-22T11:33:01Z" finalizers: - managedclusterinfo.finalizers.open-cluster-management.io - managedcluster-import-controller.open-cluster-management.io/cleanup - open-cluster-management.io/managedclusterrole - cluster.open-cluster-management.io/api-resource-cleanup - managedcluster-import-controller.open-cluster-management.io/manifestwork-cleanup generation: 2 labels: cloud: auto-detect cluster.open-cluster-management.io/clusterset: odf feature.open-cluster-management.io/addon-application-manager: unreachable feature.open-cluster-management.io/addon-cert-policy-controller: unreachable feature.open-cluster-management.io/addon-cluster-proxy: unreachable feature.open-cluster-management.io/addon-config-policy-controller: unreachable feature.open-cluster-management.io/addon-governance-policy-framework: unreachable feature.open-cluster-management.io/addon-managed-serviceaccount: unreachable feature.open-cluster-management.io/addon-search-collector: unreachable feature.open-cluster-management.io/addon-work-manager: unreachable name: hcp418-p1c1 vendor: auto-detect name: hcp418-p1c1 resourceVersion: "2146476" uid: f434ab00-119f-4aae-b94f-2137a60c0fe8 spec: hubAcceptsClient: true leaseDurationSeconds: 60 taints: - effect: NoSelect key: cluster.open-cluster-management.io/unreachable timeAdded: "2024-11-22T11:33:01Z" status: conditions: - lastTransitionTime: "2024-11-22T11:33:01Z" message: Wait for importing reason: ManagedClusterWaitForImporting status: "False" type: ManagedClusterImportSucceeded - lastTransitionTime: "2024-11-22T11:33:01Z" message: Accepted by hub cluster admin reason: HubClusterAdminAccepted status: "True" type: HubAcceptedManagedCluster - lastTransitionTime: "2024-11-22T11:41:48Z" message: Registration agent stopped updating its lease. reason: ManagedClusterLeaseUpdateStopped status: Unknown type: ManagedClusterConditionAvailable version: {}
There was an error in the above managedcluster CR
message: 'Try to import managed cluster, retry times: 1/2, error: [Get "https://52.118.43.174:6443/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/klusterlets.operator.open-cluster-management.io": dial tcp 52.118.43.174:6443: i/o timeout
where https://52.118.43.174:6443 is the cluster API address of the hcp cluster to be imported.
Version-Release number of selected component (if applicable):
advanced-cluster-management.v2.13.0-4
OpenShift version **4.18.0-ec.3 (on the baremetal cluster and the hcp cluster for ACM hub)
How reproducible:
2/2
Steps to Reproduce:
- Create two or more kubevirt hcp clusters on a baremetal cluster where multicluster engine and hypershift is present(no ACM).
- Detach all the clusters including the local-cluster from the base cluster(No managedcluster resource)
- Use one of the hcp clusters(eg: hcp418p1hub) to install ACM and import the other hosted clusters and the hosting cluster using kubeconfig.
- Import hcp clusters from a different hosting cluster.
- Verify import status
Actual results:
Import is successful for the hosting cluster and hcp clusters from other hosting cluster.
Import failed for the hcp clusters that are hosted on the same host of the ACM hub.
Expected results:
Import of all hcp clusters should be success.
Additional info:
Attached must-gather collecting using the command
oc adm must-gather --image=quay.io/stolostron/must-gather:2.13.0-SNAPSHOT-2024-11-25-03-52-14
- is blocked by
-
OCPBUGS-45043 hcp clusters cannot reach each other
-
- Closed
-