Description of problem: Seems to me that keepalived is meant to log on file to /var/log/containers/keepalived Because we: A) do bind mount /var/log/ from the container to /var/log/containers/keepalived [root@undercloud-0 ~]# podman inspect keepalived |grep var/log|grep -e destination -e source\" "destination": "/var/log/", "source": "/var/log/containers/keepalived/", B) We do run | tee inside the container [root@undercloud-0 ~]# podman exec -it keepalived sh -c 'ps -ax' PID TTY STAT TIME COMMAND 1 ? Ss 0:00 dumb-init --single-child -- /usr/local/bin/kolla_start 8 ? S 0:00 /usr/sbin/keepalived -nldD | tee -a /var/log/keepalived.log 12 ? S 2:18 /usr/sbin/keepalived -nldD | tee -a /var/log/keepalived.log But the file on the host is always empty and nothing is logged there: [root@undercloud-0 ~]# ls -la /var/log/containers/keepalived/ total 0 drwxr-xr-x. 2 root root 6 Aug 4 09:43 . drwxr-xr-x. 19 root root 259 Aug 4 09:46 .. We do instead see output being logged on the stdout: [root@undercloud-0 ~]# ls -la /var/log/containers/stdouts/keepalived.log* -rw-------. 1 root root 48606 Aug 8 16:02 /var/log/containers/stdouts/keepalived.log -rw-------. 1 root root 72708 Aug 8 00:00 /var/log/containers/stdouts/keepalived.log.1 -rw-------. 1 root root 6362 Aug 7 00:00 /var/log/containers/stdouts/keepalived.log.2.gz -rw-------. 1 root root 6373 Aug 6 00:00 /var/log/containers/stdouts/keepalived.log.3.gz -rw-------. 1 root root 7468 Aug 5 00:00 /var/log/containers/stdouts/keepalived.log.4.gz So I guess we either just leave it on stdout and remove the tee or we make both stdout and the log file work.
*** Bug 1795559 has been marked as a duplicate of this bug. ***
704917