Skip to content
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

Remove persist directory when cleaning up Conmon files #25297

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

mheon
Copy link
Member

@mheon mheon commented Feb 11, 2025

This seems to have been added as part of the cleanup of our handling of OOM files, but code was never added to remove it, so we leaked a single directory with an exit file and OOM file per container run. Apparently have been doing this for a while - I'd guess since March of '23 - so I'm surprised more people didn't notice.

Fixes #25291

Marking No New Tests as I didn't say any existing exit file tests, but I could add one if folks want.

Does this PR introduce a user-facing change?

Fixed a bug where Podman would leak a file and directory for every container created.

This seems to have been added as part of the cleanup of our
handling of OOM files, but code was never added to remove it, so
we leaked a single directory with an exit file and OOM file per
container run. Apparently have been doing this for a while - I'd
guess since March of '23 - so I'm surprised more people didn't
notice.

Fixes containers#25291

Signed-off-by: Matt Heon <mheon@redhat.com>
@mheon mheon added the No New Tests Allow PR to proceed without adding regression tests label Feb 11, 2025
Copy link
Contributor

openshift-ci bot commented Feb 11, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mheon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 11, 2025
@baude
Copy link
Member

baude commented Feb 11, 2025

code lgtm

@rhatdan
Copy link
Member

rhatdan commented Feb 11, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 11, 2025
@mheon
Copy link
Member Author

mheon commented Feb 11, 2025

/cherry-pick v5.4

For 5.4.1

@openshift-cherrypick-robot
Copy link
Collaborator

@mheon: once the present PR merges, I will cherry-pick it on top of v5.4 in a new PR and assign it to you.

In response to this:

/cherry-pick v5.4

For 5.4.1

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 62cde17 into containers:main Feb 11, 2025
79 of 83 checks passed
@openshift-cherrypick-robot
Copy link
Collaborator

@mheon: new pull request created: #25299

In response to this:

/cherry-pick v5.4

For 5.4.1

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think having a test to ensure the exit file was deleted might be a good idea here to prevent any regressions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. No New Tests Allow PR to proceed without adding regression tests release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rootless container libpod/tmp/persist directories not cleaned up, fill up tmpfs
5 participants