-
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
podman: podman rm -f doesn't leave processes #17040
podman: podman rm -f doesn't leave processes #17040
Conversation
LGTM |
/lgtm |
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@edsantiago PTAL
b3a8353
to
3e2e650
Compare
@edsantiago addressed the comments and pushed a new version |
Test fails on my laptop:
UPDATE: only fails sometimes, which is worse. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test is broken (it flakes). Leaving it in your hands to fix.
thanks, I can reproduce as well. It is another race condition/mishandling. I expect "podman rm -f" to never fail if the container was already stopped |
check that the container has a valid pid before attempting to use kill($PID, 0) on it. If the PID==0, it means the container is already stopped. Signed-off-by: Giuseppe Scrivano <[email protected]>
follow-up to 6886e80 when "podman -rm -f" is used on a container in "stopping" state, also make sure it is terminated before removing it from the local storage. Signed-off-by: Giuseppe Scrivano <[email protected]>
3e2e650
to
4cf06fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
the patch was confirmed to fix the issue, so I'll prepare the backport as soon as this is merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, giuseppe 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 |
/hold cancel |
backport here: #17052 |
follow-up to 6886e80
when "podman -rm -f" is used on a container in "stopping" state, also make sure it is terminated before removing it from the local storage.
Signed-off-by: Giuseppe Scrivano [email protected]
Does this PR introduce a user-facing change?