From 3c76455faaac61aa74a3b840e1831aa95a9dea6e Mon Sep 17 00:00:00 2001 From: Devan Goodwin Date: Fri, 9 Sep 2016 15:04:36 -0300 Subject: Pause after restarting openvswitch in containerized upgrade. The openvswitch restart appears to hang the node container running briefly, if you try to restart node too quickly it will fail complaining that the node container name is still in use. Pausing after openvswitch restart allows the existing node container to catch up and then shutdown cleanly. --- roles/openshift_node/handlers/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles/openshift_node/handlers') diff --git a/roles/openshift_node/handlers/main.yml b/roles/openshift_node/handlers/main.yml index df3f6ee65..b24f61569 100644 --- a/roles/openshift_node/handlers/main.yml +++ b/roles/openshift_node/handlers/main.yml @@ -2,6 +2,12 @@ - name: restart openvswitch service: name=openvswitch state=restarted when: not (ovs_service_status_changed | default(false) | bool) + notify: + - restart openvswitch pause + +- name: restart openvswitch pause + pause: seconds=15 + when: openshift.common.is_containerized | bool - name: restart node service: name={{ openshift.common.service_type }}-node state=restarted -- cgit v1.2.1