-
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
Healthcheck is ignored in compose files when adding labels to volumes #10457
Comments
I think the SELinux labels is a red herring. Could you not add the :z and just run in permissive mode? I think one of the issues would be if you are building the image on the fly, are we building in Docker format or OCI. OCI Images to not support healthchecks. |
I don't even have to change the selinux config to permissive: when I remove the
The images get build by docker-compose on the fly. I assume that podman then uses the default (iirc OCI). |
Sounds more like something in the compat REST api to me. I skimmed the docker-compose code quickly and the error is raised if 'State.Health.Status' is |
Yes, I can reproduce.
The compat endpoint does not include the health check data. @cdoern, do you have cycles to tackle it? Cc @jwhonce |
@vrothberg i'll fix the compat endpoint this morning, I'll take a look now! |
Awesome, thank you, @cdoern. |
Added parsing and handling for the healthCheck status within containers.go. Also modified tests fixes containers#10457 Signed-off-by: cdoern <[email protected]>
Added parsing and handling for the healthCheck status within containers.go. Also modified tests fixes containers#10457 Signed-off-by: cdoern <[email protected]> <MH: Fixed cherry-pick conflicts> Signed-off-by: Matthew Heon <[email protected]>
/kind bug
Description
It appears that podman is ignoring the
healtcheck
configuration in a compose file if you add a:Z
or a:z
label to a volume.Steps to reproduce the issue:
git clone https://github.com/os-autoinst/openQA.git && cd container/webui && sed -i 's|./workdir/db:/var/lib/postgresql/data|./workdir/db:/var/lib/postgresql/data:z|' docker-compose.yaml
docker-compose up
Describe the results you received:
Note that not adding the
:Z
label is not a solution, because it only makes the docker compose fail later (and thedb
container is actually not working at that point as it can't write./workdir/db/
):Describe the results you expected:
The compose should succeed.
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/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
I have followed this guide to setup podman with compose: https://www.redhat.com/sysadmin/podman-docker-compose
The text was updated successfully, but these errors were encountered: