+++ This bug was initially created as a clone of Bug #1978691 +++ Description of problem: The image values set in AgentServiceConfig osImages: are overridden by OPENSHIFT_VERSIONS env var in Assisted Service pod if set below 4.8. I understand this is on purpose, but want to get it noted to ensure it is handled before release (or documented somewhere). Version-Release number of selected component (if applicable): -Hub Cluster version: 4.8.0-fc.7 -ACM DS snapshot: 2.3.0-DOWNSTREAM-2021-07-01-08-39-58 How reproducible: Steps to Reproduce: 1. Deploy hub cluster with ACM 2. Create AgentServiceConfig with below CRD: apiVersion: agent-install.openshift.io/v1beta1 kind: AgentServiceConfig metadata: name: agent spec: databaseStorage: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi filesystemStorage: accessModes: - ReadWriteOnce resources: requests: storage: 20Gi osImages: - openshiftVersion: "4.6" rootFSUrl: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.6/4.6.8/rhcos-live-rootfs.x86_64.img url: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.6/4.6.8/rhcos-4.6.8-x86_64-live.x86_64.iso version: 46.82.202012051820-0 - openshiftVersion: "4.7" rootFSUrl: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.7/4.7.7/rhcos-live-rootfs.x86_64.img url: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.7/4.7.13/rhcos-4.7.13-x86_64-live.x86_64.iso version: 47.83.202105220305-0 - openshiftVersion: "4.8" rootFSUrl: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.1/rhcos-live-rootfs.x86_64.img url: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.1/rhcos-4.8.0-rc.1-x86_64-live.x86_64.iso version: 48.84.202105062123-0 3. Wait for assisted service pod to start up 4. Check OPENSHIFT_VERSIONS env var in assisted service pod and compare with AgentServiceConfig osImages: values oc rsh assisted-service-6fc699877-cmtr8 env | grep OPENSHIFT_VERSION | awk -F= '{print $2}' | jq Actual results: OPENSHIFT_VERSIONS = { "4.6": { "display_name": "4.6", "release_image": null, "release_version": null, "rhcos_image": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.1/rhcos-4.8.0-rc.1-x86_64-live.x86_64.iso", "rhcos_rootfs": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.1/rhcos-live-rootfs.x86_64.img", "rhcos_version": "48.84.202105062123-0", "support_level": null }, "4.7": { "display_name": "4.7", "release_image": null, "release_version": null, "rhcos_image": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.1/rhcos-4.8.0-rc.1-x86_64-live.x86_64.iso", "rhcos_rootfs": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.1/rhcos-live-rootfs.x86_64.img", "rhcos_version": "48.84.202105062123-0", "support_level": null }, "4.8": { "display_name": "4.8", "release_image": null, "release_version": null, "rhcos_image": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.1/rhcos-4.8.0-rc.1-x86_64-live.x86_64.iso", "rhcos_rootfs": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.1/rhcos-live-rootfs.x86_64.img", "rhcos_version": "48.84.202105062123-0", "support_level": null } } Expected results: OPENSHIFT_VERSIONS matches what was set in osImages: Additional info:
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.8.12 bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:3511
Verified with ACM 2.4: Hub Cluster version: 4.8.0 RHACM version: 2.4.0-DOWNSTREAM-2021-10-06-20-31-30 Output of OPENSHIFT_VERSION env variable in assisted service pod matches what was set in osImages. { "4.6": { "display_name": "4.6", "release_image": null, "release_version": null, "rhcos_image": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.6/4.6.8/rhcos-4.6.8-x86_64-live.x86_64.iso", "rhcos_rootfs": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.6/4.6.8/rhcos-live-rootfs.x86_64.img", "rhcos_version": "46.82.202012051820-0", "support_level": null }, "4.7": { "display_name": "4.7", "release_image": null, "release_version": null, "rhcos_image": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.7/4.7.13/rhcos-4.7.13-x86_64-live.x86_64.iso", "rhcos_rootfs": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.7/4.7.7/rhcos-live-rootfs.x86_64.img", "rhcos_version": "47.83.202105220305-0", "support_level": null }, "4.8": { "display_name": "4.8", "release_image": null, "release_version": null, "rhcos_image": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.1/rhcos-4.8.0-rc.1-x86_64-live.x86_64.iso", "rhcos_rootfs": "https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/pre-release/4.8.0-rc.1/rhcos-live-rootfs.x86_64.img", "rhcos_version": "48.84.202105062123-0", "support_level": null } }