tripleo-ansible/tripleo_ansible/roles
Michele Baldessari 637db1c401 Add podman's events_logger option by default set to journald
By default podman 3.0.x sets the [engine]/events_logger to "file".
This causes every exec in podman to create a line of text in
/run/libpod/events/events.log like the following:

  {"ID":"412b6770c0b418e6d49a4801e71a198ddb81bbbefdaf1c9aad4d7948f77910ee","Image":"quay.io/centos/centos:latest","Name":"leak-test-7","Status":"exec","Time":"2021-06-03T08:36:05.237964012Z","Type":"container","Attributes":{"org.label-schema.build-date":"20201204","org.label-schema.license":"GPLv2","org.label-schema.name":"CentOS Base Image","org.label-schema.schema-version":"1.0","org.label-schema.vendor":"CentOS"}}

Since by default /run is mounted on tmpfs, this has the side-effect of
increasing kernel slab objects over time indefinitely eventually causing
an OOM of the box.

We initially wanted to switch to the 'none' backend, but the podman
folks recommended using the journald backend because events logs are
used by podman in case of a rare race when running "podman run --rm".
Given that we call run with --rm from in a multithreaded fashion this
seems to be the safest approach. The drawback of using journald is
that events won't be logged for rootless containers unless the user
is part of the 'wheel' group. We believe we're not using those
containers in tripleo anyways, so this should be safe.

Tested by applying a backport of this patch to Train + podman 3.0.x and
got the following:
[root@controller-0 containers]# ls -la /run/libpod/events/
total 0
drwx------. 2 root root  40 Jun  3 11:55 .
drwxr-x--x. 5 root root 140 Jun  3 11:55 ..

[root@controller-0 containers]# more /etc/containers/containers.conf
[containers]
pids_limit = 4096
[engine]
events_logger = "journald"

Also tested the override via the corresponding THT change in
Ieffe2852111c3ec8347343a042dd78bbf691d79a.

Closes-Bug: #1923607

Change-Id: I780103e17f1bb42a0546c30bd6c001c642ad88b3
(cherry picked from commit f31bab878b)
(cherry picked from commit 79be78bba3)
2021-06-07 12:52:31 +00:00
..
aide Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
backup_and_restore Make execution of the backup idempotent 2021-05-31 14:18:19 +00:00
login_defs Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
octavia_common Add support for Octavia amphora log offloading 2020-06-03 19:09:09 +00:00
octavia_controller_check Increase validity period of Octavia CA and certificates 2020-06-11 08:12:37 +02:00
octavia_controller_config Scan existing controllers on update to pick up existing certs/private keys 2020-05-26 15:21:09 +02:00
octavia_controller_post_config Add support for Octavia amphora log offloading 2020-06-03 19:09:09 +00:00
octavia_overcloud_config Make server group quota unlimited for Octavia 2021-02-05 12:11:07 +00:00
octavia_undercloud Do not convert amphora images to raw if they are already raw 2021-05-20 14:26:56 -02:30
test_deps Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
test_package_action Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_bootstrap Fix bootstrap ansible_fact 2021-03-05 16:29:06 +00:00
tripleo_cellv2 Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ceph_common Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ceph_run_ansible Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ceph_uuid Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ceph_work_dir Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_clients_install Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_config Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_container_image_build Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_container_image_prepare Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_container_manage Correct values for podman container 2021-05-28 08:12:20 +00:00
tripleo_container_rm Replace podman commands by module 2020-05-11 13:05:38 +00:00
tripleo_container_stop Replace podman commands by module 2020-05-11 13:05:38 +00:00
tripleo_container_tag Convert docker molecule usage to podman 2020-04-30 09:55:18 -05:00
tripleo_create_admin Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_derived_parameters Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_firewall Use ansible_facts instead 2021-02-24 09:14:57 -07:00
tripleo_ha_wrapper Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_hieradata Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_hosts_entries Merge "Write hosts entries per environment" into stable/victoria 2021-05-03 21:35:38 +00:00
tripleo_image_serve Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_kernel Use ansible_facts instead 2021-02-24 09:14:57 -07:00
tripleo_keystone_resources Use openstack ansible collection instead of os_ modules 2021-05-02 09:10:21 +00:00
tripleo_lvmfilter Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_module_load Switch from handlers to tasks 2020-07-24 13:07:25 -06:00
tripleo_multipathd Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_network_config Fix tripleo_network config conditional 2021-05-19 09:49:04 +02:00
tripleo_nodes_validation Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_nova_image_cache Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_nvdimm Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ovs_dpdk Fix ovs_dpdk molecule job to work with stream node 2021-05-03 01:15:49 +00:00
tripleo_packages Fix molecule jobs to work with stream nodes 2021-05-02 09:12:12 +00:00
tripleo_persist Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_podman Add podman's events_logger option by default set to journald 2021-06-07 12:52:31 +00:00
tripleo_provision_mcelog Use ansible_facts instead 2021-02-24 09:14:57 -07:00
tripleo_ptp Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_puppet_cache Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_redhat_enforce Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_securetty Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ssh_known_hosts Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_sshd Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_systemd_wrapper Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_timemaster Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_timezone Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_transfer Use --ignore-times when transferring files via rsync 2021-04-15 13:30:14 +00:00
tripleo_upgrade_hiera Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_validations_package Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tuned Use ansible_facts instead 2021-02-24 09:14:57 -07:00