vmware-nsx/neutron/tests
Aaron Rosen f0db2da946 Remove and recreate interface if already exists
If the dhcp-agent machine restarts when openvswitch comes up it logs the
following warning messages for all tap interfaces that do not exist:

bridge|WARN|could not open network device tap2cf7dbad-9d (No such device)

Once the dhcp-agent starts it recreates the interfaces and re-adds them to the
ovs-bridge. Unfortunately, ovs does not reinitialize the interfaces as they
are already in ovsdb and does not assign them a ofport number.

This situation corrects itself though the next time a port is added to the
ovs-bridge which is why no one has probably noticed this issue till now.

In order to correct this we should first remove interface that exist and
then readd them.

Closes-bug: #1268762

Change-Id: I4bb0019135ab7fa7cdfa6d5db3bff6eafe22fc85
2014-01-20 13:49:55 -08:00
..
etc Service Type Framework refactoring 2013-07-25 21:47:30 +04:00
functional Add configurable ovsdb monitor respawn interval 2013-11-20 15:16:27 -06:00
unit Remove and recreate interface if already exists 2014-01-20 13:49:55 -08:00
var Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
base.py Add post-mortem debug option for tests 2013-12-10 03:56:50 +00:00
post_mortem_debug.py Add post-mortem debug option for tests 2013-12-10 03:56:50 +00:00
tools.py Replace mox in unit tests with mock 2013-11-18 22:17:14 +09:00