puppet-tripleo/manifests/profile/pacemaker/database
Michele Baldessari 7e4aca45fa Log stdout of HA containers
When podman dropped the journald log-driver we rushed to move to the supported
k8s-file driver. This had the side effect of us losing the stdout logs of the
HA containers.

In fact previously we were easily able to troubleshoot haproxy startup failures
just by looking in the journal. These days instead if haproxy fails to start we
have no traces whatsoever in the logs, because when a container fails it gets
stopped by pacemaker (and consequently removed) and no logs on the system are
available any longer.

Tested as follows:
1) Redeploy a previously deployed overcloud that did not have the patch
and observe that we now log the startup of HA bundles in /var/log/containers/stdouts/*bundle.log

[root@controller-0 stdouts]# ls -l *bundle.log |grep -v -e init -e restart
-rw-------. 1 root root   16032 Apr 14 14:13 openstack-cinder-volume.log
-rw-------. 1 root root   19515 Apr 14 14:00 haproxy-bundle.log
-rw-------. 1 root root   10509 Apr 14 14:03 ovn-dbs-bundle.log
-rw-------. 1 root root    6451 Apr 14 14:00 redis-bundle.log

2) Deploy a composable HA overcloud from scratch with the patch above
and observe that we obtain the stdout on disk.

Note that most HA containers log to their usual on-host files just
fine, we are mainly missing haproxy logs and/or the kolla startup only
of the HA containers.

Closes-Bug: #1872734

NB: Cherry-picks had some context change in
    manifests/profile/pacemaker/cinder/volume_bundle.pp
    manifests/profile/pacemaker/rabbitmq_bundle.pp
    manifests/profile/pacemaker/manila/share_bundle.pp

Change-Id: I4270b398366e90206adffe32f812632b50df615b
(cherry picked from commit 06c4aa7446)
2020-04-17 10:08:34 +02:00
..
mysql.pp Replace mysql invalid open_files_limit of -1 with 65536 2019-01-10 16:46:31 +00:00
mysql_bundle.pp Log stdout of HA containers 2020-04-17 10:08:34 +02:00
redis.pp Remove the duplicated word 2018-09-15 14:37:32 +00:00
redis_bundle.pp Log stdout of HA containers 2020-04-17 10:08:34 +02:00