Podman 3.0 API behavior change in containers/<id>/wait breaks nomad-driver-podman #9403
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.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
There was a change in REST API behavior from v2.2 to v3.0 using /containers/<id>/wait?condition=running
Previously, in v2.1/2, you could make a post to this API and a running container would return immediately. In v3.0 that behavior has changed to wait indefinitely, which breaks the podman Nomad driver as the driver times out waiting for a successful response to the container entering a running state. This was observed on a CentOS Stream host using the latest updates to podman.
Steps to reproduce the issue:
Using a redis container as an example:
podman run -d --rm redis
curl --unix-socket /run/podman/podman.sock -v 'http://d/v1.0.0/libpod/containers/json' | jq
curl --unix-socket /run/podman/podman.sock -v -X POST 'http://d/v1.0.0/libpod/containers/<id>/wait?condition=running'
Describe the results you received:
From the first API request, I received the Id, which I was then able to replace into the second POST command. Once that has been done, the API request hangs indefinitely. Id, in this case, has been replaced by <id>:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Bare-metal host using CentOS Stream release 8
The text was updated successfully, but these errors were encountered: