events: include labels in pod and volume attributes Fixes: #26480#28879
events: include labels in pod and volume attributes Fixes: #26480#28879jiwahn wants to merge 1 commit into
Conversation
|
[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore. |
6f831f1 to
16549b7
Compare
|
@Honny1 you are right. I made changes accordingly. Thanks for the review |
Honny1
left a comment
There was a problem hiding this comment.
LGTM, Thanks!
PTAL @podman-container-tools/podman-reviewers @podman-container-tools/podman-maintainers
|
please put "Fixes..." in the commit message on a separate line |
we could turn it in an automatic check LGTM after the commit fix |
Fixes: podman-container-tools#26480 Signed-off-by: Jiwoo Ahn <ikwydls1314@gmail.com>
16549b7 to
ef2d2e4
Compare
I am not sure about this. Not all commits need to contain fixes. |
I mean if |
Checklist
Ensure you have completed the following checklist for your pull request to be reviewed:
commits. (
git commit -s). (If needed, usegit commit -s --amend). The author email must matchthe sign-off email address. See CONTRIBUTING.md
for more information.
Fixes: #00000in commit message (if applicable)make validatepr(format/lint checks)Noneif no user-facing changes)Does this PR introduce a user-facing change?
Description
Volume events currently do not include labels in the event Attributes field, even though the labels are present in volume inspect output. Container events already include labels in Attributes, so this change aligns volume and pod events with that behavior.
For journald-backed volume events, labels also need to be explicitly written to and read from PODMAN_LABELS; otherwise, labels are lost when events are reconstructed from journald.
This also fixes exec_died event construction so the execID attribute is preserved together with container labels instead of being overwritten.
Related Issues
Fixes #26480
Changes
libpod/events.go:execIDsoexecIDis not overwritten.libpod/events/journal_linux.go:test/system/090-events.bats: