Bug 1760089 - 'oc image mirror' reports error when processing manifest list
Summary: 'oc image mirror' reports error when processing manifest list
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.4.0
Assignee: Clayton Coleman
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-09 19:37 UTC by Justin Pierce
Modified: 2020-05-13 21:52 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-13 21:52:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:0581 0 None None None 2020-05-13 21:52:01 UTC

Description Justin Pierce 2019-10-09 19:37:39 UTC
Description of problem:
If a v2s2 manifest list is specified in an "oc image mirror --filter-by-os='.*' .." invocation, the tool attempts to mirror the manifest list, but fails with: "manifest blob unknown: blob unknown to registry"  (because one or more images referenced in the manifest list is not present on the destination registry)

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

How reproducible:
100%

Steps to Reproduce:
(registry-proxy.engineering.redhat.com requires a Red Hat network connection)_
1. oc image mirror --filter-by-os='.*' registry-proxy.engineering.redhat.com/rh-osbs/openshift-ose-machine-config-operator:v4.3.0-201910021355=dest/repo

Actual results:
The mirroring process fails because images within the manifest list are not present on the destination registry.

Expected results:
The utility should mirror all blobs in the manifest list before mirroring the manifest list itself.

Comment 2 Maciej Szulik 2020-01-31 11:49:06 UTC
Looks like this is working just fine, moving to testing.

Comment 4 zhou ying 2020-02-04 05:46:27 UTC
Confirmed with the latest oc version , can't reproduced the issue now:

[root@dhcp-140-138 roottest]# oc version -o yaml
clientVersion:
  buildDate: "2020-01-31T09:12:41Z"
  compiler: gc
  gitCommit: 709731817c7fef663038ab72dc13ea5fb0995cd2
  gitTreeState: dirty
  gitVersion: openshift-clients-4.4-17-g70973181
  goVersion: go1.13.4
  major: ""
  minor: ""
  platform: linux/amd64
releaseClientVersion: 4.4.0-0.nightly-2020-02-04-002939

[root@dhcp-140-138 roottest]# oc image mirror --filter-by-os='.*' --insecure=true  registry-proxy.engineering.redhat.com/rh-osbs/openshift-ose-machine-config-.....
......
sha256:01a06ebcb96f0f9b4fc903b4dd6489cdf4fa197211cdd041015ab403b471a5e1 docker.io/zhouying7780/test:v43
info: Mirroring completed in 2m26.42s (2.844MB/s)

Comment 6 errata-xmlrpc 2020-05-13 21:52:00 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.