neutron/neutron
Rodolfo Alonso Hernandez be1a0daab0 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/plugins/ml2/drivers/helpers.py
    neutron/tests/functional/objects/plugins/ml2/test_base.py
    neutron/tests/unit/plugins/ml2/drivers/test_type_vlan.py

Change-Id: Id3f71611a00e69c4f22340ca4d05d95e4373cf69
(cherry picked from commit 6eaa6d83d7)
(cherry picked from commit ab56a5cd65)
2021-09-14 17:31:31 +02:00
..
agent Remove dhcp_extra_opt value after first newline character 2021-09-01 08:06:29 +00:00
api Don't use singleton in routes.middleware.RoutesMiddleware 2021-09-07 06:09:58 +00:00
cmd Added common config and SR-IOV agent config to sanity check 2021-06-11 14:45:42 +00:00
common Randomize segmentation ID assignation 2021-09-14 17:31:31 +02:00
conf Make default hypervisor hostname compatible with libvirt 2021-06-21 14:20:34 +02:00
core_extensions Switch to new engine facade for QoS 2019-05-28 08:11:35 +00:00
db Set "floatingip.fixed_port" as viewonly 2021-07-19 14:52:14 +00:00
debug Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
extensions Conntrack Helper - Plugin 2019-08-29 10:41:04 +02:00
hacking Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
ipam Allow first address in an IPv6 subnet as valid unicast 2019-05-21 16:31:18 +00:00
locale Imported Translations from Zanata 2019-11-22 07:43:34 +00:00
notifiers Add config option ``http_retries`` 2020-07-09 10:11:43 +00:00
objects Randomize segmentation ID assignation 2021-09-14 17:31:31 +02:00
pecan_wsgi Set DB retry for quota_enforcement pecan_wsgi hook 2019-11-24 09:55:14 +00:00
plugins Randomize segmentation ID assignation 2021-09-14 17:31:31 +02:00
privileged Delete HA metadata proxy PID and config with elevated privileges 2021-03-03 08:38:24 +00:00
quota Set DB retry for quota_enforcement pecan_wsgi hook 2019-11-24 09:55:14 +00:00
scheduler Do not fail if the agent load is not bumped 2021-08-30 13:11:41 +00:00
server Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-19 07:58:41 +00:00
services Improve Subnet create performance 2021-06-23 15:36:32 +00:00
tests Randomize segmentation ID assignation 2021-09-14 17:31:31 +02:00
__init__.py Fix incorrect usage of '# flake8: noqa' 2018-10-29 15:27:50 -04:00
_i18n.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Define dhcp_agents_per_network with min=1 2019-05-15 14:08:21 -04:00
neutron_plugin_base_v2.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
opts.py Provide the rpc_response_max_timeout parameter to sriov-agent 2021-06-14 14:16:22 +00:00
policy.py List SG rules which belongs to tenant's SG 2019-12-04 20:44:05 +00:00
service.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-19 07:58:41 +00:00
version.py
worker.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
wsgi.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-19 07:58:41 +00:00