Description of problem: In RHOSP 16.1 memcached doesn't write anything to log files, /var/log/containers/memcached/ folder is empty. memcached doesn't create any log files when I try to turn on debug for memcached by replacing "-v" with -vv" in /var/lib/config-data/puppet-generated/memcached/etc/sysconfig/memcached [1] and restart memcached container. At the same time after this change memcached starts flooding container logs with debug outputs and I can see them using "podman logs memcached". When I tried to adjust memcached options to redirect all output to log file [2] I still get the same outcome: log files are not created, container logs are flooded with debug outputs. However I got different outcome when I tried to manually run memcached command with proper arguments and redirect its output to proper log file on the OS itself: logs are redirected properly. I tried to understand the difference using ps outputs and it looks like this issue occurs because memcached is not initiated properly inside container: - memcached called from CLI (part of the command that contains redirect is not displayed in ps output): ()[memcached@controller-0 /]$ /usr/bin/memcached -p 11211 -u memcached -vv -l 127.0.0.1 2> /var/log/memcached/memcached.log # ps aux | grep memcache | grep 127 42457 377657 0.0 0.0 446284 4500 pts/0 Sl+ 15:34 0:00 /usr/bin/memcached -p 11211 -u memcached -vv -l 127.0.0.1 - ps output for memcached inside podman container (full command is displayed, redirect is included): [root@controller-0 ~]# ps aux | grep memcache | grep -v containers 42457 358189 0.0 0.0 744088 10960 ? Sl 15:21 0:00 /usr/bin/memcached -p 11211 -u memcached -m 16000 -c 8192 -vv -l 172.17.1.138 -U 0 -X -t 8 >> /var/log/memcached/memcached.log 2>&1 [root@controller-0 ~]# podman exec -it memcached ps aux | grep memcache memcach+ 7 0.0 0.0 744088 10960 ? Sl 15:21 0:00 /usr/bin/memcached -p 11211 -u memcached -m 16000 -c 8192 -vv -l 172.17.1.138 -U 0 -X -t 8 >> /var/log/ [1] #OPTIONS="-v -l 172.17.1.138 -U 0 -X -t 8 >> /var/log/memcached/memcached.log 2>&1" OPTIONS="-vv -l 172.17.1.138 -U 0 -X -t 8 >> /var/log/memcached/memcached.log 2>&1" [2] OPTIONS="-vv -l 172.17.1.138 -U 0 -X -t 8 &>> /var/log/memcached/memcached.log"
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2021:3483