Switch HA containers to k8s-file log-driver and make it a parameter
Currently in puppet-tripleo for the HA container we hardcode the following:
options => "--user=root --log-driver=journald -e KOLLA_CONFIG_STRATEGY=COPY_ALWAYS${tls_priorities_real}",
Since at least podman had some changes in terms of supported driver
backends (and bugs) it's best if we make this configurable. While we're
at it we should also switch to k8s-file as a driver when podman is being
used which is what all other containers are using. When docker is the
default container_cli we will stick to journald as usual.
Tested this on a Train environment and successfully verified that
we still see the correct logs in /var/log/containers/.../...
Reviewed: https:/ /review. opendev. org/695578 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=bad716070a7 0b258c110d4ef1f eca422b14a9a98
Committed: https:/
Submitter: Zuul
Branch: master
commit bad716070a70b25 8c110d4ef1feca4 22b14a9a98
Author: Michele Baldessari <email address hidden>
Date: Thu Nov 21 22:02:13 2019 +0100
Switch HA containers to k8s-file log-driver and make it a parameter
Currently in puppet-tripleo for the HA container we hardcode the following: journald -e KOLLA_CONFIG_ STRATEGY= COPY_ALWAYS$ {tls_priorities _real}" ,
options => "--user=root --log-driver=
Since at least podman had some changes in terms of supported driver
backends (and bugs) it's best if we make this configurable. While we're
at it we should also switch to k8s-file as a driver when podman is being
used which is what all other containers are using. When docker is the
default container_cli we will stick to journald as usual.
Tested this on a Train environment and successfully verified that containers/ .../...
we still see the correct logs in /var/log/
Change-Id: I5b1483826f816d 11a064a937d59f9 a8f468315a5
Closes-Bug: #1853517