-
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 version 1.4.1 errors when starting containers - "run failed after [conmon:e]: No such log driver json-file" #3363
Comments
Seems like it could be a Conmon version mismatch - @haircommander can you confirm? |
@haircommander Assuming it is... maybe we need something similar to what c/storage does for overlayfs - code to probe Conmon to determine what features it supports |
Actually somehow log driver is being set as json-file, which used to be a noop but now is an error (we used to pretend we supported json file). @rlandy can you post your libpod.conf? And what image are you trying to run? |
@rlandy you should be able to do your create/run command above with |
Hello, |
I think this one's my fault. I didn't realize we already had a It seems unlikely that we're going to see proper JSON logging implemented any time soon, so we could discuss aliasing |
@mheon thanks for your explanation. I don't think aliasing now the "non-json" «json-file» to k8s-file is the right thing to do - we're already changing things in our project (TripleO) - it should be good soon. Hopefully ;). |
Even if using "json-file" for a non-json log is uggly, i'd say that keeping some sort of backwards compatibility wins unless there have been proper deprecation period, notification, etc... I'm not sure if it's the case here, but IMHO backwards compatibility wins. |
Added a fix in #3375 . Now, we will make |
from docs:
https://github.com/containers/libpod/blob/master/docs/podman-run.1.md |
aah nope that is no longer correct. Thanks @sshnaidm for pointing that out |
Added a doc fix in #3375 as well |
As suggested in containers/podman#3363 Change-Id: I00d037100adbe1c052b64f244d852d46625aa9aa Depends-On: https://review.opendev.org/666220
* Update paunch from branch 'master' - Use k8s-file log driver with podman As suggested in containers/podman#3363 Change-Id: I00d037100adbe1c052b64f244d852d46625aa9aa Depends-On: https://review.opendev.org/666220
While this new name makes more sense than the "json-file" which wasn't a json, it breaks podman invocations[0] in TripleO. Also, moved the configuration snipped to the podman dedicated block, since docker doesn't have that driver[1]. [0] containers/podman#3363 [1] https://docs.docker.com/config/containers/logging/configure/ Depends-On: https://review.opendev.org/666223 Change-Id: I3891da45e665727ab6d767514f9d24cb06da6b50
* Update tripleo-heat-templates from branch 'master' - Merge "Podman 1.4.1 drops json-file in favor of k8s-file" - Podman 1.4.1 drops json-file in favor of k8s-file While this new name makes more sense than the "json-file" which wasn't a json, it breaks podman invocations[0] in TripleO. Also, moved the configuration snipped to the podman dedicated block, since docker doesn't have that driver[1]. [0] containers/podman#3363 [1] https://docs.docker.com/config/containers/logging/configure/ Depends-On: https://review.opendev.org/666223 Change-Id: I3891da45e665727ab6d767514f9d24cb06da6b50
As suggested in containers/podman#3363 Change-Id: I00d037100adbe1c052b64f244d852d46625aa9aa Depends-On: https://review.opendev.org/666220 (cherry picked from commit d1eef29)
While this new name makes more sense than the "json-file" which wasn't a json, it breaks podman invocations[0] in TripleO. Also, moved the configuration snipped to the podman dedicated block, since docker doesn't have that driver[1]. [0] containers/podman#3363 [1] https://docs.docker.com/config/containers/logging/configure/ Depends-On: https://review.opendev.org/688705 Change-Id: I3891da45e665727ab6d767514f9d24cb06da6b50 (cherry picked from commit 55e1eac)
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Using podman version 1.4.1 on RHEL 8 (updated) we see the following error when starting containers:
ERROR: 27947 -- ['/usr/bin/podman', 'start', '-a', 'container-puppet-glance_api'] run failed after [conmon:e]: No such log driver json-file",
"Error: unable to start container : write child: broken pipe",
...
ERROR: 27949 -- ['/usr/bin/podman', 'start', '-a', 'container-puppet-iscsid'] run failed after [conmon:e]: No such log driver json-file"
Repeated for all containers.
Steps to reproduce the issue:
Install podman version 1.4.1 on RHEL 8 with updated rpms
Run containers
See driver error
Describe the results you received:
The following errors on every attempt to run/start containers:
WARNING: 27947 -- Retrying running container: glance_api",
ERROR: 27946 -- ['/usr/bin/podman', 'start', '-a', 'container-puppet-crond'] run failed after [conmon:e]: No such log driver json-file",
"Error: unable to start container : write child: broken pipe",
2019-06-18 14:59:02 | " attempt(s): 2",
Describe the results you expected:
No errors when starting containers.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:The text was updated successfully, but these errors were encountered: