neutron/neutron/tests/functional
Rodolfo Alonso Hernandez ab56a5cd65 Randomize segmentation ID assignation
If plugin "network_segment_range" is not enabled and a new segment
is required, if no segmentation ID is provided in the request, the
segmentation ID assigned is randomly retrieved from the non
allocated segmentation IDs.

The goal is to improve the concurrent network (and segment) creation.
If several segments are created in parallel, this random query
will return a different segmentation ID to each one, avoiding the
database retry request.

Closes-Bug: #1920923

Conflicts:
    neutron/common/utils.py
    neutron/tests/unit/plugins/ml2/drivers/test_type_vlan.py

Change-Id: Id3f71611a00e69c4f22340ca4d05d95e4373cf69
(cherry picked from commit 6eaa6d83d7)
2021-09-10 11:22:53 +02:00
..
agent Read keepalived initial state in parallel to interface monitoring 2021-06-18 07:33:51 +00:00
api Convert policy.json into policy-in-code 2018-12-13 20:37:53 +00:00
cmd Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
common All functional tests logs results now 2018-11-21 19:58:18 +00:00
db Remove FT "test_has_offline_migrations_*" tests 2021-04-07 09:17:17 +00:00
objects Randomize segmentation ID assignation 2021-09-10 11:22:53 +02:00
pecan_wsgi Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
plugins Rely on worker count for HashRing caching 2021-05-06 14:31:44 +00:00
privileged Support pyroute2 0.5.13 2020-08-05 17:36:01 +00:00
resources [OVN] Add OVN functional tests - part 1 2020-02-18 13:33:52 +00:00
sanity Use pyroute2 for SRIOV VF commands 2020-05-27 16:58:02 +00:00
scheduler Add binding_index to NetworkDhcpAgentBinding 2019-08-29 12:52:07 +04:00
services Revert "DVR: Remove control plane arp updates for DVR" 2021-03-09 13:07:17 +00:00
tests Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
__init__.py tests: removed 'retargetable' framework 2017-05-02 16:45:49 +00:00
base.py add_fake_chassis() may need to create a Chassis_Private 2021-05-12 08:17:17 +00:00
constants.py TrunkManager for the OVS agent 2016-08-24 02:52:17 -04:00
requirements.txt Update requirements for recent pip failures 2020-12-14 11:35:53 +01:00
test_server.py Use "multiprocessing.Queue" for "TestNeutronServer" related tests 2021-07-02 10:00:00 +00:00
test_service.py Modify api and rpc default number of workers 2019-02-19 13:24:01 -07:00