summaryrefslogtreecommitdiffstats
path: root/playbooks/common
diff options
context:
space:
mode:
authorSteve Milner <smilner@redhat.com>2017-07-06 10:33:27 -0400
committerScott Dodson <sdodson@redhat.com>2017-07-18 12:03:14 -0400
commit4a38bc1bbcb743d94a481c539ccd723efe436da0 (patch)
treebfaef6df8aa8b2a984952d78b6dec2e972a1d947 /playbooks/common
parent057a58db0949900e75cf9f602b949bacbb78158f (diff)
downloadopenshift-4a38bc1bbcb743d94a481c539ccd723efe436da0.tar.gz
openshift-4a38bc1bbcb743d94a481c539ccd723efe436da0.tar.bz2
openshift-4a38bc1bbcb743d94a481c539ccd723efe436da0.tar.xz
openshift-4a38bc1bbcb743d94a481c539ccd723efe436da0.zip
Test docker restart with retries 3 delay 30
Diffstat (limited to 'playbooks/common')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/docker/restart.yml4
-rw-r--r--playbooks/common/openshift-node/restart.yml4
2 files changed, 8 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/docker/restart.yml b/playbooks/common/openshift-cluster/upgrades/docker/restart.yml
index 96c729d79..13313377e 100644
--- a/playbooks/common/openshift-cluster/upgrades/docker/restart.yml
+++ b/playbooks/common/openshift-cluster/upgrades/docker/restart.yml
@@ -1,6 +1,10 @@
---
- name: Restart docker
service: name=docker state=restarted
+ register: l_docker_restart_docker_in_upgrade_result
+ until: not l_docker_restart_docker_in_upgrade_result | failed
+ retries: 3
+ delay: 30
- name: Update docker facts
openshift_facts:
diff --git a/playbooks/common/openshift-node/restart.yml b/playbooks/common/openshift-node/restart.yml
index 63273cb78..ed2473a43 100644
--- a/playbooks/common/openshift-node/restart.yml
+++ b/playbooks/common/openshift-node/restart.yml
@@ -11,6 +11,10 @@
service:
name: docker
state: restarted
+ register: l_docker_restart_docker_in_node_result
+ until: not l_docker_restart_docker_in_node_result | failed
+ retries: 3
+ delay: 30
- name: Update docker facts
openshift_facts: