Bug 1879622

Summary: `podman images --all` fails on images with digest
Product: Red Hat Enterprise Linux 8 Reporter: Valentin Rothberg <vrothber>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: ajia, bbaude, ddarrah, dornelas, dwalsh, jligon, jnovy, lmiksik, lsm5, mheon, tsweeney
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-2.0.5-5.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:06:49 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 Valentin Rothberg 2020-09-16 16:20:00 UTC
Description of problem:

After pulling an image by digest, listing _all_ images fails with a parsing error.

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

Podman v2.0.5

How reproducible:

Always.

Steps to Reproduce:
1. podman pull docker.io/library/hello-world@sha256:4cf9c47f86df71d48364001ede3a4fcd85ae80ce02ebad74156906caff5378bc
2. podman images -a

Actual results:

Error: error parsing repository tag "docker.io/library/hello-world:sha256:4cf9c47f86df71d48364001ede3a4fcd85ae80ce02ebad74156906caff5378bc":: invalid reference format


Expected results:

REPOSITORY                     TAG     IMAGE ID      CREATED        SIZE
docker.io/library/hello-world  <none>  bf756fb1ae65  8 months ago   20 kB



Additional info:

The issue was filed upstream and there is already an upstream PR against main branch: https://github.com/containers/podman/pull/7654

Comment 9 Alex Jia 2020-09-24 02:39:22 UTC
I can reproduce this bug on 2.0.5-4.module+el8.3.0+8152+c5c3262e.x86_64
and verified it on podman-2.0.5-5.module+el8.3.0+8221+97165c3f.x86_64.

[root@ibm-x3650m4-01-vm-14 ~]# podman pull docker.io/library/hello-world@sha256:4cf9c47f86df71d48364001ede3a4fcd85ae80ce02ebad74156906caff5378bc                                                                                                Trying to pull docker.io/library/hello-world@sha256:4cf9c47f86df71d48364001ede3a4fcd85ae80ce02ebad74156906caff5378bc...
Getting image source signatures
Copying blob 0e03bdcc26d7 done                                                                                          Copying config bf756fb1ae done                                                                                          Writing manifest to image destination                                                                                   Storing signatures                                                                                                      bf756fb1ae65adf866bd8c456593cd24beb6a0a061dedf42b26a993176745f6b

[root@ibm-x3650m4-01-vm-14 ~]# podman images -a                                                                         REPOSITORY                                                   TAG     IMAGE ID      CREATED       SIZE
localhost/add-grp-img                                        latest  16d0515a77f1  7 hours ago   75.6 MB
docker.io/library/ubuntu                                     latest  bb0eaf4eee00  7 days ago    75.3 MB
registry-proxy.engineering.redhat.com/rh-osbs/rhel8-buildah  8.3-9   0fa66c458d70  13 days ago   340 MB                 docker.io/library/hello-world                                <none>  bf756fb1ae65  8 months ago  20 kB

Comment 12 errata-xmlrpc 2020-11-04 03:06:49 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: container-tools:rhel8 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.

https://access.redhat.com/errata/RHSA-2020:4694