neutron/neutron/tests
Daniel Gonzalez 8c2dae659a Fix l3-agent crash on routers without ha_state
l3-agent checks the HA state of routers when a router is updated.
To ensure that the HA state is only checked on HA routers the following
check is performed: `if router.get('ha') and not is_dvr_only_agent`.
This check should ensure that the check is only performed on
DvrEdgeHaRouter and HaRouter objects.

Unfortunately, there are cases where we have DvrEdgeRouter objects
running on 'dvr_snat' agents. E.g. when deploying a loadbalancer with
neutron-lbaas in a landscape with 6 network nodes and
max_l3_agents_per_router set to 3, it may happen that the loadbalancer
is placed on a network node that does not have a DvrEdgeHaRouter running
on it. In such a case, neutron will deploy a DvrEdgeRouter object on the
network node to serve the loadbalancer, just like it would deploy a
DvrEdgeRouter on a compute node when deploying a VM.

Under such circumstances each update to the router will lead to an
AttributeError, because the DvrEdgeRouter object does not have the
ha_state attribute.

This patch circumvents the issue by doing an additional check on the
router object to ensure that it actually has the ha_state attribute.

Change-Id: I755990324db445efd0ee0b8a9db1f4d7bfb58e26
Closes-Bug: #1755243
2018-03-23 12:57:01 +01:00
..
common use EGRESS_DIRECTION and INGRESS_DIRECTION from neutron-lib 2018-02-23 10:36:36 -07:00
contrib Merge "Revert "remove tag and tag_ext extensions"" 2018-02-15 05:53:46 +00:00
etc Allow port create/update by shared nw owners 2017-12-12 04:12:54 +00:00
fullstack Merge "[Fullstack] Limit number of Neutron's api workers" 2018-02-20 17:26:03 +00:00
functional Fix l3-agent crash on routers without ha_state 2018-03-23 12:57:01 +01:00
tempest Remove the bundled intree neutron tempest plugin 2017-11-22 12:54:33 -08:00
unit Fix l3-agent crash on routers without ha_state 2018-03-23 12:57:01 +01:00
var
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Merge "tests: Add decorator to mark unstable tests" 2017-11-14 22:20:22 +00:00
fake_notifier.py FakeNotifier class 'topic' argument change to 'topics'. 2017-12-04 20:10:03 +01:00
post_mortem_debug.py
tools.py Router to OVO 2017-11-24 04:11:33 +00:00