Log type not passed to containers by 'play kube --log-driver=journald' #10015
Labels
In Progress
This issue is actively being worked by the assignee, please do not work on this at this time.
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
Containers created using 'podman play kube --log-driver=journald' don't have HostConfig.LogConfig.Type set to "journald" and the containers' logs don't go to the journal.
However, the right behavior is observed when using 'podman run --log-driver=journald'.
Steps to reproduce the issue:
podman play kube --log-driver=journald <pod definition yaml path>
podman inspect <created container id>
podman run --log-driver=journald <container image name>
podman inspect <created container id>
Describe the results you received:
Step 2 yields:
"LogConfig": {
"Type": "",
"Config": null,
"Path": "/var/lib/containers/storage/overlay-containers/bf5e9f6a6026b70a61b495b93e7f12924a091004001f40bbaa52fc2d9ccb0d7d/userdata/ctr.log",
"Tag": "",
"Size": "0B"
}
Step 4 yields:
"LogConfig": {
"Type": "journald",
"Config": null,
"Path": "",
"Tag": "",
"Size": "0B"
}
Describe the results you expected:
Expected "Type": "journald" at step 2.
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.):
OpenStack
The text was updated successfully, but these errors were encountered: