e0df5b80d2
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
|
||
---|---|---|
.. | ||
__init__.py | ||
base_resource_filter.py | ||
base_scheduler.py | ||
dhcp_agent_scheduler.py | ||
l3_agent_scheduler.py |