-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Using podman play kube without --log-driver results in the containers not using the default log driver but falling back to a file instead.
Steps to reproduce the issue:
$ podman info | grep logDriver
logDriver: journald
-
podman create --name test alpine:latest -
podman generate kube test > test.yml -
podman play kube test.yml -
podman inspect test_pod-test | grep LogConfig -A 5
Describe the results you received:
Falling back to k8s-file, I think? The type is empty:
$ podman inspect test_pod-test | grep LogConfig -A 5
"LogConfig": {
"Type": "",
"Config": null,
"Path": "/var/lib/containers/storage/overlay-containers/a404f2311ed49078f6fb9807e52e54fd2ead173cbc73edfe4fcc7f13bc2e8868/userdata/ctr.log",
"Tag": "",
"Size": "0B"
Describe the results you expected:
Using journald as log driver:
$ podman inspect test_pod-test | grep LogConfig -A 5
"LogConfig": {
"Type": "journald",
"Config": null,
"Path": "",
"Tag": "",
"Size": "0B"
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Client: Podman Engine
Version: 4.0.3
API Version: 4.0.3
Go Version: go1.18
Git Commit: 62534053086fdeba7b93117e7c4dc6e797835a3e
Built: Mon Apr 4 14:54:02 2022
OS/Arch: linux/amd64
Output of podman info --debug:
host:
arch: amd64
buildahVersion: 1.24.3
cgroupControllers:
- cpuset
- cpu
- io
- memory
- hugetlb
- pids
- rdma
- misc
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: /usr/bin/conmon is owned by conmon 1:2.1.0-1
path: /usr/bin/conmon
version: 'conmon version 2.1.0, commit: bdb4f6e56cd193d40b75ffc9725d4b74a18cb33c'
cpus: 8
distribution:
distribution: arch
version: unknown
eventLogger: journald
hostname: test
idMappings:
gidmap: null
uidmap: null
kernel: 5.16.16-arch1-1
linkmode: dynamic
logDriver: journald
memFree: 12547850240
memTotal: 16668155904
networkBackend: cni
ociRuntime:
name: crun
package: /usr/bin/crun is owned by crun 1.4.4-1
path: /usr/bin/crun
version: |-
crun version 1.4.4
commit: 6521fcc5806f20f6187eb933f9f45130c86da230
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
os: linux
remoteSocket:
path: /run/podman/podman.sock
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: false
seccompEnabled: true
seccompProfilePath: /etc/containers/seccomp.json
selinuxEnabled: false
serviceIsRemote: false
slirp4netns:
executable: /usr/bin/slirp4netns
package: /usr/bin/slirp4netns is owned by slirp4netns 1.1.12-1
version: |-
slirp4netns version 1.1.12
commit: 7a104a101aa3278a2152351a082a6df71f57c9a3
libslirp: 4.6.1
SLIRP_CONFIG_VERSION_MAX: 3
libseccomp: 2.5.3
swapFree: 17179865088
swapTotal: 17179865088
uptime: 55h 8m 2.34s (Approximately 2.29 days)
plugins:
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries: {}
store:
configFile: /etc/containers/storage.conf
containerStore:
number: 2
paused: 0
running: 1
stopped: 1
graphDriverName: overlay
graphOptions:
overlay.mountopt: nodev
graphRoot: /var/lib/containers/storage
graphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "true"
imageCopyTmpDir: /var/tmp
imageStore:
number: 2
runRoot: /run/containers/storage
volumePath: /var/lib/containers/storage/volumes
version:
APIVersion: 4.0.3
Built: 1649076842
BuiltTime: Mon Apr 4 14:54:02 2022
GitCommit: 62534053086fdeba7b93117e7c4dc6e797835a3e
GoVersion: go1.18
OsArch: linux/amd64
Version: 4.0.3
Package info (e.g. output of rpm -q podman or apt list podman):
$ pacman -Q --info podman
Name : podman
Version : 4.0.3-1
Description : Tool and library for running OCI-based containers in pods
Architecture : x86_64
URL : https://github.com/containers/podman
Licenses : Apache
Groups : None
Provides : None
Depends On : conmon containers-common crun iptables libdevmapper.so=1.02-64 libgpgme.so=11-64 libseccomp.so=2-64 slirp4netns
Optional Deps : apparmor: for AppArmor support
btrfs-progs: support btrfs backend devices [installed]
catatonit: --init flag support [installed]
netavark: for a new container-network-stack implementation
podman-compose: for docker-compose compatibility
podman-docker: for Docker-compatible CLI
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 67.98 MiB
Packager : David Runge <dvzrv@archlinux.org>
Build Date : Mon 04 Apr 2022 02:54:02 PM CEST
Install Date : Tue 05 Apr 2022 04:36:00 PM CEST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
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.):