neutron/neutron/tests/unit/agent
venkata anil 3e1ed94e38 Avoid router ri.process if initialize() fails
When router_info initialize() fails(with trace) some resources(
like keepalived process) may not be created. While handling this
exception, l3 agent calls _process_updated_router instead of
again calling _process_added_router, which also fails trying to
access resources which are not created.

In this change, agent will have new router_info(i.e
self.router_info[router_id] = ri) only when initialize() succeeds.
When initialize() fails, as router_info is not part of agent,
"_process_router_if_compatible" will again call initialize().
We also cleanup router_info when initialize() fails.

Closes-bug: #1662804
Change-Id: I278ac83de57713c93d6e50846d79034d774c5d47
2017-03-28 06:42:32 +00:00
..
common Agent common config 2017-03-15 09:52:18 -06:00
dhcp Agent common config 2017-03-15 09:52:18 -06:00
l2 Spin off context module 2017-03-06 16:25:29 +00:00
l3 Avoid router ri.process if initialize() fails 2017-03-28 06:42:32 +00:00
linux Merge "Don't return null-byte separated string from ExternalProcess.cmdline()" 2017-03-20 23:41:08 +00:00
metadata Merge "Don't add duplicate metadata rules after router update" 2017-03-21 13:51:07 +00:00
ovsdb Move ovsdb_nested transaction to ovs_lib 2017-02-02 18:56:03 +00:00
windows Add IPLink class to Windows ip_lib implementation 2017-01-17 17:39:38 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agent_extensions_manager.py Refactoring config options for l2 agent ext opts 2016-11-21 19:45:04 +00:00
test_rpc.py Remove fallback functions in agent/rpc 2016-12-06 15:51:16 +01:00
test_securitygroups_rpc.py Spin off context module 2017-03-06 16:25:29 +00:00