-
Bug
-
Resolution: Unresolved
-
Critical
-
ACM 2.14.0
-
None
-
False
-
-
False
-
-
-
None
Description of problem:
When importing a cluster into Red Hat Advanced Cluster Management (RHACM) using the agent-registration/manifests method, the searchCollector addon in the KlusterletAddonConfig is created with enabled: false by default.
As a result, the ACM Application Topology view does not correctly report the sync state of application resources, even though the deployment itself succeeds and is reflected correctly in ArgoCD.
This behavior prevents ACM from accurately showing application status for imported clusters, impacting usability.
Version-Release number of selected component (if applicable):
RHACM 2.14
How reproducible:
Always reproducible when importing a cluster with the agent-registration/manifests method.
Steps to Reproduce:
- Deploy a cluster.
- Import the cluster into ACM hub using the documented agent registration method:
# Pull CRDs curl --cacert /etc/pki/ca-trust/source/anchors/ca.crt -H "Authorization: Bearer $TOKEN" \ https://$AGENT_HOST/agent-registration/crds/v1 | \ oc apply -f - # Register cluster curl --cacert /etc/pki/ca-trust/source/anchors/ca.crt -H "Authorization: Bearer $TOKEN" \ https://$AGENT_HOST/agent-registration/manifests/$(hostname | cut -d. -f1) | \ oc apply -f -
- Observe that the cluster imports successfully and is shown in ACM.
- Deploy an application to the imported cluster (via push model).
- Check ArgoCD: the application is shown as synced.
- Check ACM Application Topology: the application is incorrectly shown as not synced.
- Inspect the KlusterletAddonConfig of the imported cluster:
spec: applicationManager: enabled: true certPolicyController: enabled: true policyController: enabled: true searchCollector: enabled: false <--- defaulted to false
- Manually edit the KlusterletAddonConfig and set searchCollector.enabled: true.
- After enabling search, the search-collector pod deploys in the managed cluster and ACM Topology view updates correctly.
Actual results:
- Cluster imports successfully.
- Applications deploy and sync correctly in ArgoCD.
- In ACM Topology view, applications appear not synced.
- KlusterletAddonConfig for the managed cluster has searchCollector.enabled: false by default.
Expected results:
- When importing a cluster with the agent registration method, the searchCollector addon should be enabled by default (or at least configurable during registration).
- Applications deployed on imported clusters should show correct sync state in ACM Application Topology view without requiring manual patching of the KlusterletAddonConfig.
Additional info:
- This behavior occurs only when using the agent-registration method.
- Workaround: manually edit KlusterletAddonConfig and enable searchCollector.
- Impact: During POC stage, this creates confusion for customers since ACM topology reports incorrect status for applications.
- Relevant documentation references:
- After patching to true, the issue is resolved:
oc patch klusterletaddonconfig mleleacmspoke5 -n mleleacmspoke5 \ --type merge -p '{"spec":{"searchCollector":{"enabled":true}}}'