Bug 1910823 - BZ-oc adm catalog mirror command in ocp4.6 has no "" --filter-by-os='.*'
Summary: BZ-oc adm catalog mirror command in ocp4.6 has no "" --filter-by-os='.*'
Keywords:
Status: CLOSED DUPLICATE of bug 1908565
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.6
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Evan Cordell
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-25 01:13 UTC by Selim Jahangir
Modified: 2024-06-13 23:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-05 15:57:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Selim Jahangir 2020-12-25 01:13:32 UTC
Description of problem:
mirrored images have a mismatch on sha in air gapped ocp cluster deployment

As per cm#42 from this BZ(
https://bugzilla.redhat.com/show_bug.cgi?id=1800674), customer applied the workaround and the issue ws resolved but later the same issue came back in ocp.4.5. 


from cm#42, workaround was: To use " --filter-by-os='.*' instead of "`--filter-by-os='linux/amd64`" 

Now customer is having the same issue in ocp4.6.x and the customer wanted to appy the same workaround to use " --filter-by-os='.*'" but this option is not even available in ocp.4.6x.

- from customer:
$ /var/lib/import/bin/oc adm catalog mirror registry.redhat.io/redhat/redhat-operator-index:v4.5 localhost:7000/redhat-operator -a /var/lib/import/plays/auth.json --filter-by-os='.*' --max-components=3 --to-manifests=/var/lib/import/olm/redhat-operator --path=/:/var/lib/import/olm/redhat-operator/image --insecure 
                                                                                                                                     
error: the image is a manifest list and contains multiple images - use --filter-by-os to select from:

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

ocp4.6.x and ocp.4.5.22

How reproducible:


Steps to Reproduce:
1.

$ /var/lib/import/bin/oc adm catalog mirror registry.redhat.io/redhat/redhat-operator-index:v4.5 localhost:7000/redhat-operator -a /var/lib/import/plays/auth.json --filter-by-os='.*' --max-components=3 --to-manifests=/var/lib/import/olm/redhat-operator --path=/:/var/lib/import/olm/redhat-operator/image --insecure                                                                                                                                      
error: the image is a manifest list and contains multiple images - use --filter-by-os to select from:

  OS            DIGEST
  linux/amd64   sha256:9fbe32d0d8183b5f501676e0744330c5eaa1df6f001d494f7a39cee48d154c1b
  linux/ppc64le sha256:15b5b9b20f82faf76f2dd7028aa31e6619024534b6093740ff279c26178975ab
  linux/s390x   sha256:8b2a8feda354f2b5e8ea45dbee8debe04984d99a48a568a686c66cf342526f2a


Actual results:
- error: the image is a manifest list and contains multiple images - use --filter-by-os to select from:

  OS            DIGEST
  linux/amd64   sha256:9fbe32d0d8183b5f501676e0744330c5eaa1df6f001d494f7a39cee48d154c1b
  linux/ppc64le sha256:15b5b9b20f82faf76f2dd7028aa31e6619024534b6093740ff279c26178975ab
  linux/s390x   sha256:8b2a8feda354f2b5e8ea45dbee8debe04984d99a48a568a686c66cf342526f2a


Expected results:

- No Error - mirroring should be completed

Additional info:
Original BZ https://bugzilla.redhat.com/show_bug.cgi?id=1800674 is closed hence new BZ has been created.

Comment 2 Kevin Rizza 2021-01-05 15:57:42 UTC

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


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