commit 3c1a25d9683263505b00cb0d6b04add1831f0ca0
Author: Kevin Benton <email address hidden>
Date: Thu Jun 8 14:56:19 2017 -0700
Make HA deletion attempt on RouterNotFound race
The L3 HA RPC code that creates HA interfaces can race
with an HA router deletion on the server side. The L3 HA
code ends up creating a port on the HA network while the
server side is deleting the router and the HA network.
This stops the L3 HA network from being deleted because
it has a new port without a bound segment, which leaves the
HA network in a segmentless condition and no ports after
the L3 RPC code cleans up its port.
This adjusts the L3 RPC logic to attempt an HA network cleanup
whenever it encounters the concurrent router deletion case
to ensure that the HA network gets cleaned up.
To make this more robust in the future, we may need the L3
HA code to recognize when an HA network has no segments and
automatically create a new one.
Reviewed: https:/ /review. openstack. org/472454 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=3c1a25d9683 263505b00cb0d6b 04add1831f0ca0
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3c1a25d96832635 05b00cb0d6b04ad d1831f0ca0
Author: Kevin Benton <email address hidden>
Date: Thu Jun 8 14:56:19 2017 -0700
Make HA deletion attempt on RouterNotFound race
The L3 HA RPC code that creates HA interfaces can race
with an HA router deletion on the server side. The L3 HA
code ends up creating a port on the HA network while the
server side is deleting the router and the HA network.
This stops the L3 HA network from being deleted because
it has a new port without a bound segment, which leaves the
HA network in a segmentless condition and no ports after
the L3 RPC code cleans up its port.
This adjusts the L3 RPC logic to attempt an HA network cleanup
whenever it encounters the concurrent router deletion case
to ensure that the HA network gets cleaned up.
To make this more robust in the future, we may need the L3
HA code to recognize when an HA network has no segments and
automatically create a new one.
Change-Id: Idd301f6df92e9b c37187e8ed8ec00 004e67da928
Closes-Bug: #1696537