Browse Source

During node upgrade upgrade openvswitch rpms

Containerized upgrades of openvswitch are already handled by updating
the container images and pulling them again.
Scott Dodson 8 years ago
parent
commit
655bbf8120
1 changed files with 15 additions and 0 deletions
  1. 15 0
      playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml

+ 15 - 0
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