paunch/paunch
Cédric Jeanneret 754c7885f4 Execute healthchecks as root
Some containers doesn't have the "default" user set to root (which is
good). This lead to healthcheck_port() function to return a message
because the non-root user isn't allowed to call "ss" command as itself.

Ensuring we're running the healthchecks as root will also allow to stop
duplicating some commands, making them faster and smaller for the
system.

This was discovered and discussed on Red Hat bugzilla first, then ported
to Launchpad.

Change-Id: I2e49d4dd5b385237f4f79929c70365424f6fa22d
Closes-Bug: 1860569
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1778881
(cherry picked from commit 3012fe75aa)
(cherry picked from commit 592dab7a84)
2020-02-12 14:49:36 +00:00
..
builder builder: include environment when running an exec 2019-12-13 15:26:39 +00:00
tests Execute healthchecks as root 2020-02-12 14:49:36 +00:00
utils Execute healthchecks as root 2020-02-12 14:49:36 +00:00
__init__.py Fix mismatching fixed vs unique container names 2019-08-16 12:28:37 -04:00
__main__.py Allow paunch to be called as a python module 2018-11-16 03:01:51 +00:00
cmd.py Fix action Apply ignoring managed-by arg 2019-11-29 13:24:27 +01:00
constants.py systemd: do not hardcode /etc/systemd/system in method 2018-12-10 18:26:33 -05:00
runner.py Fix action Apply ignoring managed-by arg 2019-11-29 13:24:27 +01:00