Bug 1910823

Summary: BZ-oc adm catalog mirror command in ocp4.6 has no "" --filter-by-os='.*'
Product: OpenShift Container Platform Reporter: Muhammad Selim Jahangir <mjahangi>
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: aos-bugs, jokerman, krizza, mfojtik, rmarasch
Version: 4.6   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-05 15:57:42 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 Muhammad 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 ***