summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-03-22 22:23:19 -0400
committerScott Dodson <sdodson@redhat.com>2017-03-22 22:26:25 -0400
commit04c70675e86ed60428ae7ca42bee22a759c5014c (patch)
treef297184e2b099a676a2a0eed65ab191c602d8b5b
parent1570b6ef091024f8403160b22144cc4edca6ff0e (diff)
downloadopenshift-04c70675e86ed60428ae7ca42bee22a759c5014c.tar.gz
openshift-04c70675e86ed60428ae7ca42bee22a759c5014c.tar.bz2
openshift-04c70675e86ed60428ae7ca42bee22a759c5014c.tar.xz
openshift-04c70675e86ed60428ae7ca42bee22a759c5014c.zip
Stop all services before upgrading openvswitch
It appears that openshift was holding a lock or perhaps openvswitch on its own does not restart cleanly when upgrading the package so just stop it before updating the package.
-rw-r--r--roles/openshift_node_upgrade/tasks/main.yml20
1 files changed, 12 insertions, 8 deletions
diff --git a/roles/openshift_node_upgrade/tasks/main.yml b/roles/openshift_node_upgrade/tasks/main.yml
index f052ed505..6ae8dbc12 100644
--- a/roles/openshift_node_upgrade/tasks/main.yml
+++ b/roles/openshift_node_upgrade/tasks/main.yml
@@ -51,24 +51,28 @@
failed_when: false
when: openshift.common.is_containerized | bool
+- name: Stop rpm based services
+ service:
+ name: "{{ item }}"
+ state: stopped
+ with_items:
+ - "{{ openshift.common.service_type }}-node"
+ - openvswitch
+ failed_when: false
+ when: not openshift.common.is_containerized | bool
+
- name: Upgrade openvswitch
package:
name: openvswitch
state: latest
- register: ovs_pkg
when: not openshift.common.is_containerized | bool
- name: Restart openvswitch
systemd:
- name: "{{ item }}"
- state: restarted
- with_items:
- - ovs-vswitchd
- - ovsdb-server
- - openvswitch
+ name: openvswitch
+ state: started
when:
- not openshift.common.is_containerized | bool
- - ovs_pkg | changed
# Mandatory Docker restart, ensure all containerized services are running:
- include: docker/restart.yml