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

MCE operator fails to uninstall when the ManagedCluster CRD is missing from the cluster

XMLWordPrintable

    • Installer Sprint 2025-62
    • Moderate
    • Approved
    • None

      Description of problem:

      When testing MCE 2.9 on an arm64 cluster, we observed that if the ManagedCluster CRD is missing, attempting to uninstall MCE causes the process to stall. This happens because MCE expects the ManagedCluster CRD to exist in order to clean up the local-cluster ManagedCluster resource.

       

      2025-06-12T20:08:58.390Z INFO reconcile Reconciling MultiClusterEngine
      2025-06-12T20:08:58.406Z ERROR reconcile error while looking for local-cluster ManagedCluster CR {"error": "no matches for kind \"ManagedCluster\" in version \"cluster.open-cluster-management.io/v1\""}
      github.com/stolostron/backplane-operator/controllers.(*MultiClusterEngineReconciler).finalizeBackplaneConfig
      /workspace/controllers/backplaneconfig_controller.go:1745
      github.com/stolostron/backplane-operator/controllers.(*MultiClusterEngineReconciler).Reconcile
      /workspace/controllers/backplaneconfig_controller.go:227
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
      /cachi2/output/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.5/pkg/internal/controller/controller.go:114
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
      /cachi2/output/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.5/pkg/internal/controller/controller.go:311
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
      /cachi2/output/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.5/pkg/internal/controller/controller.go:261
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
      /cachi2/output/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.5/pkg/internal/controller/controller.go:222
      2025-06-12T20:08:58.406Z INFO reconcile no matches for kind "ManagedCluster" in version "cluster.open-cluster-management.io/v1"
      2025-06-12T20:08:58.406Z INFO reconcile Updating status 

       

      Version-Release number of selected component (if applicable):

      MCE 2.9.0

      How reproducible:

      Possibly always

      Steps to Reproduce:

      1. Install MCE.
      2. Initiate MCE uninstallation before the cluster-manager pod is created and the ManagedCluster CRD is deployed.
      3. Confirm that the MCE uninstallation process is stalled.

      Actual results:

      The MCE operator fails to uninstall.

      Expected results:

      The MCE operator should be able to proceed with uninstallation even when the ManagedCluster CRD is absent.

      Additional info:

      This was being tested with the Konflux MCE build: v2.9.0-102.

              rh-ee-ngraham Nathaniel Graham
              dbennett@redhat.com Disaiah Bennett
              Matthew Smigielski Matthew Smigielski
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: