summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@gmail.com>2016-01-18 15:49:15 -0500
committerMatt Woodson <mwoodson@gmail.com>2016-01-18 15:49:15 -0500
commiteb96ea3556824ec6f12443b2ded6d71c18c11caa (patch)
treefd3759e9c2ed4d26dcf33491dc2750cd6f490cbc /playbooks
parent3bed4d0c4bda1b6332ec547502663d09e98b89d1 (diff)
parentd6a42ecaf39ba679a15ceb4e85832c45a8997640 (diff)
downloadopenshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.tar.gz
openshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.tar.bz2
openshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.tar.xz
openshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.zip
Merge pull request #1220 from openshift/master
Merge master into prod
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-master/restart.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/playbooks/common/openshift-master/restart.yml b/playbooks/common/openshift-master/restart.yml
index d9d857b1a..052892863 100644
--- a/playbooks/common/openshift-master/restart.yml
+++ b/playbooks/common/openshift-master/restart.yml
@@ -68,14 +68,22 @@
- name: Determine which masters are currently active
hosts: oo_masters_to_config
+ any_errors_fatal: true
tasks:
- name: Check master service status
command: >
systemctl is-active {{ openshift.common.service_type }}-master
register: active_check_output
when: openshift.master.cluster_method | default(None) == 'pacemaker'
- failed_when: active_check_output.stdout not in ['active', 'inactive', 'unknown']
+ failed_when: false
changed_when: false
+ # Any master which did not report 'active' or 'inactive' is likely
+ # unhealthy. Other possible states are 'unknown' or 'failed'.
+ - fail:
+ msg: >
+ Got invalid service state from {{ openshift.common.service_type }}-master
+ on {{ inventory_hostname }}. Please verify pacemaker cluster.
+ when: openshift.master.cluster_method | default(None) == 'pacemaker' and active_check_output.stdout not in ['active', 'inactive']
- set_fact:
is_active: "{{ active_check_output.stdout == 'active' }}"
when: openshift.master.cluster_method | default(None) == 'pacemaker'