neutron/neutron/scheduler
John Schwarz e0df5b80d2 l3scheduler: create ha_vr_id more robustly
In some cases, the creation of the ha_vr_id could have occurred twice.
For example, if a router was created with a given external_gateway then
a vr_id would be allocated twice: once from super().create_router()
(which triggers the scheduler on its own), and once from the
create_router() logic.

This patch modifies some code paths to make this allocation more robust.
For example the code that allocates a new vr_id will now also assign it
to the router in the same transaction, to make sure atomicity.

Closes-Bug: #1654032
Change-Id: I82c33aee5cfcc086f60fc74ed4d7bd7d443a3370
(cherry picked from commit 7c0e62ee2f)
2017-03-10 17:16:59 +01:00
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base_resource_filter.py Classes lack metaclass decoration 2016-05-05 13:31:15 -06:00
base_scheduler.py Classes lack metaclass decoration 2016-05-05 13:31:15 -06:00
dhcp_agent_scheduler.py DHCP Auto Scheduling for routed provider networks 2016-08-04 20:24:12 +00:00
l3_agent_scheduler.py l3scheduler: create ha_vr_id more robustly 2017-03-10 17:16:59 +01:00