-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.17.0
-
Moderate
-
None
-
CLID Sprint 257
-
1
-
Rejected
-
False
-
-
Release Note Not Required
-
In Progress
Description of problem:
I see that if a release does not contain kubevirt coreos container image and if kubeVirtContainer flag is set to true oc-mirror fails to continue.
Version-Release number of selected component (if applicable):
[fedora@preserve-fedora-yinzhou test]$ ./oc-mirror version WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version. Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.2.0-alpha.1-280-g8a42369", GitCommit:"8a423691", GitTreeState:"clean", BuildDate:"2024-08-03T08:02:06Z", GoVersion:"go1.22.4", Compiler:"gc", Platform:"linux/amd64"}
How reproducible:
Always
Steps to Reproduce:
1. use imageSetConfig.yaml as shown below 2. Run command oc-mirror -c clid-179.yaml file://clid-179 --v2 3.
Actual results:
fedora@preserve-fedora-yinzhou test]$ ./oc-mirror -c /tmp/clid-99.yaml file://CLID-412 --v2 2024/08/03 09:24:38 [WARN] : ⚠️ --v2 flag identified, flow redirected to the oc-mirror v2 version. This is Tech Preview, it is still under development and it is not production ready. 2024/08/03 09:24:38 [INFO] : 👋 Hello, welcome to oc-mirror 2024/08/03 09:24:38 [INFO] : ⚙️ setting up the environment for you... 2024/08/03 09:24:38 [INFO] : 🔀 workflow mode: mirrorToDisk 2024/08/03 09:24:38 [INFO] : 🕵️ going to discover the necessary images... 2024/08/03 09:24:38 [INFO] : 🔍 collecting release images... 2024/08/03 09:24:44 [INFO] : kubeVirtContainer set to true [ including : ] 2024/08/03 09:24:44 [ERROR] : unknown image : reference name is empty 2024/08/03 09:24:44 [INFO] : 👋 Goodbye, thank you for using oc-mirror 2024/08/03 09:24:44 [ERROR] : unknown image : reference name is empty
Expected results:
If kubeVirt coreos container does not exist in a relelase oc-mirror should skip and continue mirroring other operators but should not fail.
Additional info:
[fedora@preserve-fedora-yinzhou test]$ cat /tmp/clid-99.yaml apiVersion: mirror.openshift.io/v2alpha1 kind: ImageSetConfiguration mirror: platform: channels: - name: stable-4.12 minVersion: 4.12.61 maxVersion: 4.12.61 kubeVirtContainer: true operators: - catalog: oci:///test/ibm-catalog - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.15 packages: - name: devworkspace-operator minVersion: "0.26.0" - name: nfd maxVersion: "4.15.0-202402210006" - name: cluster-logging minVersion: 5.8.3 maxVersion: 5.8.4 - name: quay-bridge-operator channels: - name: stable-3.9 minVersion: 3.9.5 - name: quay-operator channels: - name: stable-3.9 maxVersion: "3.9.1" - name: odf-operator channels: - name: stable-4.14 minVersion: "4.14.5-rhodf" maxVersion: "4.14.5-rhodf" additionalImages: - name: registry.redhat.io/ubi8/ubi:latest - name: quay.io/openshifttest/hello-openshift@sha256:61b8f5e1a3b5dbd9e2c35fd448dc5106337d7a299873dd3a6f0cd8d4891ecc27 - name: quay.io/openshifttest/scratch@sha256:b045c6ba28db13704c5cbf51aff3935dbed9a692d508603cc80591d89ab26308
- blocks
-
OCPBUGS-39088 oc-mirror fails with out proceeding further if a release does not contain kubevirt coreos container image
- Closed
- is cloned by
-
OCPBUGS-39088 oc-mirror fails with out proceeding further if a release does not contain kubevirt coreos container image
- Closed
- links to
-
RHEA-2024:6122 OpenShift Container Platform 4.18.z bug fix update