When running the services with KillMode=process, there is a race
condition between ExecStop and the command specified in ExecStart.
The ExecStop seems faster and the container is killed then cleaned up.
However podman started by ExecStart is still running and systemd kills
it as soon as the ExecStop finished.
Since we rely on Podman to manage the containers & processes, let's
switch to KillMode=none.
Credits to Giuseppe Scrivano for explaining the root cause.
Reviewed: https:/ /review. openstack. org/645550 /git.openstack. org/cgit/ openstack/ paunch/ commit/ ?id=110a9496b2c 87a4d41d863aa91 8c2c4535b32e22
Committed: https:/
Submitter: Zuul
Branch: master
commit 110a9496b2c87a4 d41d863aa918c2c 4535b32e22
Author: Emilien Macchi <email address hidden>
Date: Fri Mar 22 08:14:48 2019 -0400
systemd: switch KillMode to 'none'
When running the services with KillMode=process, there is a race
condition between ExecStop and the command specified in ExecStart.
The ExecStop seems faster and the container is killed then cleaned up.
However podman started by ExecStart is still running and systemd kills
it as soon as the ExecStop finished.
Since we rely on Podman to manage the containers & processes, let's
switch to KillMode=none.
Credits to Giuseppe Scrivano for explaining the root cause.
Change-Id: Icbf2b81477902e 3d7ff9e064bf240 8c2fc7e510e
Closes-Bug: #1821241