summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/v3_7/upgrade.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-10-11 10:44:05 -0400
committerScott Dodson <sdodson@redhat.com>2017-10-11 16:31:40 -0400
commit8a94e1b2fc7272e2d56b9eb10e39fa4e41bff5ad (patch)
tree75a3bb4f4757107c9e40654805937d158b7e7056 /playbooks/common/openshift-cluster/upgrades/v3_7/upgrade.yml
parent94656ef680c235f8777d48528c314357673d255c (diff)
downloadopenshift-8a94e1b2fc7272e2d56b9eb10e39fa4e41bff5ad.tar.gz
openshift-8a94e1b2fc7272e2d56b9eb10e39fa4e41bff5ad.tar.bz2
openshift-8a94e1b2fc7272e2d56b9eb10e39fa4e41bff5ad.tar.xz
openshift-8a94e1b2fc7272e2d56b9eb10e39fa4e41bff5ad.zip
Restart all controllers to force reconfiguration during upgrade
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/v3_7/upgrade.yml')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/v3_7/upgrade.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/v3_7/upgrade.yml b/playbooks/common/openshift-cluster/upgrades/v3_7/upgrade.yml
index f1ca1edb9..bf3b94682 100644
--- a/playbooks/common/openshift-cluster/upgrades/v3_7/upgrade.yml
+++ b/playbooks/common/openshift-cluster/upgrades/v3_7/upgrade.yml
@@ -119,8 +119,24 @@
tasks:
- include: ../cleanup_unused_images.yml
+#TODO: Why doesn't this compose using ./upgrade_control_plane rather than
+# ../upgrade_control_plane?
- include: ../upgrade_control_plane.yml
+# All controllers must be stopped at the same time then restarted
+- name: Cycle all controller services to force new leader election mode
+ hosts: oo_etcd_to_config
+ gather_facts: no
+ tasks:
+ - name: Stop {{ openshift.common.service_type }}-master-controllers
+ systemd:
+ name: "{{ openshift.common.service_type }}-master-controllers"
+ state: stopped
+ - name: Start {{ openshift.common.service_type }}-master-controllers
+ systemd:
+ name: "{{ openshift.common.service_type }}-master-controllers"
+ state: started
+
- include: ../upgrade_nodes.yml
- include: ../post_control_plane.yml