]> 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)
committerMark McClain <mark.mcclain@dreamhost.com>
Tue, 8 Oct 2013 15:19:30 +0000 (11:19 -0400)
commit99440a63af5a2c4c2e139036c42db5c64e9495b2
treebff89ccbe6bf57b0d5526f6cae67b5e605640d1a
parentd90649f0e9c8babc4896550d312e4ea862e51a03
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
(cherry picked from commit 8d88ee7411d43f148b45d0a145fe32a75765a3ac)
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py