paunch/paunch
Cédric Jeanneret cca61e6999 Instruct systemd to accept 137 and 143 exit code
It might happen a container takes time to stop its running process - it
therefore will call "SIGTERM" or "SIGKILL", and conmon will return the
actual process exit code.
Since the exit code won't be 0, it will be marked as "failed" in systemd
status.

Note that 137 is, actually, SIGKILL (137-128 = 9) and 143 is SIGTERM
(143-128 = 15).
While systemd accepts actual SIGTERM by default, it doesn't recognize that
143 exit status. We therefore have to namely point to this status code.
Also, by default, SIGKILL isn't accepted as a valid, successful exit status.

This change will needs to be backported down to stable/train - and
another one will be created against triple-ansible.

Change-Id: Iffcfc8bd18a999ae6921a4131d40241df40050f1
(cherry picked from commit c19a95d2eb)
2020-10-07 05:01:31 +00:00
..
builder Trigger container update on image id update 2020-09-18 12:39:04 -06:00
tests Trigger container update on image id update 2020-09-18 12:39:04 -06:00
utils Instruct systemd to accept 137 and 143 exit code 2020-10-07 05:01:31 +00:00
__init__.py Process labels before building container run args 2020-04-09 12:28:23 +00:00
__main__.py Allow paunch to be called as a python module 2018-11-16 03:01:51 +00:00
cmd.py Allow to not cleanup containers that aren't in config 2020-02-18 02:15:04 +00:00
constants.py systemd: do not hardcode /etc/systemd/system in method 2018-12-10 18:26:33 -05:00
runner.py Log benign command errors as warns 2020-08-18 15:12:43 +02:00