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

Enabling components post install should check that they exist in the version installed

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Installer
    • Moderate
    • None

      In the Jenkins jobs to install ACM and MCE, there are flags to enable certain components post installation. Newer components do not exist in older versions of ACM/MCE so there should be a check in place to avoid throwing such an error.

      https://jenkins-csb-rhacm-tests.dno.corp.redhat.com/job/acm/job/acm-install/build
      https://jenkins-csb-rhacm-tests.dno.corp.redhat.com/job/mce/job/mce-install/build

      TASK [acm-install : Apply patch [{"op": "add", "path": "/spec/overrides/components/-","value":{"name":"siteconfig","enabled":true}}] to MCH multiclusterhub in namespace ocm] ***
      task path: /home/jenkins/workspace/acm/acm-install/acm/tasks/toggle_mch_component.yml:12
      fatal: [localhost]: FAILED! => {"changed": true, "cmd": "oc -n ocm patch mch multiclusterhub -p '[{\"op\": \"add\", \"path\": \"/spec/overrides/components/-\",\"value\":{\"name\":\"siteconfig\",\"enabled\":true}}]' --type=json\n", "delta": "0:00:00.497856", "end": "2025-12-01 12:53:36.989672", "msg": "non-zero return code", "rc": 1, "start": "2025-12-01 12:53:36.491816", "stderr": "Error from server (Forbidden): admission webhook \"multiclusterhub.validating-webhook.open-cluster-management.io\" denied the request: invalid ComponentConfig: siteconfig is not a known component", "stderr_lines": ["Error from server (Forbidden): admission webhook \"multiclusterhub.validating-webhook.open-cluster-management.io\" denied the request: invalid ComponentConfig: siteconfig is not a known component"], "stdout": "", "stdout_lines": []}
      

              rh-ee-msmigiel Matthew Smigielski
              rh-ee-msmigiel Matthew Smigielski
              Matthew Smigielski Matthew Smigielski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: