neutron/neutron/agent
venkata anil 9ed693228f Call update_all_ha_network_port_statuses on agent start
As explained in bug [1] when l3 agent fails to report state to the
server, its state is set to AGENT_REVIVED, triggering
fetch_and_sync_all_routers, which will set all its HA network ports
to DOWN, resulting in
1) ovs agent rewiring these ports and setting status to ACTIVE
2) when these ports are active, server sends router update to l3 agent
As server, ovs and l3 agents are busy with this processing, l3 agent
may fail again reporting state, repeating this process.

As l3 agent is repeatedly processing same routers, SIGHUPs are
frequently sent to keepalived, resulting in multiple masters.

To fix this, we call update_all_ha_network_port_statuses in l3 agent
start instead of calling from fetch_and_sync_all_routers.

[1] https://bugs.launchpad.net/neutron/+bug/1731595/comments/7

Change-Id: Ia9d5549f7d53b538c9c9f93fe6aa71ffff15524a
Related-bug: #1597461
Closes-Bug: #1731595
2017-11-27 06:30:56 +00:00
..
common Merge "Renamed ovs_vsctl_timeout into ovsdb_timeout" 2017-11-13 09:25:20 +00:00
dhcp Merge "consume common constants from lib" 2017-10-16 19:16:01 +00:00
l2 use qos constants from neutron-lib 2017-10-26 19:57:19 +00:00
l3 Call update_all_ha_network_port_statuses on agent start 2017-11-27 06:30:56 +00:00
linux Merge "Skip IPv6 sysctl calls when IPv6 is disabled" 2017-11-23 06:30:20 +00:00
metadata Merge "Add some debug logs to metadata agent" 2017-10-17 16:33:44 +00:00
ovsdb Renamed ovs_vsctl_timeout into ovsdb_timeout 2017-11-10 14:47:29 -08:00
windows Refactoring agent linux&ovsdb config 2017-08-25 10:41:39 -04:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
agent_extension.py Generalize agent extension mechanism 2016-07-19 13:45:22 +00:00
agent_extensions_manager.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
dhcp_agent.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
firewall.py consume load_class_by_alias_or_classname from neutron-lib 2017-10-21 06:01:15 -06:00
l3_agent.py Refactoring agent linux&ovsdb config 2017-08-25 10:41:39 -04:00
metadata_agent.py Agent common config 2017-03-15 09:52:18 -06:00
resource_cache.py Merge "Check if record is stale after bulk pull" 2017-07-31 22:56:48 +00:00
rpc.py Wrong path of rpc_api.rst in class docstring 2017-10-11 23:57:06 +05:30
securitygroups_rpc.py Remove security_groups_provider_updated rpc code 2017-09-22 12:44:40 -04:00