Bug 1976285

Summary: [Azure] While mirroring images to private registry throwing error: invalid character '<' looking for beginning of value
Product: OpenShift Container Platform Reporter: Maciej Szulik <maszulik>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: kuiwang
Severity: high Docs Contact:
Priority: high    
Version: 4.6CC: akaris, aos-bugs, christian.affolter, dgautam, igarciam, jocolema, jokerman, kechung, ksathe, maszulik, mfojtik, mmohan, nbhatt, oarribas, somalley, yinzhou
Target Milestone: ---   
Target Release: 4.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of: 1976284 Environment:
Last Closed: 2021-07-14 07:16:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1976284    
Bug Blocks:    

Comment 3 kuiwang 2021-07-06 11:58:07 UTC
--
[jzhang@dhcp-140-36 kuiwang]$ ./oc version --client
Client Version: 4.6.0-0.nightly-2021-07-03-024629
[jzhang@dhcp-140-36 kuiwang]$ ./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/660889478
wrote database to /tmp/660889478
using database at: /tmp/660889478/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
      registry.redhat.io/amq7/amq-streams-bridge-rhel7 sha256:41f5ea5ba7aa3cc6de6a57509aba3b3fd1dcf25cd01bee01450705a8b74daef2 1.858KiB
...
uploading: quay.io/olmqe/openshift4-ose-kube-rbac-proxy sha256:9c96f6ba43f8eb443b37412d542c69aa0654ed9086b415d5c33f5eb5f4393e59 17.66MiB
uploading: quay.io/olmqe/openshift4-ose-kube-rbac-proxy sha256:c637e61638a4e3ef9f1182cc5d3924aabde5627a3e5d702a5f86d51ee38a03fd 16.09MiB
uploading: quay.io/olmqe/openshift4-ose-kube-rbac-proxy sha256:d0b7518aeb1ed34ff2f70deab807d9c6fe92872d94a775702ba464264434e499 10.81MiB
uploading: quay.io/olmqe/openshift4-ose-kube-rbac-proxy sha256:da4f8ae5749739892d3311c1a8fb31b55efdadd8aceedd48faab3f6b3c1ba607 17.53MiB
--

Comment 5 errata-xmlrpc 2021-07-14 07:16:58 UTC
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.6.38 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:2641