Bug 1804600 - oc image mirror doesn't mirror manifestlist for single image manifestlists
Summary: oc image mirror doesn't mirror manifestlist for single image manifestlists
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.4
Hardware: x86_64
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.4.0
Assignee: Kevin Rizza
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On: 1800674
Blocks: 1804463
TreeView+ depends on / blocked
 
Reported: 2020-02-19 09:09 UTC by Maciej Szulik
Modified: 2020-05-04 11:38 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1800674
Environment:
Last Closed: 2020-05-04 11:37:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 304 0 None closed [release-4.4] Bug 1804600: Option to force RepoDigest mirror 2021-02-09 06:13:39 UTC
Red Hat Product Errata RHBA-2020:0581 0 None None None 2020-05-04 11:38:06 UTC

Comment 1 Maciej Szulik 2020-02-19 09:11:54 UTC
4.4 cherry-pick in https://github.com/openshift/oc/pull/304

Comment 5 Kevin Rizza 2020-02-24 15:14:19 UTC
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`.

Comment 8 errata-xmlrpc 2020-05-04 11:37:31 UTC
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


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