neutron/neutron
Rodolfo Alonso Hernandez 3796c03fd1 Fix queries to retrieve allocations with network_segment_range
Fixed the queries to retrieve the segment ID allocations when service
plugin network_segment_range is enabled. With the previous
implementation, a project user was able to allocate a segment ID
belonging to other project segment range.

The solution implemented was discussed in [1]:
- A project user will retrieve segments from the project ranges.
- When depleted, the segment IDs will be retrieved from the shared
  range, never using another project segment ID.

[1]http://lists.openstack.org/pipermail/openstack-discuss/2020-February/012736.html

Conflicts:
      neutron/objects/network_segment_range.py
      neutron/objects/plugins/ml2/base.py
      neutron/objects/plugins/ml2/vxlanallocation.py
      neutron/objects/plugins/ml2/vlanallocation.py
      neutron/tests/unit/objects/test_network_segment_range.py

Change-Id: I953062d9ee8ee5ee9a9f07aff4a8222ac63ed525
Closes-Bug: #1863423
(cherry picked from commit 046672247d)
(cherry picked from commit bbe401aaf9)
2020-04-30 11:00:41 +00:00
..
agent Merge "move neutron only common constants to private module" into stable/stein 2020-04-29 21:35:27 +00:00
api Optimize DVR related port DB query 2020-03-31 14:02:19 +00:00
cmd Add check for external_network_bridge in neutron-status 2019-03-22 13:14:24 +00:00
common Fix queries to retrieve allocations with network_segment_range 2020-04-30 11:00:41 +00:00
conf Add accepted egress direct flow 2020-02-28 20:58:21 +08:00
core_extensions remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
db Fix queries to retrieve allocations with network_segment_range 2020-04-30 11:00:41 +00:00
debug Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
extensions Fix resource schemas and releated `get_sorts` test cases 2020-01-31 17:30:08 +00:00
hacking remove neutron.db.api references 2019-03-05 09:14:50 -07:00
ipam Allow first address in an IPv6 subnet as valid unicast 2019-05-22 14:13:31 +00:00
locale Imported Translations from Zanata 2020-01-10 09:16:24 +00:00
notifiers Refactor the L3 agent batch notifier 2019-09-10 05:40:18 +00:00
objects Fix queries to retrieve allocations with network_segment_range 2020-04-30 11:00:41 +00:00
pecan_wsgi Set DB retry for quota_enforcement pecan_wsgi hook 2019-11-21 06:38:33 +00:00
plugins Fix queries to retrieve allocations with network_segment_range 2020-04-30 11:00:41 +00:00
privileged Avoid raising NetworkInterfaceNotFound exception in DHCP agent logs 2020-04-23 15:50:33 +00:00
quota Set DB retry for quota_enforcement pecan_wsgi hook 2019-11-21 06:38:33 +00:00
scheduler Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
server Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-19 07:58:54 +00:00
services Wait before deleting trunk bridges for DPDK vhu 2020-04-03 21:11:37 +00:00
tests Fix queries to retrieve allocations with network_segment_range 2020-04-30 11:00:41 +00: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 Avoid loading same service plugin more than once 2019-02-21 11:17:02 +01: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 Add "rpc_response_max_timeout" config variable in OVS agent 2019-02-21 15:11:42 +00:00
policy.py List SG rules which belongs to tenant's SG 2020-01-16 08:57:01 +00:00
service.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-19 07:58:54 +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:54 +00:00