summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-06-23 10:40:58 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-06-23 10:40:58 -0300
commitb85c47761db579b2153b08018ed74c7650b388f5 (patch)
tree63fa53d0e3f9edada1b3b5aca43ac957f5c276d9 /roles/openshift_node/tasks
parentea99abc4461f3e2edb7993b9c7961a13c727ab7c (diff)
parent7ac20f9cef4dbbf9787e757dd1938d28483a22a7 (diff)
downloadopenshift-b85c47761db579b2153b08018ed74c7650b388f5.tar.gz
openshift-b85c47761db579b2153b08018ed74c7650b388f5.tar.bz2
openshift-b85c47761db579b2153b08018ed74c7650b388f5.tar.xz
openshift-b85c47761db579b2153b08018ed74c7650b388f5.zip
Merge branch 'master' into upgrade33
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r--roles/openshift_node/tasks/main.yml19
1 files changed, 12 insertions, 7 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 60d5081d3..f861f04a4 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -110,18 +110,23 @@
changed_when: false
when: openshift.common.is_containerized | bool
+- name: Start and enable node dep
+ service: name={{ openshift.common.service_type }}-node-dep enabled=yes state=started
+ when: openshift.common.is_containerized | bool
+
- name: Start and enable node
service: name={{ openshift.common.service_type }}-node enabled=yes state=started
register: node_start_result
ignore_errors: yes
-
-- name: Check logs on failure
- command: journalctl -xe
- register: node_failure
+
+- name: Wait 30 seconds for docker initialization whenever node has failed
+ pause:
+ seconds: 30
when: node_start_result | failed
-
-- name: Dump failure information
- debug: var=node_failure
+
+- 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
- set_fact: