-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid event on image removal + missing untag event from REST API #15485
Comments
I'll get the misnamed event now. @vrothberg The missing untag event will need to go in libimage, right? |
Change only the compat API, so we don't force a breaking change on Libpod API users. Partial fix for containers#15485 Signed-off-by: Matthew Heon <[email protected]>
Yes, that needs to go into libimage. The |
As reported in containers/podman/issues/15485, Docker sends untag events prior to removing the image. Follow that example for compatibility reasons. Signed-off-by: Valentin Rothberg <[email protected]>
Open a PR containers/common#1132 |
Emit untag events for each tag when removing an image. Fixes: containers#15485 Signed-off-by: Valentin Rothberg <[email protected]>
Change only the compat API, so we don't force a breaking change on Libpod API users. Partial fix for containers#15485 Signed-off-by: Matthew Heon <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Removing an image should send a
delete
event but I'm receiving aremove
eventhttps://docs.docker.com/engine/api/v1.41/#tag/System/operation/SystemEvents
states:
Images report these events:
delete
,import
,load
,pull
,push
,save
,tag
,untag
, andprune
Steps to reproduce the issue:
track events in a separate terminal
remove the image
look at the events
Now, try with podman
pull httpd image
Track events in a separate terminal
remove the image
Untagged: docker.io/library/httpd:latest
Deleted: a981c8992512d65c9b450a9ecabb1cb9d35bb6b03f3640f86471032d5800d825
look at events
we are missing the
untag
event and we receive aremove
event instead ofdelete
Describe the results you received:
receive
remove
Describe the results you expected:
expect
untag
+delete
eventsAdditional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes/No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: