Ensure replicas are healthy before rebooting them

This commit is contained in:
Laurent Indermuehle 2023-01-12 22:59:37 +01:00
parent 3c621ea28c
commit b6160f3a8c
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -39,7 +39,9 @@ test-integration:
# Don't restart a container unless it is healthy
while ! podman healthcheck run primary && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
podman restart primary
while ! podman healthcheck run replica1 && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
podman restart replica1
while ! podman healthcheck run replica2 && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
podman restart replica2
while ! podman healthcheck run primary && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
-set -x; ansible-test integration $(target) -v --color --coverage --retry-on-error --continue-on-error --diff --docker --docker-network podman --python $(python); set +x