neutron/neutron/tests/unit/services/trunk
Nate Johnston d36cb19813 Do not delete trunk bridges if service port attached
When a deployment has instance ports that are neutron trunk ports with
DPDK vhu in vhostuserclient mode, when the instance reboots nova will
delete the ovs port and then recreate when the host comes back from
reboot.  This quick transition change can trigger a race condition that
causes the tbr trunk bridge to be deleted after the port has been
recreated.  See the bug for more details.

This change mitigates the race condition by adding a check for active
service ports within the trunk port deletion function.

Change-Id: I70b9c26990e6902f8888449bfd7483c25e5bff46
Closes-Bug: #1807239
(cherry picked from commit bd2a1bc6c3)
2018-12-17 12:19:38 +00:00
..
drivers Do not delete trunk bridges if service port attached 2018-12-17 12:19:38 +00:00
rpc use neutron-lib's callback fixture 2017-06-14 06:50:29 -06:00
seg_types Revisit support for trunk segmentation types 2016-09-02 15:37:09 +00:00
__init__.py Data models for vlan-aware-vms 2016-04-24 19:41:54 -07:00
fakes.py Revisit support for trunk segmentation types 2016-09-02 15:37:09 +00:00
test_plugin.py use neutron-lib callbacks 2017-04-26 12:12:53 -06:00
test_rules.py Speed up trunk MTU enforcement check 2018-01-17 03:23:28 +00:00
test_utils.py Reduce DB hit when checking for trunk-able ports 2016-08-16 08:09:21 -07:00