-
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(?) in podman run --rm then podman rm? #23640
Comments
This already failed on #23601, I thought I fixed it there, see the conversation on the PR. In general wait waits for stopping not removal... so maybe we should just fix the broken assumption instead of trying to make it work... |
But I don't see how this can happen though. wait waits for the conmon pid to be gone, but conmon will wait for the podman container cleanup process to finish first (and that process deletes the ctr). So in theory I do not see how wait can return before the cleanup process finished. |
Took me an hour but I got it to fail locally...
|
Ok using my ebpf script I found the issue and there is just no sane way for podman wait to wait until ctr is removed as it only wait for the ctr to be stopped and the status is already updated so wait exits right away but cleanup wasn't done removing as it lock/unlock sync twice and if waits get the lock ofet the first sync in cleanup we fail here. So I say the test assumption is wrong. What we could do is make something like |
This is NOT in a parallel test:
debian root. Technically it is in #23275, my parallel test, but this happened in the FIRST Bats run, the serial one.
The comments in this part of the code read:
podman/test/system/800-config.bats
Lines 74 to 83 in 951f774
The text was updated successfully, but these errors were encountered: