During listing router_ids on host it is possible that on some hosts
there are no L3 agents.
In such case AgentNotFoundByTypeHost exception is raised in
neutron.db.agents_db module in _get_agent_by_type_and_host() method.
Now this exception is properly handled during listing routers on host.
Reviewed: https:/ /review. openstack. org/557908 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=7b0f6330d6f 877f3d2093a64c2 bca4c14334574c
Committed: https:/
Submitter: Zuul
Branch: master
commit 7b0f6330d6f877f 3d2093a64c2bca4 c14334574c
Author: Sławek Kapłoński <email address hidden>
Date: Fri Mar 30 10:24:59 2018 +0200
Handle AgentNotFoundBy TypeHost exception properly
During listing router_ids on host it is possible that on some hosts TypeHost exception is raised in db.agents_ db module in _get_agent_ by_type_ and_host( ) method.
there are no L3 agents.
In such case AgentNotFoundBy
neutron.
Now this exception is properly handled during listing routers on host.
Change-Id: Ia5ff1b57ef63c9 8b4ada4f2d46c45 336e413be3d
Closes-Bug: #1737917