Description of problem:
### upload to dest registry failed with this msg. $ /usr/local/bin/oc-mirror --from /tmp/mirror_seq1_000000.tar docker://registry.example.com:5000 --continue-on-error ... error: error occurred during image processing: [error finding remote layer "sha256:e775878494d3698030b04c08e2bb2ecc8468c499cd88aa30a37828bad5464d4f": layer "sha256:e775878494d3698030b04c08e2bb2ecc8468c499cd88aa30a37828bad5464d4f" is not present in previous metadata, layer sha256:e775878494d3698030b04c08e2bb2ecc8468c499cd88aa30a37828bad5464d4f: create repo for : invalid reference format]
Version-Release number of selected component (if applicable):
$ oc-mirror version
/usr/local/bin/oc-mirror version
Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.11.0-202208020235.p0.g3c1c80c.assembly.stream-3c1c80c", GitCommit:"3c1c80ca6a5a22b5826c88897e7a9e5acd7c1a96", GitTreeState:"clean", BuildDate:"2022-08-02T04:04:36Z", GoVersion:"go1.18.4", Compiler:"gc", Platform:"linux/amd64"}
How reproducible:
$ cat image-config-realse-local.yaml
apiVersion: mirror.openshift.io/v1alpha2
kind: ImageSetConfiguration
mirror:
operators:
- catalog: registry.redhat.io/redhat/redhat-operator-index:v4.10
$ /usr/local/bin/oc-mirror --config /root/image-config-realse-local.yaml --continue-on-error file://output-dir
[~/output-dir]$ ls -l
-rw-r--r--. 1 root root 220806319616 Sep 6 03:12 mirror_seq1_000000.tar
drwxr-xr-x. 3 root root 17 Sep 5 20:47 oc-mirror-workspace
### upload to dest registry failed with this msg.
$ /usr/local/bin/oc-mirror --from /tmp/mirror_seq1_000000.tar docker://registry.example.com:5000 --continue-on-error
...
info: Planning completed in 20ms
uploading: registry.example.com:5000/advanced-cluster-security/rhacs-operator-bundle sha256:d5096b5999c6878826355733c3c154b26b3083c1e77a95c2041f293c42cca424 30.36KiB
sha256:9b35ae6df2c19935783735d213483f3fcecead2f49f873a4f7844ef9fb5c7f1a registry.example.com:5000/advanced-cluster-security/rhacs-operator-bundle:4f51701d
info: Mirroring completed in 260ms (136.4kB/s)
registry.example.com:5000/
container-native-virtualization/virt-cdi-apiserver
blobs:
file://container-native-virtualization/virt-cdi-apiserver sha256:15785757f91c03ce1ea08da28922cdfd10984392e4684b1c0b221c6b09c34c71 1.405KiB
file://container-native-virtualization/virt-cdi-apiserver sha256:8082464c4ee2d0fbe1a9da15e44cea93b7c4d3ee062538bc381a97586ff3ce3e 3.931KiB
file://container-native-virtualization/virt-cdi-apiserver sha256:7fed3d8786f5f4fd12f1814e57e678f437bbe6b3916c982b886e27dc5e46975a 49.77MiB
file://container-native-virtualization/virt-cdi-apiserver sha256:4c2dccac4178ddcae99093d40089d7f07660320a3eca5b13ad914d81127e52f8 76.83MiB
manifests:
sha256:12e27b2b4afe334a7fab1cb42b9677a518bbfae1653d9adcd0b7234fd9d3966c
sha256:2ecfc9eba7a04fd37fc21a7c1c422bae568f9e1a66513e55ad27097773dbac1e
sha256:12e27b2b4afe334a7fab1cb42b9677a518bbfae1653d9adcd0b7234fd9d3966c -> 55fb1bea
stats: shared=0 unique=4 size=126.6MiB ratio=1.00
phase 0:
registry.example.com:5000 container-native-virtualization/virt-cdi-apiserver blobs=4 mounts=0 manifests=3 shared=0
info: Planning completed in 30ms
uploading: registry.example.com:5000/container-native-virtualization/virt-cdi-apiserver sha256:7fed3d8786f5f4fd12f1814e57e678f437bbe6b3916c982b886e27dc5e46975a 49.77MiB
uploading: registry.example.com:5000/container-native-virtualization/virt-cdi-apiserver sha256:4c2dccac4178ddcae99093d40089d7f07660320a3eca5b13ad914d81127e52f8 76.83MiB
sha256:2ecfc9eba7a04fd37fc21a7c1c422bae568f9e1a66513e55ad27097773dbac1e registry.example.com:5000/container-native-virtualization/virt-cdi-apiserver
sha256:12e27b2b4afe334a7fab1cb42b9677a518bbfae1653d9adcd0b7234fd9d3966c registry.example.com:5000/container-native-virtualization/virt-cdi-apiserver:55fb1bea
info: Mirroring completed in 1.93s (68.55MB/s)
error: error occurred during image processing: [error finding remote layer "sha256:e775878494d3698030b04c08e2bb2ecc8468c499cd88aa30a37828bad5464d4f": layer "sha256:e775878494d3698030b04c08e2bb2ecc8468c499cd88aa30a37828bad5464d4f" is not present in previous metadata, layer sha256:e775878494d3698030b04c08e2bb2ecc8468c499cd88aa30a37828bad5464d4f: create repo for : invalid reference format]
Steps to Reproduce:
Refer to the steps above
Actual results:
mirror redhat-operator-index:v4.10 in 'headsonly' mode failed
Expected results:
mirror redhat-operator-index:v4.10 in 'headsonly' mode without filter success without error
Additional info:
see also: https://github.com/openshift/oc-mirror/issues/506
- links to
-
RHEA-2023:5006
rpm