-
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
Podman socket won't show health status as a event #13493
Comments
I also opened an issue on the traefik github, but the issue looks like the podman api is different compared to docker for events. |
When running "podman healthcheck run $containername", the health status is updated. |
For me when i run podman healthcheck run $containername is still don't get the health status while listening to events in the socket. |
Can you check if the events are showed in the |
The events are basically the same for the socket and Podman events output:
Socket output:
|
Roger, thanks. Definitely looks like messages are not being generated. We probably want to suppress the exec messages as well, as this is a healthcheck, not an exec (they use the same backend code, so I imagine that the exec events are firing instead?). |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
The issue is indeed present, and |
@jakecorrenti This could be a good issue to look at |
Your preference, though personally I'd recommend #14493 first |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The podman/docker socket won't update the health status of running containers.
That is important for services like traefik that check the container health.
Steps to reproduce the issue:
Start the podman socket
listen to the events on the socket.
curl --unix-socket /var/run/docker.sock http://localhost/events
Start a container that has a health check configured
Describe the results you received:
No update is visible when the container changes its state from starting to healthy
Describe the results you expected:
Getting an update when the container is healthy like you would get with docker.
{"status":"health_status: healthy","id":"59c5c31a8b6dfd30204b7fafafd2a413e65f53f4fd8a43bd17d5310667c19e00","from":"docker.io/gitlab/gitlab-ce:latest","Type":"container","Action":"health_status: healthy"
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? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: