paunch/paunch
Alex Schultz f1a0879fea Actually fail if a stop or remove call fails
As part of the container rename actions, attempt to stop and remove
containers without actually checking if they exist. Additionally we
don't actually fail if these command fail which leads to other errors
later that may be unrelated to the core issue. This change adds
additional checks around the stop and remove container actions to ensure
that the container is running before stopping and exists before
removing.

Backport note:
This change includes the subsequent change[1] to fix the wrong method
name used.

[1] Ie0462cd89f0beb2a2adc82768dea7d42dc343192

Change-Id: I82172f5a2d4683509c802c0f14d571a40e21e6cc
Closes-Bug: #1907833
(cherry picked from commit 523465fe8c)
2021-01-11 14:37:17 +00:00
..
builder Fix inspect images calls to not use the index format keyword 2020-11-12 19:03:14 +00:00
tests Actually fail if a stop or remove call fails 2021-01-11 14:37:17 +00: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 Actually fail if a stop or remove call fails 2021-01-11 14:37:17 +00:00