Bug 2092731

Summary: Give more clear information when `oc adm release new` without the --keep-manifest-list opotion for the manifestlist imagestream YAML
Product: OpenShift Container Platform Reporter: zhou ying <yinzhou>
Component: ocAssignee: Arda Guclu <aguclu>
oc sub component: oc QA Contact: zhou ying <yinzhou>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: adistefa, aguclu, maszulik, mfojtik
Version: 4.11   
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 19:49:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description zhou ying 2022-06-02 07:12:38 UTC
Description of problem:
`oc adm release new` without the --keep-manifest-list opotion will failed for the manifestlist imagestream YAML

Version-Release number of selected component (if applicable):
Client Version: 4.11.0-0.nightly-2022-06-01-200905

How reproducible:
Always


Steps to Reproduce:
1.Use the `oc adm release new` without the --keep-manifest-list opotion for the manifestlist imagestream YAML
`oc adm release new --reference-mode=source -f 12708358_4.11.0-0.nightly-multi-2022-04-18-120932-release-imagestream.yaml  --name 4.11.0-0.nightly --to-image=localhost:5000/ocp-release:4.11.0-0.nightly --insecure`

Actual results:
1.  oc adm release new --reference-mode=source -f 12708358_4.11.0-0.nightly-multi-2022-04-18-120932-release-imagestream.yaml  --name 4.11.0-0.nightly --to-image=localhost:5000/ocp-release:4.11.0-0.nightly --insecure
info: Found 171 images in image stream
Warning: the default reading order of registry auth file will be changed from "${HOME}/.docker/config.json" to podman registry config locations in the future version of oc. "${HOME}/.docker/config.json" is deprecated, but can still be used for storing credentials as a fallback. See https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md for the order of podman registry config locations.
W0602 14:10:10.849458   55710 manifest.go:442] Chose linux/amd64 manifest from the manifest list.
 
……
error: failed to push image localhost:5000/ocp-release:4.11.0-0.nightly: unknown image manifest of type *manifestlist.DeserializedManifestList from manifest sha256:25273700fcd65a775080b1278693a7f2c7c5cc5ad548da2e1d9cd01cae831c97

Expected results:
1. No failed.

Additional info:

Comment 1 Maciej Szulik 2022-06-10 11:29:25 UTC
Can you provide me with that yaml file you're using for tests?

Comment 6 Maciej Szulik 2022-07-27 14:05:43 UTC
Should be implemented in https://github.com/openshift/oc/pull/1213

Comment 7 zhou ying 2022-08-02 06:34:58 UTC
oc adm release new --reference-mode=source -f 12708358_4.11.0-0.nightly-multi-2022-04-18-120932-release-imagestream.yaml  --name 4.11.0-0.nightly --to-image=localhost:5000/ocp-release:4.11.0-0.nightly --insecure
info: Found 171 images in image stream
Warning: the default reading order of registry auth file will be changed from "${HOME}/.docker/config.json" to podman registry config locations in the future version of oc. "${HOME}/.docker/config.json" is deprecated, but can still be used for storing credentials as a fallback. See https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md for the order of podman registry config locations.
error: unable to parse image quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:0fe9b02d9797b137e1596441b476124bfa3ce10a73749baa118df3a1d15cf192: use --keep-manifest-list option for image manifest type *manifestlist.DeserializedManifestList from manifest sha256:0fe9b02d9797b137e1596441b476124bfa3ce10a73749baa118df3a1d15cf192


 oc version --client
Client Version: 4.12.0-0.nightly-2022-08-01-151317
Kustomize Version: v4.5.4

Comment 10 errata-xmlrpc 2023-01-17 19:49:30 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 (Moderate: OpenShift Container Platform 4.12.0 bug fix and security 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/RHSA-2022:7399