summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/handlers
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-05-05 12:29:10 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-05-12 16:07:04 -0300
commit1b720085f2448794190e224011a07134b9425310 (patch)
treed897a9c8c0893223df59390dc82982f8f6b8afdd /roles/openshift_node/handlers
parentcdf248533495b456008c8976fe4e216952590c6e (diff)
downloadopenshift-1b720085f2448794190e224011a07134b9425310.tar.gz
openshift-1b720085f2448794190e224011a07134b9425310.tar.bz2
openshift-1b720085f2448794190e224011a07134b9425310.tar.xz
openshift-1b720085f2448794190e224011a07134b9425310.zip
Fixed openvswitch not upgrading.
Problem was a missing restart as systemd file did not change, so no notification was triggered. Added a notification on a file that contains the image version which does change. This exposed a bug where openvswitch shuts down the node and you return to no functioning nodes. Fixed by reordering the handlers so openvswitch restarts first.
Diffstat (limited to 'roles/openshift_node/handlers')
-rw-r--r--roles/openshift_node/handlers/main.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/openshift_node/handlers/main.yml b/roles/openshift_node/handlers/main.yml
index 1a1dc8ede..df3f6ee65 100644
--- a/roles/openshift_node/handlers/main.yml
+++ b/roles/openshift_node/handlers/main.yml
@@ -1,8 +1,9 @@
---
+- name: restart openvswitch
+ service: name=openvswitch state=restarted
+ when: not (ovs_service_status_changed | default(false) | bool)
+
- name: restart node
service: name={{ openshift.common.service_type }}-node state=restarted
when: not (node_service_status_changed | default(false) | bool)
-- name: restart openvswitch
- service: name=openvswitch state=restarted
- when: not (ovs_service_status_changed | default(false) | bool)