diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2016-09-12 15:16:38 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-09-28 11:57:54 -0300 |
commit | 6f056fd9673428c00b5e496a9a084cf09ad777cf (patch) | |
tree | 338811cad4feb908d79a45f0abe28aa151d627ea /playbooks/byo/openshift-cluster/upgrades | |
parent | cbe003803a4a7509ee7aa1fac776cc618818bb4e (diff) | |
download | openshift-6f056fd9673428c00b5e496a9a084cf09ad777cf.tar.gz openshift-6f056fd9673428c00b5e496a9a084cf09ad777cf.tar.bz2 openshift-6f056fd9673428c00b5e496a9a084cf09ad777cf.tar.xz openshift-6f056fd9673428c00b5e496a9a084cf09ad777cf.zip |
Verify masters are upgraded before proceeding with node only upgrade.
Diffstat (limited to 'playbooks/byo/openshift-cluster/upgrades')
-rw-r--r-- | playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_masters.yml | 2 | ||||
-rw-r--r-- | playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_masters.yml b/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_masters.yml index 5c2bba209..94339dd63 100644 --- a/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_masters.yml +++ b/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_masters.yml @@ -17,7 +17,7 @@ - include: ../initialize_facts.yml - name: Update repos and initialize facts on all hosts - hosts: oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config + hosts: oo_masters_to_config:oo_nodes_to_config:oo_etcd_to_config:oo_lb_to_config roles: - openshift_repos diff --git a/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml b/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml index d9c82d8dc..9d29ba1ab 100644 --- a/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml +++ b/playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade_nodes.yml @@ -17,7 +17,7 @@ - include: ../initialize_facts.yml - name: Update repos and initialize facts on all hosts - hosts: oo_nodes_to_config + hosts: oo_masters_to_config:oo_nodes_to_config:oo_etcd_to_config:oo_lb_to_config roles: - openshift_repos @@ -54,3 +54,9 @@ - include: ../../../../common/openshift-cluster/upgrades/pre/verify_docker_upgrade_targets.yml - include: ../../../../common/openshift-cluster/upgrades/pre/gate_checks.yml + +- name: Verify masters are already upgraded + hosts: oo_masters_to_config + tasks: + - fail: msg="Master running {{ openshift.common.version }} must be upgraded to {{ openshift_version }} before node upgrade can be run." + when: openshift.common.version != openshift_version |