-
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 pod logs
stopped working for pods started with [email protected]
#17482
Comments
podman pod logs
stops working for pods started with podman kube play
podman pod logs
stopped working for pods started with podman kube play
podman pod logs
stopped working for pods started with podman kube play
podman pod logs
stopped working for pods started with podman kube play
/ [email protected]
podman pod logs
stopped working for pods started with podman kube play
/ [email protected]
podman pod logs
stopped working for pods started with [email protected]
@vrothberg PTAL |
That was a deliberate change for Quadlet which enforces the passthrough driver when running in systemd. @Luap99 suggested to update |
see #17348 I can work on it this week if we think this is a priority. However I don't think it can truly replace the proper podman logs. Logs work on per container basis, with passthrough it is impossible to filter by container and we would only show all pods/containers at once AFAICT which may not be suitable for some use cases. |
I think this is a priority. I think we should document the shortcoming. |
There are a number of things:
|
#17502 to make podman logs working with passthrough and systemd. |
|
I am not yet sure how to fix it. But the
Nice idea! |
I think that if you want to revert the regression, the simplest fix would be to add |
That is a nice idea! |
I agree add support for .container and .cube to set this field. |
That will still ignore containers.conf, if previously k8s-file was set it is still a regression for a user |
This is what's problematic in general, when changing defaults for certain use cases.
You decided that the general case is significantly different from the case in At least that's how it looks for me, but I might as well have missed something. |
I'll see what we can do. I don't think that a new option is needed. Quadlet will default to |
Only enforce the passthrough log driver for Quadlet. Commit 68fbebf introduced a regression on the `podman-kube@` template as `podman logs` stopped working and settings from containers.conf were ignored. Fixes: containers#17482 Signed-off-by: Valentin Rothberg <[email protected]>
I opened #17548 to fix the issue. |
Only enforce the passthrough log driver for Quadlet. Commit 68fbebf introduced a regression on the `podman-kube@` template as `podman logs` stopped working and settings from containers.conf were ignored. Fixes: containers#17482 Signed-off-by: Valentin Rothberg <[email protected]>
Only enforce the passthrough log driver for Quadlet. Commit 68fbebf introduced a regression on the `podman-kube@` template as `podman logs` stopped working and settings from containers.conf were ignored. Fixes: containers#17482 Signed-off-by: Valentin Rothberg <[email protected]>
Issue Description
Since 68fbebf,
podman kube play
uses--log-driver=passthrough
by default if--service-container=true
(regardless of the specifiedlog_driver
setting in containers.conf).Because of this,
podman pod logs
has stopped working for all pods started using this method.Of course one can specify
--log-driver=journald
, but that is not possible if the provided[email protected]
is used to start these pods.Steps to reproduce the issue
Steps to reproduce the issue
podman kube play
podman pod logs
Describe the results you received
Error: this container is using the 'passthrough' log driver, cannot read logs: this container is not logging output
Describe the results you expected
The logs of all containers in the pod, as usual.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: