yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #74624
[Bug 1791233] [NEW] Redundant dynamic partial segments was allocated for the same network and physical_network
Public bug reported:
We are expected to get the same partial segment allocated for specified
network and physical_network by calling neutron.plugins.ml2.managers.TypeManager.allocate_dynamic_segment.
but there is a race condition:
1. Two processes call allocate_dynamic_segment function with specified
network and physical_network simultaneously.
2. Two processes both retrieve no allocated segment, and both allocate
a new partial segment indeed.
3. Two partial dynamic segments was allocated for the same network and
physical_network.
** Affects: neutron
Importance: Undecided
Status: New
** Tags: allocate binding hierarchical ml2 partial port race segment
** Description changed:
- We are expected to get the same partial segment allocated for specified
- network and physical_network by calling allocate_dynamic_segment.
+ We are expected to get the same partial segment allocated for specified
+ network and physical_network by calling neutron.plugins.ml2.managers.TypeManager.allocate_dynamic_segment.
- neutron.plugins.ml2.managers.TypeManager.allocate_dynamic_segment:
- https://pastebin.com/TGTpJaC8
but there is a race condition:
- 1. Two processes call allocate_dynamic_segment function with specified
- network and physical_network simultaneously.
- 2. Two processes both retrieve no allocated segment, and both allocate
- a new partial segment indeed.
- 3. Two partial dynamic segments was allocated for the same network and
- physical_network.
+ 1. Two processes call allocate_dynamic_segment function with specified
+ network and physical_network simultaneously.
+ 2. Two processes both retrieve no allocated segment, and both allocate
+ a new partial segment indeed.
+ 3. Two partial dynamic segments was allocated for the same network and
+ physical_network.
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1791233
Title:
Redundant dynamic partial segments was allocated for the same network
and physical_network
Status in neutron:
New
Bug description:
We are expected to get the same partial segment allocated for specified
network and physical_network by calling neutron.plugins.ml2.managers.TypeManager.allocate_dynamic_segment.
but there is a race condition:
1. Two processes call allocate_dynamic_segment function with specified
network and physical_network simultaneously.
2. Two processes both retrieve no allocated segment, and both allocate
a new partial segment indeed.
3. Two partial dynamic segments was allocated for the same network and
physical_network.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1791233/+subscriptions
Follow ups