Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-6917

ACM addons not auto-installed on hosted cluster

XMLWordPrintable

    • Important
    • No

      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:

      https://github.com/stolostron/hypershift-addon-operator/blob/main/pkg/agent/auto_import_controller.go#L26

      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:

      1. deploy hosted cluster on aws with acm
      2. observe addons not installed, error in addon log
      3. ...

      Actual results:

      Expected results:

      Additional info:

      workaround:

      • importing via ui works as expected
      • apply managedcluster and addon CRD manually via CLI works as expected

            rokejungrh Roke Jung
            rhn-support-dhuynh David Huynh
            David Huynh David Huynh
            ACM QE Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: