Bug 1938298 - `oc adm catalog mirror` breaks Quay with oversized GET
Summary: `oc adm catalog mirror` breaks Quay with oversized GET
Keywords:
Status: CLOSED DUPLICATE of bug 1874106
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Kevin Rizza
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-12 17:46 UTC by Dale Bewley
Modified: 2021-03-24 13:49 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-24 13:49:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1874106 1 high CLOSED "oc image mirror" fails to mirror multiple images to quay.io 2024-12-20 19:14:14 UTC

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 > 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 ***


Note You need to log in before you can comment on or make changes to this bug.