diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-06-13 21:40:58 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-06-13 21:40:58 -0400 |
commit | 894aac9033bfff2a8c9382025b6db4e3d784ffee (patch) | |
tree | 9e733092cb698214d4c7549c3924c6e47280f79b /roles | |
parent | 1720a5209dab342b84afd625cf609fe8fddf1f83 (diff) | |
download | openshift-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.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_node_upgrade/tasks/restart.yml | 6 |
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: |