tripleo-ansible/tripleo_ansible
Bogdan Dobrelya 8417892f0c Wrap stopping podman -t with systemd timeouts (squash)
1) Currently with KillMode=none, if podman -t hangs, the command repeats
leaving the process and its cgroup around.
But if a stop/start command hangs, we should not start another one.

Instead time it out properly via TimeoutStopSec set to the 2x of
the timeout given to the managed podman action. Then if it expires,
kill its cgroup all the way (KillMode=control-group is a default)
before rerunning the same operation. Also note that using KilMode
process is not recommended by systemd man pages.

Increase the grace stop timeout defaults 10->42s to align it with:
https://github.com/containers/podman/pull/8889

2) Make KillMode configurable for service units

Libvirt container is a special beast that needs custom
killmode value for its tripleo-manager service unit.
Add kill_mode for the container values that defaults to
control-group.

3) Fix TimeoutStopSec to integer convertion

Related: rhbz#2010135
Closes-bug: #1945791
Change-Id: Iefe861f91cefe2a9cf773cae98b2440566ae8b5e
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
(cherry picked from commit badd5a3c10)
2022-05-05 15:08:04 +02:00
..
ansible_plugins Remove old per step startup configs 2022-03-15 08:58:08 +00:00
playbooks Reference to vars_files is missing from playbook 2022-04-12 11:31:26 +02:00
roles Wrap stopping podman -t with systemd timeouts (squash) 2022-05-05 15:08:04 +02:00
roles.galaxy Add galaxy role path which will be ignored by git 2019-07-18 13:40:14 -05:00
tests Train-only make tripleo_diff_exec py2-compatible 2021-03-03 09:13:23 +05:30
ansible-role-requirements.yml Introduce tripleo-config role 2019-07-30 13:02:25 -05:00