summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-01-31 10:25:45 -0500
committerScott Dodson <sdodson@redhat.com>2017-01-31 11:02:06 -0500
commit655bbf8120fbade640651827ae80f9700da37fe9 (patch)
tree8b958a2734165262f3bf825ee665a591d5541a42 /playbooks
parent1c2037a6a8f0cede989baf4188c11840196d7dfd (diff)
downloadopenshift-655bbf8120fbade640651827ae80f9700da37fe9.tar.gz
openshift-655bbf8120fbade640651827ae80f9700da37fe9.tar.bz2
openshift-655bbf8120fbade640651827ae80f9700da37fe9.tar.xz
openshift-655bbf8120fbade640651827ae80f9700da37fe9.zip
During node upgrade upgrade openvswitch rpms
Containerized upgrades of openvswitch are already handled by updating the container images and pulling them again.
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
index 5fa74898f..a6a49e5ff 100644
--- a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
+++ b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
@@ -81,6 +81,21 @@
failed_when: false
when: openshift.common.is_containerized | bool
+ - name: Upgrade openvswitch
+ package:
+ name: openvswitch
+ state: latest
+ register: ovs_pkg
+ when: inventory_hostname in groups.oo_nodes_to_upgrade and not openshift.common.is_containerized | bool
+
+ - name: Restart openvswitch
+ systemd:
+ name: openvswitch
+ state: restarted
+ when:
+ - inventory_hostname in groups.oo_nodes_to_upgrade and not openshift.common.is_containerized | bool
+ - ovs_pkg | changed
+
# Mandatory Docker restart, ensure all containerized services are running:
- include: docker/restart.yml