tripleo-ansible/tripleo_ansible/roles/tripleo_podman
Michele Baldessari d46e7d92c9 Support default pid limits in containers.conf
Starting With podman 2.X the default pids-limits has been halved from
4096 to 2048:
$ rpm -q podman && podman run --rm -it --net=host --name 'pids' edecd409281d sh -c 'cat /sys/fs/cgroup/pids/pids.max'
podman-2.2.1-3.module+el8.3.1+9392+c5f6d096.x86_64
2048

With podman-1.6.4 the global default pid-limits was hardcoded to 4096
and we had no way to tweak it.

With podman 2.X it is possible to override this in
/etc/containers/containers.conf with the pids_limit setting inside
[containers] in the /etc/containers/containers.conf ini-file:
$ cat /etc/containers/containers.conf
[containers]
pids_limit=6666

$ podman run --rm -it --net=host --name 'pids' edecd409281d sh -c 'cat /sys/fs/cgroup/pids/pids.max'
6666

By adding this we keep the older 4096 default so we do not regress and
at the same time we allow an operator to override this globally.

Related-Bug: #1915122

Change-Id: Id5d5fb9d20c0295763c78171190b9eda13508617
(cherry picked from commit 6b827c199b)
2021-02-11 05:48:56 +00:00
..
defaults Support default pid limits in containers.conf 2021-02-11 05:48:56 +00:00
meta Add Centos 8 to galaxy_info versions 2020-03-19 14:22:08 +01:00
molecule Switch off of docker.io for testing 2021-01-13 18:51:34 +00:00
tasks Support default pid limits in containers.conf 2021-02-11 05:48:56 +00:00
templates Add support for v2 registries.conf 2020-04-16 13:15:03 +00:00
vars Fix podman and buildah only on rhel-8.2 2020-09-02 15:39:33 +02:00