summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node_upgrade
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-07-06 12:13:38 -0400
committerScott Dodson <sdodson@redhat.com>2017-07-18 12:03:15 -0400
commitb98dd4f1ac8582dbdee70128151f7e14c68c9b74 (patch)
tree9c8f9c3211dd29204ef6a90812dd713557e8e662 /roles/openshift_node_upgrade
parent36a7c5bf5c69511020c516a33ca6b3e57aff485d (diff)
downloadopenshift-b98dd4f1ac8582dbdee70128151f7e14c68c9b74.tar.gz
openshift-b98dd4f1ac8582dbdee70128151f7e14c68c9b74.tar.bz2
openshift-b98dd4f1ac8582dbdee70128151f7e14c68c9b74.tar.xz
openshift-b98dd4f1ac8582dbdee70128151f7e14c68c9b74.zip
Wrap docker stop in retries
Diffstat (limited to 'roles/openshift_node_upgrade')
-rw-r--r--roles/openshift_node_upgrade/tasks/docker/upgrade.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/openshift_node_upgrade/tasks/docker/upgrade.yml b/roles/openshift_node_upgrade/tasks/docker/upgrade.yml
index 416cf605a..ebe87d6fd 100644
--- a/roles/openshift_node_upgrade/tasks/docker/upgrade.yml
+++ b/roles/openshift_node_upgrade/tasks/docker/upgrade.yml
@@ -26,7 +26,13 @@
- debug: var=docker_image_count.stdout
when: docker_upgrade_nuke_images is defined and docker_upgrade_nuke_images | bool
-- service: name=docker state=stopped
+- service:
+ name: docker
+ state: stopped
+ register: l_openshift_node_upgrade_docker_stop_result
+ until: not l_openshift_node_upgrade_docker_stop_result | failed
+ retries: 3
+ delay: 30
- name: Upgrade Docker
package: name=docker{{ '-' + docker_version }} state=present