4.4 cherry-pick in https://github.com/openshift/oc/pull/304
Hi Jian, I would expect the error you saw. `oc adm catalog mirror` isn't supposed to work against any image. It only works against operator-registry catalog images because it reads the contents of the database and mirrors the related images. This fix was to update `oc image mirror` which `oc adm catalog mirror` calls internally to mirror the related images in the database. I think that testing `oc image mirror` against a manifest that contains just one architecture should be enough to verify this bug. If you wanted to double check that `oc adm catalog mirror` is consuming image mirror's latest behavior as well, you could just mirror the normal catalog and compare the digests that `oc adm catalog mirror` is trying to copy over to what you already saw when running `oc adm image mirror`.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0581