-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Closed
Copy link
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.
Description
Issue Description
Since 68fbebf, podman kube play
uses --log-driver=passthrough
by default if --service-container=true
(regardless of the specified log_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 podman-kube@.service
is used to start these pods.
Steps to reproduce the issue
Steps to reproduce the issue
- Start pod using
podman kube play
- Try to read logs using
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
host:
arch: amd64
buildahVersion: 1.29.0
cgroupControllers:
- cpu
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: /usr/bin/conmon is owned by conmon 1:2.1.6-1
path: /usr/bin/conmon
version: 'conmon version 2.1.6, commit: 158b5421dbac6bda96b1457955cf2e3c34af29bc'
cpuUtilization:
idlePercent: 99.34
systemPercent: 0.32
userPercent: 0.34
cpus: 16
distribution:
distribution: arch
version: unknown
eventLogger: journald
hostname: stage-vm
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 165536
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 165536
size: 65536
kernel: 6.1.11-arch1-1
linkmode: dynamic
logDriver: journald
memFree: 13604532224
memTotal: 16771158016
networkBackend: cni
ociRuntime:
name: crun
package: /usr/bin/crun is owned by crun 1.8-1
path: /usr/bin/crun
version: |-
crun version 1.8
commit: 0356bf4aff9a133d655dc13b1d9ac9424706cac4
rundir: /run/user/1000/crun
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
os: linux
remoteSocket:
path: /run/user/1000/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: true
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.2.0-1
version: |-
slirp4netns version 1.2.0
commit: 656041d45cfca7a4176f6b7eed9e4fe6c11e8383
libslirp: 4.7.0
SLIRP_CONFIG_VERSION_MAX: 4
libseccomp: 2.5.4
swapFree: 0
swapTotal: 0
uptime: 0h 17m 47.00s
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries: {}
store:
configFile: /home/eike/.config/containers/storage.conf
containerStore:
number: 25
paused: 0
running: 25
stopped: 0
graphDriverName: overlay
graphOptions: {}
graphRoot: /home/eike/.local/share/containers/storage
graphRootAllocated: 134680154112
graphRootUsed: 78253633536
graphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 44
runRoot: /run/user/1000/containers
transientStore: false
volumePath: /home/eike/.local/share/containers/storage/volumes
version:
APIVersion: 4.4.1
Built: 1676117906
BuiltTime: Sat Feb 11 13:18:26 2023
GitCommit: 34e8f3933242f2e566bbbbf343cf69b7d506c1cf-dirty
GoVersion: go1.20
Os: linux
OsArch: linux/amd64
Version: 4.4.1
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.