Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1938298

Summary: `oc adm catalog mirror` breaks Quay with oversized GET
Product: OpenShift Container Platform Reporter: Dale Bewley <dbewley>
Component: OLMAssignee: Kevin Rizza <krizza>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: unspecified CC: dyan, tomckay
Version: 4.7   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-24 13:49:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dale Bewley 2021-03-12 17:46:21 UTC
Description of problem:

  `oc adm catalog mirror` with Quay as target repository fails due to GET request > 4096 bytes. 

  Error: "Request Line is too large (4160 &gt; 4094)"

Version-Release number of selected component (if applicable):

  oc 4.7.0
  ocp 4.6.19
  quay operator 3.4.2

How reproducible:

  Every time

Steps to Reproduce:

1. opm index prune \
  -f registry.redhat.io/redhat/redhat-operator-index:v4.6 \
  -p amq-broker,amq-broker-lts,amq-online,amq-streams,amq7-interconnect-operator \
  -t quay-quay-quay.apps.vipi.lab.bewley.net/dlbewley/redhat-operator-index:v4.6

2. podman push quay-quay-quay.apps.vipi.lab.bewley.net/dlbewley/redhat-operator-index:v4.6

3. oc adm catalog mirror \
  quay-quay-quay.apps.vipi.lab.bewley.net/dlbewley/redhat-operator-index:v4.6 \
  quay-quay-quay.apps.vipi.lab.bewley.net/dlbewley \
  -a /run/user/1000/containers/auth.json

Actual results:

  error: unable to push manifest to quay-quay-quay.apps.vipi.lab.bewley.net/dlbewley/amq7-amq-streams-kafka-24-rhel7:a7227715: Put "https://quay-quay-quay.apps.vipi.lab.bewley.net/v2/dlbewley/amq7-amq-streams-kafka-24-rhel7/manifests/a7227715": error parsing HTTP 400 response body: invalid character '<' looking for beginning of value: "<html>\n  <head>\n    <title>Bad Request</title>\n  </head>\n  <body>\n    <h1><p>Bad Request</p></h1>\n    Request Line is too large (4160 &gt; 4094)\n  </body>\n</html>\n"

Expected results:

 Successful push of mirrored content

Additional info:

  Essentially dupe of BZ1874106 but it was recommended to file one against `oc adm catalog mirror`.

  Request advice for workaround in mean time.

Comment 1 Kevin Rizza 2021-03-24 13:49:22 UTC
It appears as though this is just a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1874106. oc adm catalog mirror uses oc image mirror under the hood directly, and given that that bz is verified I don't believe a workaround is required at this time, nor would we be able to provide one separate from a fix to oc image mirror.

Closing as DUPLICATE.

*** This bug has been marked as a duplicate of bug 1874106 ***