[APIv2] killing a container hangs after "Switch podman stop/kill/wait handlers to use abi" #9206
Labels
In Progress
This issue is actively being worked by the assignee, please do not work on this at this time.
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.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Trying to find regressions by exercising the APIv2 trough docker-py's test suite (see #5386) I came across a regressions in the
RestartContainerTest::test_restart_with_low_timeout
test.Killing a container hangs with no result returned and the CPU spinning like crazy.
It specifically broke with commit 81a3ba3 .
Steps to reproduce the issue:
curl -sS --unix-socket /var/run/user/1000/podman/podman.sock -XPOST 'http://localhost/v1.40/containers/create' -H 'Content-Type: application/json' -d '{"Tty": false, "OpenStdin": false, "StdinOnce": false, "AttachStdin": false, "AttachStdout": true, "AttachStderr": true, "Cmd": ["sleep", "9999"], "Image": "alpine", "NetworkDisabled": false}'
curl -sS --unix-socket /var/run/user/1000/podman/podman.sock -XPOST 'http://localhost/v1.40/containers/398e20bb6c01742c1aebe09cd196efbfa6d82873561968fbf96dd4ca0b16198f/start'
curl -sS --unix-socket /var/run/user/1000/podman/podman.sock -XPOST 'http://localhost/v1.40/containers/398e20bb6c01742c1aebe09cd196efbfa6d82873561968fbf96dd4ca0b16198f/kill'
Describe the results you received:
The kill call hangs with no response while the CPU starts spinning like crazy.
Describe the results you expected:
Kill the container and return result immediately.
Additional information you deem important (e.g. issue happens only occasionally):
Running
podman ps -a
in another terminal while the kill call spins CPU shows that the container has stopped:Output of
podman version
:Output of
podman info --debug
:The text was updated successfully, but these errors were encountered: