RETIRED, TripleO Ansible project repository. Contains playbooks for use with TripleO OpenStack deployments.
Go to file
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
.ansible-lint_rules Add custom ansible-lint rule for Role Names 2020-02-27 10:53:11 +00:00
_skeleton_role_ Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
doc Merge "Add tripleo_multipathd role" 2020-10-23 16:49:12 +00:00
releasenotes Fix check for existing nvdimm namespaces 2020-12-17 10:54:37 +00:00
scripts Add constraint for local testing 2020-10-08 14:37:23 -05:00
tests Merge "Convert tox to native zuul" 2019-07-08 14:18:00 +00:00
tripleo_ansible Add podman's events_logger option by default set to journald 2021-06-07 12:52:31 +00:00
zuul.d Merge "Fix ovs_dpdk molecule job to work with stream node" into stable/victoria 2021-05-03 11:36:50 +00:00
.ansible-lint Add custom ansible-lint rule for Role Names 2020-02-27 10:53:11 +00:00
.gitignore Adding playbook support for changes coming to python-tripleoclient. 2020-06-05 17:19:41 -04:00
.gitreview Update .gitreview for stable/victoria 2020-10-30 15:50:53 +00:00
.pre-commit-config.yaml Pin ansible to 2.9 in ansible-lint deps 2020-09-25 18:04:28 +03:00
.stestr.conf Introduce unit tests structure for tripleo-ansible filters 2019-12-02 22:26:16 +00:00
.yamllint Re-organize zuul config 2019-06-19 12:52:07 -05:00
LICENSE normalize newlines at end of file 2019-11-12 15:06:58 +00:00
README.rst Fix launchpad tracker in README.rst 2019-09-29 10:08:38 +02:00
ansible-requirements.txt Fix ci issues 2020-12-15 11:24:05 -07:00
ansible-test-env.rc Molecule testing for TripleO Strategy Plugins 2020-06-03 20:07:10 +00:00
bindep.txt Drop tasks meant to run run_os_net_config.sh 2020-09-26 10:23:43 +05:30
molecule-requirements.txt Fix ci issues 2020-12-15 11:24:05 -07:00
requirements.txt Fix ci issues 2020-12-15 11:24:05 -07:00
role-addition.yml role-addition: automatically add the new molecule jobs into periodic 2020-05-07 13:17:28 -04:00
roles Revert "Remove roles symlink" 2019-10-28 21:43:35 +00:00
setup.cfg Cleanup after rename-pocolyps 2020-04-02 07:56:20 -05:00
setup.py Initial repo content 2018-07-17 16:36:40 -07:00
test-requirements.txt Add mock to test-requirements 2020-07-07 15:42:21 +03:00
tox.ini Fix ci issues 2020-12-15 11:24:05 -07:00

README.rst

Team and repository tags

image

TripleO Ansible

TripleO Ansible project repository. Contains Ansible playbooks, roles, and plugins for use with TripleO.

Documentation for the project can be found at: https://docs.openstack.org/tripleo-ansible/latest/

Release notes for the project can be found at: https://docs.openstack.org/releasenotes/tripleo-ansible/

The project source code repository is located at: https://opendev.org/openstack/tripleo-ansible/

The project home is at: https://launchpad.net/tripleo

The project bug tracker is located at: https://bugs.launchpad.net/tripleo