-
Bug
-
Resolution: Done
-
Major
-
MCE 2.4.0
Description of problem:
Upon creating an aws hosted cluster in ACM, we expect managedcluster to be auto-imported and the addons to be auto-installed, however they are missing:
Reviewing the hypershift-addon logs, shows this:
2023-08-10T20:58:16.402Z ERROR agent.agent-reconciler.auto-import-controller agent/auto_import_controller.go:201 could not get acm operator {"error": "operators.operators.coreos.com \"advanced-cluster-management.open-cluster-management\" not found"} github.com/stolostron/hypershift-addon-operator/pkg/agent.(*AutoImportController).isACMInstalled /remote-source/hypershift-addon-operator/app/pkg/agent/auto_import_controller.go:201 github.com/stolostron/hypershift-addon-operator/pkg/agent.(*AutoImportController).Reconcile /remote-source/hypershift-addon-operator/app/pkg/agent/auto_import_controller.go:107 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile /remote-source/hypershift-addon-operator/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:121 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler /remote-source/hypershift-addon-operator/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:320 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem /remote-source/hypershift-addon-operator/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:273 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2 /remote-source/hypershift-addon-operator/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:234 2023-08-10T20:58:16.402Z INFO agent.agent-reconciler.auto-import-controller agent/auto_import_controller.go:108 ACM is not installed, skipping klusterletaddonconfig creation
ACM however is installed
$ oc get operator NAME AGE advanced-cluster-management.ocm 57d ansible-automation-platform-operator.aap 26h multicluster-engine.multicluster-engine 57d openshift-gitops-operator.openshift-operators 57d redhat-oadp-operator.open-cluster-management-backup 57d
Perhaps the reason might be because we are hardcoding the namespace for the acm operator name here:
acmOperatorName = "advanced-cluster-management.open-cluster-management"
Version-Release number of selected component (if applicable):
ACM 2.9.0-DOWNSTREAM-2023-08-09-20-02-18
How reproducible:
always
Steps to Reproduce:
- deploy hosted cluster on aws with acm
- observe addons not installed, error in addon log
- ...
Actual results:
Expected results:
Additional info:
workaround:
- importing via ui works as expected
- apply managedcluster and addon CRD manually via CLI works as expected
- relates to
-
ACM-5492 Auto-import a hypershift hosted cluster with a specific label
- Closed