summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-10-07 16:12:59 -0400
committerScott Dodson <sdodson@redhat.com>2016-10-10 09:41:31 -0400
commit44d0816ecd1e55b98e4e76361072667c2ffdae40 (patch)
tree4f35e360dc998c2180abb3a85f5cf322b9a371d6 /roles/openshift_node/tasks
parenta37dc403f19d9b0cd772d4f876732834f8c7fd4b (diff)
downloadopenshift-44d0816ecd1e55b98e4e76361072667c2ffdae40.tar.gz
openshift-44d0816ecd1e55b98e4e76361072667c2ffdae40.tar.bz2
openshift-44d0816ecd1e55b98e4e76361072667c2ffdae40.tar.xz
openshift-44d0816ecd1e55b98e4e76361072667c2ffdae40.zip
Improve how we handle containerized node failure on first startup
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r--roles/openshift_node/tasks/main.yml14
1 files changed, 3 insertions, 11 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index be07bd2d3..8e9c9f511 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -152,17 +152,9 @@
- name: Start and enable node
service: name={{ openshift.common.service_type }}-node enabled=yes state=started
register: node_start_result
- ignore_errors: yes
-
-- name: Wait 30 seconds for docker initialization whenever node has failed
- pause:
- seconds: 30
- when: node_start_result | failed
-
-- name: Start and enable node again
- service: name={{ openshift.common.service_type }}-node enabled=yes state=started
- register: node_start_result
- when: node_start_result | failed
+ until: not node_start_result | failed
+ retries: 1
+ delay: 30
- set_fact:
node_service_status_changed: "{{ node_start_result | changed }}"