-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
race: 'podman stop' does not always remove all podman mounts #5747
Comments
Well if the container is running podman stop will stop the container, then conmon realizes that the container has stopped, and then execs |
Hmmmm. I think that, right now, |
Wouldn't that give you a race as well, in that the container would still be running? Or at least podman container cleanup would fail. |
I think we guarantee that the container is stopped after the |
A friendly reminder that this issue had no activity for 30 days. |
I'll self-assign this. It's fairly low priority, but hopefully I can get to it sometime in the next few weeks. |
The cleanup process was already running and ensuring that mounts and networking configuration was cleaned up on container stop, but this was async from the actual `podman stop` command which breaks some expectations - the container is still mounted at the end of `podman stop` and will be cleaned up soon, but not immediately. Fortunately, it's a trivial change to resolve this. Fixes containers#5747 Signed-off-by: Matthew Heon <[email protected]>
One of the e2e tests,
podman list running container
in test/e2e/mount_test.go, occasionally flakes in CI. Basically,podman mount
is finding an active mountpoint even after the container ispodman stopped
. Rerunningpodman mount
a second later finds no mounts, so it's pretty likely a race: maybe there's some cleanup that isn't happening in time.If this race condition is OK, that is, if it doesn't matter whether
podman mount
shows a dead mountpoint from a stopped container, then the e2e test must be fixed.If this race condition is not OK, that is, if
podman stop
should guarantee that there are no mount points when it exits, then podman stop must be fixed.Reproducer:
Sample run:
CI failure is f30; I can reproduce with podman-1.8.0-4.fc30.
Problem still present in rawhide: podman-1.8.3-0.75.dev.gitf7dffed.fc33
The text was updated successfully, but these errors were encountered: