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.
Reviewed: https:/ /review. openstack. org/623275 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=bd2a1bc6c3d 68ddd27fc0b77ec 767b11ec0fcb54
Committed: https:/
Submitter: Zuul
Branch: master
commit bd2a1bc6c3d68dd d27fc0b77ec767b 11ec0fcb54
Author: Nate Johnston <email address hidden>
Date: Thu Dec 6 12:39:49 2018 -0500
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: I70b9c26990e690 2f8888449bfd748 3c25e5bff46
Closes-Bug: #1807239