diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2016-09-09 15:04:36 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-09-12 09:11:33 -0300 |
commit | 3c76455faaac61aa74a3b840e1831aa95a9dea6e (patch) | |
tree | 47ed84bf322c9a7b09b764b89ee94c367188cce5 /roles/openshift_node/handlers | |
parent | a03ad9d76f1ad45448d8ae18ad9b60f7e84d527a (diff) | |
download | openshift-3c76455faaac61aa74a3b840e1831aa95a9dea6e.tar.gz openshift-3c76455faaac61aa74a3b840e1831aa95a9dea6e.tar.bz2 openshift-3c76455faaac61aa74a3b840e1831aa95a9dea6e.tar.xz openshift-3c76455faaac61aa74a3b840e1831aa95a9dea6e.zip |
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.
Diffstat (limited to 'roles/openshift_node/handlers')
-rw-r--r-- | roles/openshift_node/handlers/main.yml | 6 |
1 files changed, 6 insertions, 0 deletions
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 |