Selaa lähdekoodia

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.
Devan Goodwin 8 vuotta sitten
vanhempi
commit
3c76455faa
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      roles/openshift_node/handlers/main.yml

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