summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-09-02 11:21:11 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-09-28 11:57:54 -0300
commit1ee66d50b7ca6d77f5bc3718cb58f86c622b2125 (patch)
treed7137623ac779b1cab40c70e9f225e24c6c9339f /playbooks/common/openshift-cluster
parentb3d66ad8db005d1e0f8de67eae6471b8f1cb7800 (diff)
downloadopenshift-1ee66d50b7ca6d77f5bc3718cb58f86c622b2125.tar.gz
openshift-1ee66d50b7ca6d77f5bc3718cb58f86c622b2125.tar.bz2
openshift-1ee66d50b7ca6d77f5bc3718cb58f86c622b2125.tar.xz
openshift-1ee66d50b7ca6d77f5bc3718cb58f86c622b2125.zip
Reunite upgrade reconciliation gating with the play it gates on.
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/upgrade.yml35
1 files changed, 18 insertions, 17 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade.yml b/playbooks/common/openshift-cluster/upgrades/upgrade.yml
index 8a2784fb4..c4ce5fef6 100644
--- a/playbooks/common/openshift-cluster/upgrades/upgrade.yml
+++ b/playbooks/common/openshift-cluster/upgrades/upgrade.yml
@@ -177,6 +177,24 @@
- set_fact:
reconcile_complete: True
+##############################################################################
+# Gate on reconcile
+##############################################################################
+- name: Gate on reconcile
+ hosts: localhost
+ connection: local
+ become: no
+ tasks:
+ - set_fact:
+ reconcile_completed: "{{ hostvars
+ | oo_select_keys(groups.oo_masters_to_config)
+ | oo_collect('inventory_hostname', {'reconcile_complete': true}) }}"
+ - set_fact:
+ reconcile_failed: "{{ groups.oo_masters_to_config | difference(reconcile_completed) }}"
+ - fail:
+ msg: "Upgrade cannot continue. The following masters did not finish reconciling: {{ reconcile_failed | join(',') }}"
+ when: reconcile_failed | length > 0
+
###############################################################################
# Upgrade Nodes
###############################################################################
@@ -242,20 +260,3 @@
when: inventory_hostname in groups.oo_nodes_to_config and was_schedulable | bool
-##############################################################################
-# Gate on reconcile
-##############################################################################
-- name: Gate on reconcile
- hosts: localhost
- connection: local
- become: no
- tasks:
- - set_fact:
- reconcile_completed: "{{ hostvars
- | oo_select_keys(groups.oo_masters_to_config)
- | oo_collect('inventory_hostname', {'reconcile_complete': true}) }}"
- - set_fact:
- reconcile_failed: "{{ groups.oo_masters_to_config | difference(reconcile_completed) }}"
- - fail:
- msg: "Upgrade cannot continue. The following masters did not finish reconciling: {{ reconcile_failed | join(',') }}"
- when: reconcile_failed | length > 0