-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
container event Attributes
mixes unrelated namespaces and scopes
#19143
Comments
AFAIK I think this is mostly how it work with docker as well but we should double check. As for as thinks like |
Ack, the repetition is just an optimization (and mostly an annoyance when staring at logs), if it has a purpose, then let's ignore that part.
Yeah, |
The same applies to |
A friendly reminder that this issue had no activity for 30 days. |
bump |
A friendly reminder that this issue had no activity for 30 days. |
Issue Description
Noticed in the context of #19124. Every single "container" event has the
Attributes
map -- most of these are properties of the image; they can be freely defined byContainerfile
, have a considerable size, and will never change for an image, so they shouldn't be logged again for each event. That should greatly reduce the amount of journal size?But more importantly: The
.Attributes
map also contains thepodId
andcontainerExitCode
: These are container runtime propertyies, not a static image ones. This mixes different kinds of namespaces, i.e. has the possibility of collisions (in principle, a Containerfile could define apodId
attribute), and also different kinds of scopes (image vs. container).Steps to reproduce the issue
Steps to reproduce the issue
and in another terminal:
Describe the results you received
See description. Example of an
attach
event, but they all look the same wrt..Attributes
:Describe the results you expected
created
.podId
,containerExitCode
(and possibly other attributes) should be in a different key, likeActor
or make them top-level attributes.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: