Podman ExecIDs report inaccurate Running state. #18424
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
It seems that podman ExecIDs are persisting and reporting as "running" for ~5 minutes before being removed.
I've only tested this using the podman Golang bindings. Here is a demonstration program: https://gist.github.com/AndroidKitKat/2e1233b17316d96173fe1cf9f3e8aa48
Steps to reproduce the issue
Steps to reproduce the issue
I did this using the Go program referenced in the GitHub Gist above
I compiled it by doing:
Describe the results you received
In that file, I have an Exec with the command
sleep 5
and I have a loop running checking the status of the Exec every 1 second. For a duration of 5 seconds (the duration of the sleep command) + 5 minutes, theinspectResult
struct'sRunning
member istrue
, until eventually the program crashes due to no error handling when checkingcontainers.ExecInspect
because the ExecID seems to no longer exist at all.Here's the output of the program:
Describe the results you expected
After 5 seconds, the Exec shows as "Not running" due to sleep exiting.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
Running on bare metal on Intel NUCs with 11th gen Intel processors.
I am accessing Podman using the golang bindings.
Additional information
I verified that the sleep command exits by looking at the process list of the container.
The text was updated successfully, but these errors were encountered: