Description of problem:
oc-mirror can't support mirror image with bundle
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. mirror the image with 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.1 - name: clusterkubedescheduleroperator.4.13.0-202309181427 - catalog: registry.redhat.io/redhat/community-operator-index:v4.14 packages: - name: 3scale-community-operator bundles: - name: 3scale-community-operator.v0.11.0 oc-mirror -c /tmp/config-73420.yaml file://out73420 --v2
Actual results:
1. hit error : oc-mirror -c /tmp/ssss.yaml file:///home/cloud-user/outss --v22024/11/21 05:57:40 [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/11/21 05:57:40 [INFO] : 👋 Hello, welcome to oc-mirror 2024/11/21 05:57:40 [INFO] : ⚙️ setting up the environment for you... 2024/11/21 05:57:40 [INFO] : 🔀 workflow mode: mirrorToDisk 2024/11/21 05:57:40 [INFO] : 🕵️ going to discover the necessary images... 2024/11/21 05:57:40 [INFO] : 🔍 collecting release images... 2024/11/21 05:57:40 [INFO] : 🔍 collecting operator images... ✓ (43s) Collecting catalog registry.redhat.io/redhat/redhat-operator-index:v4.16 ⠼ (20s) Collecting catalog registry.redhat.io/redhat/community-operator-index:v4.14 ✗ (20s) Collecting catalog registry.redhat.io/redhat/community-operator-index:v4.14 2024/11/21 05:58:44 [ERROR] : filtering on the selected bundles leads to invalidating channel "threescale-2.11" for package "3scale-community-operator": cha ✗ (20s) Collecting catalog registry.redhat.io/redhat/community-operator-index:v4.14
Expected results:
1. no error
Additional info:
no such issue with older version : 4.18.0-ec3
- clones
-
OCPBUGS-44827 oc-mirror can't support the ibm catalog as oci format
- New
- is cloned by
-
OCPBUGS-44837 oc-mirror should throws error when using invalid imageSetConfig with bundles
- New