mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-27 21:01:28 -07:00
Ensure replicas are healthy before rebooting them
This commit is contained in:
parent
3c621ea28c
commit
b6160f3a8c
1 changed files with 3 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -39,7 +39,9 @@ test-integration:
|
||||||
# Don't restart a container unless it is healthy
|
# Don't restart a container unless it is healthy
|
||||||
while ! podman healthcheck run primary && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
while ! podman healthcheck run primary && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||||
podman restart primary
|
podman restart primary
|
||||||
|
while ! podman healthcheck run replica1 && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||||
podman restart replica1
|
podman restart replica1
|
||||||
|
while ! podman healthcheck run replica2 && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
||||||
podman restart replica2
|
podman restart replica2
|
||||||
while ! podman healthcheck run primary && [[ "$$SECONDS" -lt 120 ]]; do sleep 1; done
|
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
|
-set -x; ansible-test integration $(target) -v --color --coverage --retry-on-error --continue-on-error --diff --docker --docker-network podman --python $(python); set +x
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue