Description of problem:
When trying to mirror 'cilium' certified operator using oc-mirror v2, it failed with below error ~~~ 2025/03/21 17:15:39 [ERROR] : [Worker] error mirroring image docker://quay.io/cilium/cilium-etcd-operator@sha256:04b8327f7f992693c2cb483b999041ed8f92efc8e14f2a5f3ab95574a65ea2dc (Operator bundles: [cilium.v1.15.1-x7095b76 cilium.v1.9.14-x70dc065 cilium.v1.10.15-x084926b cilium.v1.11.20-xdb5ed32 cilium.v1.12.19-xef55de8 cilium.v1.13.12-x6e56d47 cilium.v1.14.7-x3522df7] - Operators: [cilium]) error: Copying a schema1 image with an embedded Docker reference to docker://<mirror-registry>:8443/cilium/cilium-etcd-operator:sha256-04b8327f7f992693c2cb483b999041ed8f92efc8e14f2a5f3ab95574a65ea2dc (Docker reference <mirror-registry>:8443/cilium/cilium-etcd-operator:sha256-04b8327f7f992693c2cb483b999041ed8f92efc8e14f2a5f3ab95574a65ea2dc) would change the manifest, which we cannot do: "Instructed to preserve digests" 2025/03/21 17:15:39 [ERROR] : [Worker] error mirroring image docker://registry.connect.redhat.com/isovalent/cilium-olm-metadata@sha256:40c7d896355dfe67ff3616f1e1df86548bfcd0524f7e56d4d72ab4f5f1739f6a error: skipping operator bundle docker://registry.connect.redhat.com/isovalent/cilium-olm-metadata@sha256:40c7d896355dfe67ff3616f1e1df86548bfcd0524f7e56d4d72ab4f5f1739f6a because one of its related images failed to mirror 2025/03/21 17:15:39 [ERROR] : [Worker] error mirroring image docker://registry.connect.redhat.com/isovalent/cilium-olm-metadata@sha256:e5a0cb8af7879bf13d940df278ccdb8a5c400e5d7108f23b4abef94c964e40d6 error: skipping operator bundle docker://registry.connect.redhat.com/isovalent/cilium-olm-metadata@sha256:e5a0cb8af7879bf13d940df278ccdb8a5c400e5d7108f23b4abef94c964e40d6 because one of its related images failed to mirror ~~~
Version-Release number of selected component (if applicable):
How reproducible:
Following below steps, issue can be reproduced.
Steps to Reproduce:
1. Create imageset-config.yaml with below details
~~~
apiVersion: mirror.openshift.io/v2alpha1
kind: ImageSetConfiguration
mirror:
operators:
- catalog: registry.redhat.io/redhat/certified-operator-index:v4.16
packages:
- name: cilium
~~~
2. To mirror the images run below command:
~~~
$ oc mirror -c imageset-config.yaml --workspace file://"pwd" docker://<mirror_registry_url> --v2
~~~
Actual results:
Expected results:
Additional info:
$ ./oc-mirror -v2 version
~~~
W0321 22:34:49.109594 49860 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 --v2
Flag --verbose has been deprecated, and will be removed in a future release.
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:"4.18.0-202503051333.p0.g22b273d.assembly.stream.el9-22b273d", GitCommit:"22b273d3f5bfa4870aeb84acca14dfda7faaa981", GitTreeState:"clean", BuildDate:"2025-03-05T14:40:02Z", GoVersion:"go1.22.9 (Red Hat 1.22.9-2.el9_5) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
~~~