Method "build_segment_queries_for_tenant_and_shared_ranges" returning empty query
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Rodolfo Alonso |
Bug Description
Method "build_
- One for those network segment ranges matching the project_id
- One for those network segment ranges shared (no project_id, but available for everyone)
The first one, if "project_id" is not present in the filter variable, returns an empty list:
https:/
The returned queries are used in "allocate_
If the first object is not a query but an empty list, the code will fail.
UPDATE:
I've found some other issues related to this feature that should be addressed in order to have a healthy functionality. Those issues were found during the implementation of [1]
This service plugin creates, when the drivers are initialized (one per segmentation type: VLAN, VXLAN, GRE or Geneve), a default segment range not assigned to any project, with the min/max values defined statically in the neutron plugin config ("network_
Then the administrator can create segment ranges for project. Those segment ranges do not overlap among them but can overlap with the default range.
When a network is created, the method "SegmentTypeDri
That means:
- When the the segment ranges are depleted, the project user can always receive a segmentation from the default group. Why is then this feature needed?
- In this case, the user can have assigned a segmentation ID belonging to other project (this segmentation can fall under the interval defined in other segment range). There is no check for this.
- The tests implemented in [2] rely on the current buggy implementation of this method.
Currently this new feature does not perform what is intended to do.
[1] https:/
[2] https:/
Changed in neutron: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
description: | updated |
Changed in neutron: | |
importance: | Undecided → High |
tags: | added: neutron-proactive-backport-potential |
Fix proposed to branch: master /review. opendev. org/708027
Review: https:/