From 894aac9033bfff2a8c9382025b6db4e3d784ffee Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Tue, 13 Jun 2017 21:40:58 -0400 Subject: Retry docker startup once Large environments frequently see docker fail to start up after an upgrade. Not sure why but we can retry once. --- roles/openshift_node_upgrade/tasks/restart.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'roles/openshift_node_upgrade') 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: -- cgit v1.2.3