Cause:
During mirroring we create an authorization header with all the image information.
Consequence:
Some registries have limits on header size which are violated by the size.
Fix:
Force --skip-multiple-scopes for oc adm catalog mirror command.
Result:
Mirroring works as expected.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (OpenShift Container Platform 4.7.19 bug fix update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2021:2554
can't reproduce with latest oc client: [jzhang@dhcp-140-36 ~]$ ./oc version --client Client Version: 4.7.0-0.nightly-2021-07-01-021451 [jzhang@dhcp-140-36 ~]$ ./oc adm catalog mirror quay.io/openshift-qe-optional-operators/ocp4-index:latest quay.io/olmqe src image has index label for database path: /database/index.db using database path mapping: /database/index.db:/tmp/021158519 wrote database to /tmp/021158519 using database at: /tmp/021158519/index.db quay.io/ olmqe/amq7-amq-streams-bridge-rhel7 blobs: registry.redhat.io/amq7/amq-streams-bridge-rhel7 sha256:57584b59d88badb977c5077949af3d65f9b9f864d1c9f295a97aed0ab555e865 1.645KiB registry.redhat.io/amq7/amq-streams-bridge-rhel7 sha256:0dc69daaa449d5bb3174c603b31b9cb51e446f8b8bb4f0604c12dfbd7e587536 1.771KiB registry.redhat.io/amq7/amq-streams-bridge-rhel7 sha256:2814fe1cf24ff0dff937f2fa98bfb5e1607a091eaed8821d08fadb46d2e4fa15 1.856KiB .... uploading: quay.io/olmqe/openshift4-ose-kube-rbac-proxy sha256:c7fc28264eb57e585d882b48fd430b227017858345b62c18c4fa0417cc6b03f1 15.35MiB uploading: quay.io/olmqe/openshift4-ose-kube-rbac-proxy sha256:d40fbc59c975a5b2679c4159a6671d4f96dfd9c684cf4401aa27f301b8f4670b 39.83MiB uploading: quay.io/olmqe/openshift4-ose-kube-rbac-proxy sha256:0fce82565dd7f1597f3f063aada10fc1ec363e24ba671eb903c69577894e94b4 15.18MiB uploading: quay.io/olmqe/openshift4-ose-kube-rbac-proxy sha256:4913d6af3405932328469181492ce21b933fc432451ca4ee1ef5cf112703dbc7 10.99MiB