summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-03-14 16:28:48 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2016-03-14 16:51:22 -0400
commitf35b13f6a01f4c5bb1b30a1a82b0f7819cef047d (patch)
treed6febdf2595b1f14bb043be5747b95ab4d877a6b /playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2
parent23460f961b1a26ed71a5738758088572c4bc6d5e (diff)
downloadopenshift-f35b13f6a01f4c5bb1b30a1a82b0f7819cef047d.tar.gz
openshift-f35b13f6a01f4c5bb1b30a1a82b0f7819cef047d.tar.bz2
openshift-f35b13f6a01f4c5bb1b30a1a82b0f7819cef047d.tar.xz
openshift-f35b13f6a01f4c5bb1b30a1a82b0f7819cef047d.zip
Bug 1315564 - Containerized installs require a running environment
If the master or node aren't running we can't determine the correct version that is currently installed.
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/pre.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/pre.yml b/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/pre.yml
index c564bf823..c5fff8c3a 100644
--- a/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/pre.yml
+++ b/playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/pre.yml
@@ -47,6 +47,26 @@
when: openshift_image_tag is defined and openshift_image_tag.split('v',1).1 | version_compare(target_version ,'<')
- name: Verify upgrade can proceed
+ hosts: oo_masters_to_config
+ tasks:
+ - name: Ensure Master is running
+ service:
+ name: "{{ openshift.common.service_type }}-master"
+ state: started
+ enabled: yes
+ when: openshift.common.is_containerized | bool
+
+- name: Verify upgrade can proceed
+ hosts: oo_nodes_to_config
+ tasks:
+ - name: Ensure Node is running
+ service:
+ name: "{{ openshift.common.service_type }}-node"
+ state: started
+ enabled: yes
+ when: openshift.common.is_containerized | bool
+
+- name: Verify upgrade can proceed
hosts: oo_masters_to_config:oo_nodes_to_config
vars:
target_version: "{{ '1.2' if deployment_type == 'origin' else '3.1.1.900' }}"