Description of problem:
when filtering via bundles oc-mirror throws error which reads filtering on the selected bundles leads to invalidating channel "4.13" for package "cluster-kube-descheduler-operator": channel has no entries
Version-Release number of selected component (if applicable):
oc-mirror version W1121 06:10:37.581138 159435 mirror.go:102] ⚠️ oc-mirror v1 is deprecated (starting in 4.18 release) and will be removed in a future release - please migrate to oc-mirror --v2WARNING: 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:"4.18.0-202411191706.p0.g956fc31.assembly.stream.el9-956fc31", GitCommit:"956fc318cc67769aedb2db8c0c4672bf7ed9f909", GitTreeState:"clean", BuildDate:"2024-11-19T18:08:35Z", GoVersion:"go1.22.7 (Red Hat 1.22.7-1.el9_5) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
How reproducible:
Always
Steps to Reproduce:
1. Use the image set config below to mirror using bundles kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.16 packages: - name: cluster-kube-descheduler-operator bundles: - name: clusterkubedescheduleroperator.v5.0.2 - name: clusterkubedescheduleroperator.v3.0 - catalog: registry.redhat.io/redhat/community-operator-index:v4.14 packages: - name: 3scale-community-operator bundles: - name: 3scale-community-operator.v0.9.1 - catalog: registry.redhat.io/redhat/certified-operator-index:v4.14 packages: - name: cockroachdb-certified bundles: - name: cockroach-operator.v2.13.1 - name: redhat-marketplace-operator bundles: - name: redhat-marketplace-operator.v2.14.2 run the oc-mirror : oc mirror -c /tmp/fixture-testdata-dir3469810432/test/extended/testdata/workloads/config-73420.yaml file:///tmp/case73420 --v2
Actual results:
1. see that oc-mirror throws error as below : I0102 13:13:11.790345 388468 oc_mirror_v2.go:1246] The mirror2disk failed, retrying... I0102 13:13:11.790465 388468 client.go:835] Running 'oc mirror -c /tmp/fixture-testdata-dir3283590853/test/extended/testdata/workloads/config-73420.yaml file:///tmp/case73420 --v2 --authfile /tmp/case73420/.dockerconfigjson' I0102 13:13:25.883520 388468 client.go:844] Error running /usr/local/bin/oc mirror -c /tmp/fixture-testdata-dir3283590853/test/extended/testdata/workloads/config-73420.yaml file:///tmp/case73420 --v2 --authfile /tmp/case73420/.dockerconfigjson: 2025/01/02 13:13:11 [INFO] : 👋 Hello, welcome to oc-mirror 2025/01/02 13:13:11 [INFO] : ⚙️ setting up the environment for you... 2025/01/02 13:13:11 [INFO] : 🔀 workflow mode: mirrorToDisk 2025/01/02 13:13:11 [INFO] : 🕵️ going to discover the necessary images... 2025/01/02 13:13:11 [INFO] : 🔍 collecting release images... 2025/01/02 13:13:11 [INFO] : 🔍 collecting operator images... 2025/01/02 13:13:25 [INFO] : 👋 Goodbye, thank you for using oc-mirror 2025/01/02 13:13:25 [ERROR] : filtering on the selected bundles leads to invalidating channel "4.13" for package "cluster-kube-descheduler-operator": channel has no entries I0102 13:13:25.883605 388468 oc_mirror_v2.go:1246] The mirror2disk failed, retrying... Expected results: {code:none} 1. should run with out any issues
Additional info:
no such issue with older version : 4.18.0-ec3 and below is the output that we see passed: (12m59s) 2025-01-02T17:46:52 "[sig-cli] Workloads ocmirror v2 works well Author:knarra-NonHyperShiftHOST-ConnectedOnly-NonPreRelease-Longduration-High-73420-Critical-73419-Verify oc-mirror v2 skips and continues if selected bundle does not exist [Serial]" 1 pass, 0 skip (12m59s)
- is related to
-
CLID-199 As a oc-mirror user, I would like mirrored operator catalogs to reflect the mirrored operators only
- Dev Complete
- links to