Description of problem:
`oc image append` can't work with multi-arch image with --filter-by-os='.*'
Version-Release number of selected component (if applicable):
[root@preserver-workloadrhel-1 1204]# oc version
Client Version: 4.7.0-202012091125.p0-0229219
Steps to Reproduce:
1) use command as follow:
`oc image append --from localhost:5000/must-gather:latest --filter-by-os='.*' --to privateregistry:5000/openshifttest/must-gather:latest /root/oc.tar.gz --insecure`
1) Failed with error:
error: unable to parse image localhost:5000/must-gather:latest: unknown image manifest of type *manifestlist.DeserializedManifestList from manifest sha256:d8e0b62c75bff609394bfaa43c923480d2d0bf2f7a3f36fd28ec601f99f3d25c
1) No error, and could append to multi-arch image.
The wildcard filter is not supported with oc image append|extract. There is a PR to clarify this and also update the help menu: https://github.com/openshift/oc/pull/513
I've split the help text update commits from the PR in Comment#1 into a separate PR to be merged within the next sprint: https://github.com/openshift/oc/pull/707
Comfirmed with latest oc client:
[root@dhcp-140-138 ~]# oc image append -h
Add layers to container images
# Add a new layer to a multi-architecture image for an os/arch that is different from the system's os/arch
# Note: Wildcard filter is not supported with append. Pass a single os/arch to append.
oc image append --from docker.io/library/busybox:latest --filter-by-os=linux/s390x --to myregistry.com/myimage:latest
[root@dhcp-140-138 ~]# oc version --client
Client Version: 4.7.0-202101162121.p0-4d52be6
Will move to verified status.
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.7.0 security, bug fix, and enhancement 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.