Bug 1882364

Summary: Import by digest doesn't work for manifest lists
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: ImageStreamsAssignee: Ricardo Maraschini <rmarasch>
Status: CLOSED ERRATA QA Contact: XiuJuan Wang <xiuwang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: adam.kaplan, aos-bugs, bparees, jokerman, jscholz, kliberti, obulatov, wzheng, xiuwang
Target Milestone: ---Keywords: Reopened, UpcomingSprint
Target Release: 4.4.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Bad managing on conversion from manifest list to manifest Consequence: Imports using digests on manifest lists were not taking place. Fix: We fixed the conversion by using the digest of the selected manifest inside the manifest list. Result: Imports by digest of manifest lists now works as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-11 04:56:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1857128    
Bug Blocks:    

Comment 1 Ricardo Maraschini 2020-10-02 07:40:29 UTC
PRs exist, awaiting for review.

Comment 2 Ricardo Maraschini 2020-10-19 23:00:53 UTC
Awaiting for review.

Comment 5 XiuJuan Wang 2020-10-26 10:06:20 UTC
Verified with 4.4.0-0.nightly-2020-10-25-180448 version

$ ./oc tag docker.io/library/ubuntu@sha256:d1d454df0f579c6be4d8161d227462d69e163a8ff9d20a847533989cf0c94d90 ubuntu:latest 
Tag ubuntu:latest set to docker.io/library/ubuntu@sha256:d1d454df0f579c6be4d8161d227462d69e163a8ff9d20a847533989cf0c94d90.
$ ./oc describe is 
Name:			ubuntu
Namespace:		xiuwang
Created:		7 seconds ago
Labels:			<none>
Annotations:		openshift.io/image.dockerRepositoryCheck=2020-10-26T10:04:11Z
Image Repository:	image-registry.openshift-image-registry.svc:5000/xiuwang/ubuntu
Image Lookup:		local=false
Unique Images:		1
Tags:			1

latest
  tagged from docker.io/library/ubuntu@sha256:d1d454df0f579c6be4d8161d227462d69e163a8ff9d20a847533989cf0c94d90

  * docker.io/library/ubuntu@sha256:ca013ac5c09f9a9f6db8370c1b759a29fe997d64d6591e9a75b71748858f7da0
      7 seconds ago
$ ./oc version 
Client Version: 4.4.0-0.nightly-2020-10-25-180448
Server Version: 4.4.0-0.nightly-2020-10-25-180448
Kubernetes Version: v1.17.1+fd2e9f9

Comment 7 errata-xmlrpc 2020-11-11 04:56:51 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 (OpenShift Container Platform 4.4.30 bug fix update), 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:4321