-
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
cannot remove container: ... running or paused containers cannot be removed without force: container state improper #15783
Comments
Different test, same symptom: f36-aarch64 again but not remote:
This one does not look like a bug in the test, it actually looks like a bug-bug. |
@mheon This looks like we are waiting for podman container cleanup to change the state from running to complete? |
Yes, that smells like a state-transition issue. |
That sounds like a test problem to me. podman start will only start the container process, there is absolutely zero guarantee that it will be finished by time we call podman rm, even if it is just The timing depends on the scheduler, I think the test assumption that this should work is wrong. If you need a guarantee you either have to use podman wait or start the process in the foreground. |
Isn't the test running the container in the foreground? There's no |
I think the bug is missing |
And also in the original report you see podman restart and run -d |
Aaaah, nice catch, @Luap99! I somehow thought it was a |
Three tests were running 'container rm' on 'start'ed containers that might not yet have exited. Fix. Also, tighten up the tests themselves, to make even more sure that they test what they're supposed to test. Discovered, in CI, that 'podman-remote logs --timestamps' was unimplemented. Thanks to @Luap99 for the fix to that. Fixes: containers#15783 Fixes: containers#15795 Signed-off-by: Ed Santiago <[email protected]>
New flake seen in remote f36-aarch64 root:
Not sure if this is a race in the test (missing
podman wait
?) or in podman-remote itself. Filing for later.My flake logs shwo three instances, all remote, all aarch64.
[sys] 79 podman logs - tail test, k8s-file
The text was updated successfully, but these errors were encountered: