neutron/neutron/tests/unit/objects
Slawek Kaplonski 93d9d6bbba Ensure there is always at most 1 dvr fip gw port per agent and network
In patch [1] there was introduced simple lock for creation of
DVR agent's floating IP gateway ports for network to avoid races
and creation of duplicated ports for one agent and one network.

This fix from [1] works in simple examples with only one neutron-server,
so it helped e.g. in CI but it wasn't proper fix for production
deployments which are much bigger and have more neutron server api
workers.

So this patch introduces constraint on database level so this works even
across cluster with multiple neutron-server api workers.

[1] https://review.opendev.org/#/c/673331/

Change-Id: Id55b8a21d6ecf5e029d1ca267b2cbd2ed91cca4c
Closes-Bug: #1830763
2020-02-07 08:32:33 +00:00
..
db remove the neutron.db._model_query module 2019-01-25 08:55:25 -07:00
logapi Enable an update test in UT of logging 2017-07-07 12:01:49 +09:00
plugins OVO for FlatAllocation 2016-12-22 13:25:50 +00:00
port Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
qos Remove QoS related objects unneeded compatibility conversions 2019-09-27 12:06:07 +00:00
__init__.py objects.base: avoid db access if object does not have changes 2015-07-03 02:02:17 +03:00
test_address_scope.py Use BaseDbObjectTestCase in AddressScope UT 2016-10-12 14:17:15 -05:00
test_agent.py New agent attribute: resources_synced 2019-02-21 13:45:15 +01:00
test_auto_allocate.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_base.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
test_conntrack_helper.py Conntrack Helper - OVO and db script 2019-05-20 18:00:18 +02:00
test_flavor.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_floatingip.py Refactoring _create_test methods for OVO UTs 2017-04-17 12:05:19 -07:00
test_ipam.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_l3_hamode.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_l3agent.py Add specific values to specific fields in get_random_object_fields() 2017-07-25 15:16:25 +09:00
test_metering.py Metering to OVO 2017-04-26 11:44:58 -07:00
test_network.py Move migration to proper dir and fix objects tests 2019-11-04 17:44:44 +00:00
test_network_segment_range.py Check project_id when creating and updating NetworkSegmentRange 2019-07-17 18:04:11 +00:00
test_objects.py Ensure there is always at most 1 dvr fip gw port per agent and network 2020-02-07 08:32:33 +00:00
test_port_forwarding.py Support fetching specific db column in OVO 2018-12-11 19:29:28 +00:00
test_ports.py Merge "Fix update of network's segmentation id for network with ports" 2019-07-09 22:49:23 +00:00
test_provisioning_blocks.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_quota.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_rbac.py Allow sharing of security groups via RBAC mechanism 2019-03-09 17:30:14 -06:00
test_rbac_db.py use objects common_types from neutron-lib 2019-11-26 15:34:18 +01:00
test_router.py Ensure there is always at most 1 dvr fip gw port per agent and network 2020-02-07 08:32:33 +00:00
test_securitygroup.py Allow sharing of security groups via RBAC mechanism 2019-03-09 17:30:14 -06:00
test_servicetype.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
test_subnet.py Serialize subnet creating depending on the network ID 2019-12-02 17:19:03 +00:00
test_subnetpool.py Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
test_tag.py Refactoring _create_test methods for OVO UTs 2017-04-17 12:05:19 -07:00
test_trunk.py use trunk constants from neutron-lib 2019-04-23 13:54:11 -06:00