Bug 1851511 - oc adm catalog mirror --filter-by-os does not work
Summary: oc adm catalog mirror --filter-by-os does not work
Keywords:
Status: CLOSED DUPLICATE of bug 1853852
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.5.z
Assignee: Evan Cordell
QA Contact: Tom Buskey
URL:
Whiteboard: non-multi-arch
Depends On: 1851817
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-26 18:38 UTC by Tom Buskey
Modified: 2020-07-20 02:41 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-20 02:41:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tom Buskey 2020-06-26 18:38:30 UTC
Description of problem:
Unable to run oc adm catalog mirror with --filter-by-os="linux/amd64"

Version-Release number of selected component (if applicable):
oc version
Client Version: openshift-clients-4.6.0-202005210021-28-g711c56a65
Server Version: 4.5.0-0.nightly-2020-06-25-033011
Kubernetes Version: v1.18.3+77c9a6a


How reproducible:
always

Steps to Reproduce:
1.oc adm catalog mirror registry.redhat.io/openshift4/ose-operator-registry:v4.4 quay.io/tbuskey/xyzzy:v4.4 --filter-by-os="linux/amd64"

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:59ebe755481e26b340f0c02784bab6ff43d7dbc1be1ca56f5056ffc70daed271
  linux/ppc64le sha256:46aeaa82a28507fa0c44dadda6b6d6ecd65fbf8cd20ad4f0bb222b86cabb8bcd
  linux/s390x   sha256:d86dad0f8925370c4a4ea45c3856ea58eac49f8733b31fe6f76be1839f5f6750

Expected results:
To have it mirror

Additional info:

Comment 1 Jian Zhang 2020-06-29 05:53:03 UTC
Get the same issue when using `oc` 4.5 version, it's better to fix it in 4.5.
[root@preserve-olm-env data]# ./oc version
Client Version: 4.5.0-rc.4
Server Version: 4.5.0-rc.4
Kubernetes Version: v1.18.3+77c9a6a

[root@preserve-olm-env data]# ./oc adm catalog mirror registry.redhat.io/openshift4/ose-operator-registry:v4.4 quay.io/olmqe/filtter:v4.4
error: the image is a manifest list and contains multiple images - use --filter-by-os to select from:

  OS            DIGEST
  linux/amd64   sha256:59ebe755481e26b340f0c02784bab6ff43d7dbc1be1ca56f5056ffc70daed271
  linux/ppc64le sha256:46aeaa82a28507fa0c44dadda6b6d6ecd65fbf8cd20ad4f0bb222b86cabb8bcd
  linux/s390x   sha256:d86dad0f8925370c4a4ea45c3856ea58eac49f8733b31fe6f76be1839f5f6750

[root@preserve-olm-env data]# ./oc adm catalog mirror registry.redhat.io/openshift4/ose-operator-registry:v4.4 quay.io/olmqe/filtter:v4.4 --filter-by-os="linux/amd64"
error: the image is a manifest list and contains multiple images - use --filter-by-os to select from:

  OS            DIGEST
  linux/amd64   sha256:59ebe755481e26b340f0c02784bab6ff43d7dbc1be1ca56f5056ffc70daed271
  linux/ppc64le sha256:46aeaa82a28507fa0c44dadda6b6d6ecd65fbf8cd20ad4f0bb222b86cabb8bcd
  linux/s390x   sha256:d86dad0f8925370c4a4ea45c3856ea58eac49f8733b31fe6f76be1839f5f6750

Comment 2 Jian Zhang 2020-07-03 03:15:51 UTC
Encounter this issue on macOS too.

$ oc adm catalog mirror registry.redhat.io/openshift4/ose-operator-registry:v4.4 quay.io/olmqe/filter:v4.4 --filter-by-os=linux/amd64
error: the image is a manifest list and contains multiple images - use --filter-by-os to select from:
  OS            DIGEST
  linux/amd64   sha256:18508cf80c294c2465984f2c68e201b341220a7cc42e32483189d8e51b28c360
  linux/ppc64le sha256:8e876ad97eba6b18703319b939261191e7761c26a36bb7e103bf59d72db62951
  linux/s390x   sha256:1dc22c00871cdcf368c9efe5286912ba890aed1610318b9930e0e4f090d90285

$ oc version
Client Version: 4.5.0-0.nightly-2020-06-30-033353
Server Version: 4.6.0-0.nightly-2020-06-30-020342
Kubernetes Version: v1.18.3+5d8c7f1


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