oc-mirror v2 process fails with an error when two EUS channels are specified in the ImageSetConfig
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.14
- Disconnected Environment
Issue
- Including two EUS channels in the ImageSetConfig causes the
oc-mirror v2process to generate results but also triggers an error:
[ERROR] : get release images: error list error calculating cross channel upgrades: failed to get upgrade graph: NoVersionsFound: no cluster versions found for "amd64" in the "eus-4.15" channel
Resolution
- Red Hat is aware of this issue and it is currently tracked in Bug.
- As an workaround, split the
ImageSetConfigurationfile into two parts. - First iteration using the following
ImageSetConfiguration:
kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v2alpha1
mirror:
platform:
channels:
- name: eus-4.14
minVersion: 4.14.12
maxVersion: 4.14.40
shortestPath: true
- Then execute the mirror-to-disk and disk-to-mirror workflow.
- Second iteration using the following
ImageSetConfiguration:
kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v2alpha1
mirror:
platform:
channels:
- name: eus-4.16
minVersion: 4.15.38
maxVersion: 4.16.23
shortestPath: true
graph: true
- Execute the same workflow mirror-to-disk and disk-to-mirror.
Root Cause
The primary purpose of the EUS channels is to serve as a convenience for clusters performing a Control Plane Only update. The EUS channel only applies to even numbered minor version so eus-4.15 is not supported.
Diagnostic Steps
- Create the ImageSetConfiguration file as per the Red Hat documentations for
oc-mirror v2including two EUS channels 4.14 and 4.16:
kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v2alpha1
mirror:
platform:
channels:
- name: eus-4.14
minVersion: 4.14.12
maxVersion: 4.14.40
shortestPath: true
- name: eus-4.16
minVersion: 4.15.38
maxVersion: 4.16.23
shortestPath: true
graph: true
- Mirror the images from the specified
ImageSetConfigurationby running the following command:
$ oc-mirror --config=imageset-config.yaml docker://<registry> --v2 --workspace file:///home/oc-mirror
[ERROR] : get release images: error list error calculating cross channel upgrades: failed to get upgrade graph: NoVersionsFound: no cluster versions found for "amd64" in the "eus-4.15" channel
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments