summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-05-10 16:19:52 -0400
committerScott Dodson <sdodson@redhat.com>2016-05-11 10:57:49 -0400
commit4fcd7a3716e8dfef3e66decd580c5bf03f2f76b5 (patch)
treee8b730ee38675cd179856e1c6aab45d0d13757f1 /roles/openshift_node
parentb1a680fa543fa5132f0c768758437933fe8bcc20 (diff)
downloadopenshift-4fcd7a3716e8dfef3e66decd580c5bf03f2f76b5.tar.gz
openshift-4fcd7a3716e8dfef3e66decd580c5bf03f2f76b5.tar.bz2
openshift-4fcd7a3716e8dfef3e66decd580c5bf03f2f76b5.tar.xz
openshift-4fcd7a3716e8dfef3e66decd580c5bf03f2f76b5.zip
Why is the node failing to start
Diffstat (limited to 'roles/openshift_node')
-rw-r--r--roles/openshift_node/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 06fde88af..be70a170d 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -112,6 +112,17 @@
- 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
+ when: node_start_result | failed
+
+- name: Dump failure information
+ debug: var=node_failure
+ when: node_start_result | failed
+
- set_fact:
node_service_status_changed: "{{ node_start_result | changed }}"