From c472aacf66bc655a83979df9193380021a205ada Mon Sep 17 00:00:00 2001 From: QiLiang Date: Wed, 27 Jul 2016 03:54:11 +0800 Subject: Fix br-int check timeout issues JIRA: COMPASS-444 Change-Id: I0bf2de6b3a18e198e00fdde9cee262f2e3c57169 Signed-off-by: QiLiang --- .../openstack_mitaka_xenial/roles/odl_cluster/tasks/openvswitch.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'deploy/adapters/ansible') diff --git a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/odl_cluster/tasks/openvswitch.yml b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/odl_cluster/tasks/openvswitch.yml index 33099104..021143fc 100755 --- a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/odl_cluster/tasks/openvswitch.yml +++ b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/odl_cluster/tasks/openvswitch.yml @@ -41,6 +41,11 @@ - name: set opendaylight as the manager command: su -s /bin/sh -c "ovs-vsctl set-manager tcp:{{ internal_vip.ip }}:6640;" +- name: restart keepalived to recover external IP before check br-int + shell: service keepalived restart + when: inventory_hostname in groups['odl'] + ignore_errors: True + - name: check br-int shell: ovs-vsctl list-br | grep br-int; while [ $? -ne 0 ]; do sleep 10; ovs-vsctl list-br | grep br-int; done -- cgit 1.2.3-korg