]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid race with udev during ovs agent startup
authorRalf Haferkamp <rhafer@suse.de>
Thu, 29 Aug 2013 18:50:55 +0000 (20:50 +0200)
committerRalf Haferkamp <rhafer@suse.de>
Tue, 17 Sep 2013 14:36:52 +0000 (16:36 +0200)
commit8d88ee7411d43f148b45d0a145fe32a75765a3ac
treeb795979e33d5745b187d54a25acc23655d8371f1
parent5b40d09056904b2fc68dfc1787e6a1bed6ed8075
Avoid race with udev during ovs agent startup

After taking down the veth link between the physical bridge and the integration
bridge call udevadm settle to wait for any udev events to be completely
processed by the operating system before recreating the veth pair.

Some distributions (e.g. openSUSE) have udev rules installed by default that
call e.g. ifdown <interface> during the remove event. If that is processed
after the ovs agent already brought up the veth pair again the veth pair's
link will be down after the agent completed startup and networking will be
broken for all VM instances.

Change-Id: I95520ea96a9804c5261a0c994bbca137535cc37c
Closes-Bug: #1218556
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py