summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-06-13 21:40:58 -0400
committerScott Dodson <sdodson@redhat.com>2017-06-13 21:40:58 -0400
commit894aac9033bfff2a8c9382025b6db4e3d784ffee (patch)
tree9e733092cb698214d4c7549c3924c6e47280f79b
parent1720a5209dab342b84afd625cf609fe8fddf1f83 (diff)
downloadopenshift-894aac9033bfff2a8c9382025b6db4e3d784ffee.tar.gz
openshift-894aac9033bfff2a8c9382025b6db4e3d784ffee.tar.bz2
openshift-894aac9033bfff2a8c9382025b6db4e3d784ffee.tar.xz
openshift-894aac9033bfff2a8c9382025b6db4e3d784ffee.zip
Retry docker startup once
Large environments frequently see docker fail to start up after an upgrade. Not sure why but we can retry once.
-rw-r--r--roles/openshift_node_upgrade/tasks/restart.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/openshift_node_upgrade/tasks/restart.yml b/roles/openshift_node_upgrade/tasks/restart.yml
index 508eb9358..b24d8cec7 100644
--- a/roles/openshift_node_upgrade/tasks/restart.yml
+++ b/roles/openshift_node_upgrade/tasks/restart.yml
@@ -16,7 +16,11 @@
- name: Restart docker
service:
name: "{{ openshift.docker.service_name }}"
- state: restarted
+ state: started
+ register: docker_start_result
+ until: not docker_start_result | failed
+ retries: 1
+ delay: 30
- name: Update docker facts
openshift_facts: