This bug has been discussed during the Neutron drivers meeting, along with LP#2016197.
The proposal to fix LP#2016198 is to limit the creation of the "L3HARouterNetwork" DB resource [1][2]. The HA network is created per project. Only one network should be created at once. If we limit in the DB engine the number of "L3HARouterNetwork" per project, by making the "project_id" unique, we'll prevent the race condition.
This bug has been discussed during the Neutron drivers meeting, along with LP#2016197.
The proposal to fix LP#2016198 is to limit the creation of the "L3HARouterNetwork" DB resource [1][2]. The HA network is created per project. Only one network should be created at once. If we limit in the DB engine the number of "L3HARouterNetwork" per project, by making the "project_id" unique, we'll prevent the race condition.
[1]https:/ /github. com/openstack/ neutron/ blob/47d070c71e 795e41e698cdb27 8d99dcfb3448bde /neutron/ objects/ l3_hamode. py#L58 /github. com/openstack/ neutron/ blob/master/ neutron/ db/models/ l3ha.py# L62
[2]https:/