neutron/neutron/tests/fullstack
Miguel Lavalle 33de608f04 Avoid race condition when deleting trunk bridges
Prior to this change, trunk bridges are created by os-vif but deleted
by Neutron when the last vif is removed from it. This creates race
conditions in some use cases, like DPDK with vhostuserclient mode, when
VMs are rebooted. To avoid these races, Neutron will not delete trunk
bridges anymore. Their creation and deletion will be os-vif's
responsiblity. Since [1], Nova uses the os-vif version that contains
this functionality.

This patch also changes the trunk status change event. During a live
migration, when the trunk parent port has been bound to the destination
host (that means there is only one port binding associated) and the
status has changed to ACTIVE, the method triggers the subport binding
to the new host too. This is because there could be a race condition
between the subport binding, triggered by the OVS agent, and the parent
port binding, triggered by Nova. If when the OVS agent tries to bind the
subports, the parent port is still bound to the source host, the subport
binding remains in the source host too, instead of changing to the
destination.

This patch also reverts [2] and [3]. As commented in the previous
paragraph, this patch fixes the issue reported in LP#1997025. The trunk
port live migration with ML2/OVS must be fixed with this patch.

[1]https://review.opendev.org/c/openstack/nova/+/865031
[2]https://review.opendev.org/c/openstack/neutron/+/865295
[3]https://review.opendev.org/c/openstack/neutron/+/865424

Closes-Bug: #1869244
Closes-Bug: #1997025

Change-Id: I4e16357f3ff214fcf41e418982806c24088a2665
2022-11-17 10:39:30 +01:00
..
agents dhcp: support multiple segmentations per network 2022-10-27 09:30:33 +02:00
resources Implement experimental features framework 2022-06-30 17:59:49 -05:00
schedulers HA race condition test for DHCP scheduling 2019-11-18 14:09:32 +01:00
servers Don't register config options on imports 2022-04-13 05:49:15 +00:00
README Moved fullstack test doc content to TESTING.rst 2015-12-03 17:02:54 -05:00
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py [Fullstack] Remove dhcp agent in tests where it isn't necessary 2022-03-23 16:52:48 +01:00
test_agent_bandwidth_report.py Enhance agent's resources_synced check 2020-02-11 15:09:24 +01:00
test_connectivity.py [Fullstack] Remove dhcp agent in tests where it isn't necessary 2022-03-23 16:52:48 +01:00
test_dhcp_agent.py [Fullstack] Remove dhcp agent in tests where it isn't necessary 2022-03-23 16:52:48 +01:00
test_firewall.py Drop of_interface option 2019-05-24 10:33:48 +02:00
test_l3_agent.py Check subnet overlapping after add router interface 2022-10-21 15:53:13 +02:00
test_local_ip.py [fullstack] use noop fw driver for Local IP conntrack test 2022-02-17 11:25:31 +03:00
test_logging.py Use ovs constants from neutron-lib 2022-06-17 10:36:44 +05:30
test_mtu.py Check mtu on network update 2019-12-16 15:04:47 +00:00
test_ovs_dhcp_extension.py [Fullstack] Remove dhcp agent in tests where it isn't necessary 2022-03-23 16:52:48 +01:00
test_port_shut_down.py [OVS] Shut down the port on changing the admin-state to false 2018-01-04 01:44:01 -05:00
test_ports_api.py Rehome api tests for propagate_uplink_status 2020-10-13 10:57:57 +00:00
test_ports_binding.py [Follow Up] Add Smart NIC representor port to integration bridge 2019-06-24 06:58:18 +00:00
test_ports_rebind.py Add "bound_drivers" information to port "vif_details" 2022-01-27 04:16:45 +00:00
test_qos.py Merge "Fullstack tests of packet rate limit for ovs qos driver" 2022-06-24 11:01:44 +00:00
test_quota.py [quota] Enable ``DbQuotaDriverNull`` as a production driver 2022-04-05 10:10:46 +00:00
test_securitygroup.py [Fullstack] Remove dhcp agent in tests where it isn't necessary 2022-03-23 16:52:48 +01:00
test_segmentation_id.py Fix remaining typos in comments and tests 2022-07-06 21:20:27 +05:30
test_subnet.py Ensure gateway is set for prefix delegated subnets 2022-03-03 11:10:54 +05:30
test_trunk.py Avoid race condition when deleting trunk bridges 2022-11-17 10:39:30 +01:00

README

Please see neutron/TESTING.rst.