diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-03-22 22:23:19 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-03-22 22:26:25 -0400 |
commit | 04c70675e86ed60428ae7ca42bee22a759c5014c (patch) | |
tree | f297184e2b099a676a2a0eed65ab191c602d8b5b | |
parent | 1570b6ef091024f8403160b22144cc4edca6ff0e (diff) | |
download | openshift-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.yml | 20 |
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 |