system-config/playbooks/roles/zuul-executor
Clark Boylan 741f5b333d Fixup zuul merger and executor graceful shutdowns
There are two issues in the zuul merger and executor shutdowns. The
first is that `docker-compose ps -q` will report exited containers
unlike `docker ps -q`. This means we may try to exec into a non running
container which is an error. Handle this by checking the error message
and proceeding if the 'is not running' string is present.

The second issue is a race between stopping a container and running an
exec in the container. If a container stops while an exec is running in
it that exec appears to be treated with some equivalent of kill -9. The
result is the exec returns 137. While theoretically possible for both
executor and merger graceful stop command we seem to only hit this with
the merger so we handle exit code 137 for the merger only. This way
we'll get info if the executors start running into this too.

Change-Id: Ia6dc2d7e397631d72968ffa89c4492b803c89c47
2022-09-12 09:23:21 -07:00
..
defaults Run zuul-executor using docker 2020-06-09 14:26:38 -05:00
files zuul-*: use multiline formatter 2021-12-13 14:54:16 +11:00
tasks Fixup zuul merger and executor graceful shutdowns 2022-09-12 09:23:21 -07:00
templates Remove orphaned zuul-executor defaults file 2021-01-30 11:17:54 -08:00
vars Run zuul-executor using docker 2020-06-09 14:26:38 -05:00
README.rst Run Zuul using Ansible and Containers 2020-04-24 09:18:44 -05:00

Run Zuul Executor