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

Label and annotation on ClusterRole open-cluster-management:cluster-manager-admin come and go

XMLWordPrintable

    • Installer Sprint 2025-54, Installer Sprint 2025-56, Installer Sprint 2025-57
    • Moderate
    • None

      Description of problem:

      For the ClusterRole open-cluster-management:cluster-manager-admin, the label and annotation below come and go seemingly at random.

      labels:
      backplaneconfig.name: multiclusterengine
      annotations:
      installer.multicluster.openshift.io/release-version: 2.8.0-201

      The MCE QE Install automation checks for all components with this label and if they have it, it then checks for this annotation. Because these come and go at random, the automation sometimes fails with this error.

      TASK [mce : RHACM4K-41912: Validate Release Version Annotation for MCE Operator] ***
      fatal: [localhost]: FAILED! =>

      { "assertion": "unannotated_resources | length == 0", "changed": false, "evaluated_to": false, "msg": "clusterrole.rbac.authorization.k8s.io/open-cluster-management:cluster-manager-admin" }

      My theory is that there is some process or reconciliation happening that removes these. Many other ClusterRoles have these and I believe that this one should too.

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

      ACM 2.13

      How reproducible:

      Randomly

      Steps to Reproduce:

      1. Install ACM with MCE
      2. Observe the ClusterRole open-cluster-management:cluster-manager-admin

      Actual results:

      Sometimes it has the aforementioned label and annotation but most of the time it does not.

      Expected results:

      It should always have them.

      Additional info:

      Command to check annotation:
      $ oc -n multicluster-engine get clusterrole open-cluster-management:cluster-manager-admin -ojson | jq -r '.metadata|select(.annotations."installer.multicluster.openshift.io/release-version").name'
      open-cluster-management:cluster-manager-admin

              cwall@redhat.com Cameron Wall
              rh-ee-msmigiel Matthew Smigielski
              Matthew Smigielski Matthew Smigielski
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: