Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Podman throws below error if executed in a consecutive time of 1 sec ( although not important ) while multiple builds are getting executed in parallel
Error: retrieving label for image "e1d051d6dbc35587162d4782ddffdbfe34883a1516087f9e2516e4d24d74e451": you may need to remove the image to resolve the error: fallback error checking whether image is a manifest list: reading image "e1d051d6dbc35587162d4782ddffdbfe34883a1516087f9e2516e4d24d74e451": locating image with ID "e1d051d6dbc35587162d4782ddffdbfe34883a1516087f9e2516e4d24d74e451": image not known: reading image "e1d051d6dbc35587162d4782ddffdbfe34883a1516087f9e2516e4d24d74e451": locating image with ID "e1d051d6dbc35587162d4782ddffdbfe34883a1516087f9e2516e4d24d74e451": image not known
Version-Release number of selected component (if applicable):
podman-4.4.1-12.module+el8.8.0+18735+a32c1292.x86_64
Can be reproduced on RHEL 9 podman as well.
How reproducible:
3 out of 5 tries
Steps to Reproduce:
Dockerfile :
FROM registry.access.redhat.com/ubi8/ubi
COPY foo /tmp
Command 1 : #for i in $(seq -w 00 07); do (echo $i > foo; podman build -t test$i .; podman rmi test$i)& done;
Command 2 : #while :; do echo start; podman images || break; echo end; echo; sleep 1; done
Error comes from :
containers-podman-aa5db47/pkg/domain/infra/abi/images_list.go :
-------------------------------------------------
e := entities.ImageSummary{
ID: img.ID(),
Created: img.Created().Unix(),
Dangling: isDangling,
Digest: string(img.Digest()),
RepoDigests: repoDigests,
History: img.NamesHistory(),
Names: img.Names(),
ReadOnly: img.IsReadOnly(),
SharedSize: 0,
RepoTags: img.Names(), // may include tags and digests
}
e.Labels, err = img.Labels(ctx)
if err != nil {
return nil, fmt.Errorf("retrieving label for image %q: you may need to remove the image to resolve the error: %w", img.ID(), err)
}
------------------------------------------------
Actual results:
#podman images command fails while executing multiple image builds
Expected results:
#podman images command should succeed every time unless there is a process kill while the build is in place.
Additional info:
https://github.com/containers/storage/pull/1113/commits/bb046fb8b4c729a099cd6ca5ce9a6d52fa717ee1 was added referencing the error.
Comment 2Valentin Rothberg
2023-06-23 07:15:49 UTC
Thanks for pulling me in, Tom.
> Command 1 : #for i in $(seq -w 00 07); do (echo $i > foo; podman build -t test$i .; podman rmi test$i)& done;
> Command 2 : #while :; do echo start; podman images || break; echo end; echo; sleep 1; done
That is an interesting case. Thank you for the nice reproducer. I will prepare a fix for it.
Comment 3Valentin Rothberg
2023-06-23 11:50: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 and 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/RHSA-2023:6939
Description of problem: Podman throws below error if executed in a consecutive time of 1 sec ( although not important ) while multiple builds are getting executed in parallel Error: retrieving label for image "e1d051d6dbc35587162d4782ddffdbfe34883a1516087f9e2516e4d24d74e451": you may need to remove the image to resolve the error: fallback error checking whether image is a manifest list: reading image "e1d051d6dbc35587162d4782ddffdbfe34883a1516087f9e2516e4d24d74e451": locating image with ID "e1d051d6dbc35587162d4782ddffdbfe34883a1516087f9e2516e4d24d74e451": image not known: reading image "e1d051d6dbc35587162d4782ddffdbfe34883a1516087f9e2516e4d24d74e451": locating image with ID "e1d051d6dbc35587162d4782ddffdbfe34883a1516087f9e2516e4d24d74e451": image not known Version-Release number of selected component (if applicable): podman-4.4.1-12.module+el8.8.0+18735+a32c1292.x86_64 Can be reproduced on RHEL 9 podman as well. How reproducible: 3 out of 5 tries Steps to Reproduce: Dockerfile : FROM registry.access.redhat.com/ubi8/ubi COPY foo /tmp Command 1 : #for i in $(seq -w 00 07); do (echo $i > foo; podman build -t test$i .; podman rmi test$i)& done; Command 2 : #while :; do echo start; podman images || break; echo end; echo; sleep 1; done Error comes from : containers-podman-aa5db47/pkg/domain/infra/abi/images_list.go : ------------------------------------------------- e := entities.ImageSummary{ ID: img.ID(), Created: img.Created().Unix(), Dangling: isDangling, Digest: string(img.Digest()), RepoDigests: repoDigests, History: img.NamesHistory(), Names: img.Names(), ReadOnly: img.IsReadOnly(), SharedSize: 0, RepoTags: img.Names(), // may include tags and digests } e.Labels, err = img.Labels(ctx) if err != nil { return nil, fmt.Errorf("retrieving label for image %q: you may need to remove the image to resolve the error: %w", img.ID(), err) } ------------------------------------------------ Actual results: #podman images command fails while executing multiple image builds Expected results: #podman images command should succeed every time unless there is a process kill while the build is in place. Additional info: https://github.com/containers/storage/pull/1113/commits/bb046fb8b4c729a099cd6ca5ce9a6d52fa717ee1 was added referencing the error.