summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node
diff options
context:
space:
mode:
authorJason DeTiberus <detiber@gmail.com>2016-05-12 12:39:21 -0400
committerJason DeTiberus <detiber@gmail.com>2016-05-12 12:39:21 -0400
commit1165565b15f27d913a10ba64441608d76907c3ba (patch)
tree12a7050e0d3d98db3c6b0ea5cddab30ff37f18c4 /roles/openshift_node
parentf63985e045852aa6eace6b1f25c4b76abbf1e1c5 (diff)
parent4fcd7a3716e8dfef3e66decd580c5bf03f2f76b5 (diff)
downloadopenshift-1165565b15f27d913a10ba64441608d76907c3ba.tar.gz
openshift-1165565b15f27d913a10ba64441608d76907c3ba.tar.bz2
openshift-1165565b15f27d913a10ba64441608d76907c3ba.tar.xz
openshift-1165565b15f27d913a10ba64441608d76907c3ba.zip
Merge pull request #1870 from sdodson/fix-firewall
Fix master firewall rules by deferring them
Diffstat (limited to 'roles/openshift_node')
-rw-r--r--roles/openshift_node/meta/main.yml1
-rw-r--r--roles/openshift_node/tasks/main.yml11
2 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_node/meta/main.yml b/roles/openshift_node/meta/main.yml
index ca0c332ea..db1776632 100644
--- a/roles/openshift_node/meta/main.yml
+++ b/roles/openshift_node/meta/main.yml
@@ -17,4 +17,5 @@ dependencies:
- role: openshift_common
- role: openshift_node_dnsmasq
when: openshift.common.use_dnsmasq
+- role: os_firewall
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 }}"