Update git submodules
* Update neutron from branch 'master'
to 87f8d2ccfda652085389b374ce26ee02e6f4bf1c
- Merge "Fix ``LogicalRouterPortEvent`` when a LR is deleted"
- Fix ``LogicalRouterPortEvent`` when a LR is deleted
If a ``Logical_Router`` is deleted, the only ``Logical_Router_Ports``
that could be present are the gateway ports. The
``Logical_Router_Ports`` deletion will trigger a
``LogicalRouterPortEvent`` event. In that case, no action is needed;
it is needed to check if the ``Logical_Router`` still exists and
exit if not.
The same is happening when ``update_router_ha_chassis_group`` and
``link_network_ha_chassis_group`` are called from the ``run`` method.
If the ``Logical_Router`` has been deleted, the methods need to fast
exit.
NOTE: the test ``TestLogicalRouterPortEvent.test_delete_router`` was
actually testing the router deletion and the ``LogicalRouterPortEvent``
event call. This call was generating an exception when trying to
retrieve the ``Logical_Router`` that was actually deleted. Because
the processing of the event is done in a separate thread and nothing
was expected to be called, the test was passing. Now this patch is
removing the exception by carefully checking if the router is present
or not.
This bug was introduced in [1].
[1]https://review.opendev.org/c/openstack/neutron/+/962155/
Closes-Bug: #2138468
Signed-off-by: Rodolfo Alonso Hernandez <[email protected]>
Change-Id: Idc54d1b307fa88a4113228a63049f5fc7ddaa7cb
This commit is contained in: