summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
diff options
context:
space:
mode:
authorVadim Rutkovsky <vrutkovs@redhat.com>2018-01-31 17:31:08 +0100
committerVadim Rutkovsky <vrutkovs@redhat.com>2018-01-31 19:29:03 +0100
commit0fad99cb1c15212ddf6eb6d3862b4ded0b614166 (patch)
treeedc104744058a074573fb83d97eb3b4931c62f33 /playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
parent6f7d06beeaccedc31e8505dcb1db9e633ed4223e (diff)
downloadopenshift-0fad99cb1c15212ddf6eb6d3862b4ded0b614166.tar.gz
openshift-0fad99cb1c15212ddf6eb6d3862b4ded0b614166.tar.bz2
openshift-0fad99cb1c15212ddf6eb6d3862b4ded0b614166.tar.xz
openshift-0fad99cb1c15212ddf6eb6d3862b4ded0b614166.zip
Disable master controllers before upgrade and re-enable those when restart mode is system
This removes a start/stop after control plane upgrade
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
index a10fd4bee..fdcdb17ff 100644
--- a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
+++ b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml
@@ -96,6 +96,12 @@
- include_tasks: "{{ openshift_master_upgrade_hook }}"
when: openshift_master_upgrade_hook is defined
+ - name: Disable master controller
+ service:
+ name: "{{ openshift_service_type }}-master-controllers"
+ enabled: false
+ when: openshift.common.rolling_restart_mode == 'system'
+
- include_tasks: ../../../openshift-master/private/tasks/restart_hosts.yml
when: openshift.common.rolling_restart_mode == 'system'