Bug 2092731 - Give more clear information when `oc adm release new` without the --keep-manifest-list opotion for the manifestlist imagestream YAML
Summary: Give more clear information when `oc adm release new` without the --keep-man...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.12.0
Assignee: Arda Guclu
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-02 07:12 UTC by zhou ying
Modified: 2023-01-17 19:49 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-17 19:49:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 1213 0 None open Bug 2092731: Change error message to signal passing keep-manifest-list flag 2022-07-25 06:50:59 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:49:50 UTC

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


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