neutron/neutron/agent/linux
LIU Yulong 5b7d444b31 Not set the HA port down at regular l3-agent restart
If l3-agent was restarted by a regular action, such as config change,
package upgrade, manually service restart etc. We should not set the
HA port down during such scenarios. Unless the physical host was
rebooted, aka the VRRP processes were all terminated.

This patch adds a new RPC call during l3 agent init, it will try to
retrieve the HA router count first. And then compare the VRRP process
(keepalived) count and 'neutron-keepalived-state-change' count
with the hosting router count. If the count matches, then that
set HA port to 'DOWN' state action will not be triggered anymore.

Closes-Bug: #1798475
Change-Id: I5e2bb64df0aaab11a640a798963372c8d91a06a8
2019-02-14 16:58:22 +08:00
..
openvswitch_firewall Reinitialize ovs firewall after ovs-vswitchd restart 2018-12-03 13:35:51 +01:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
bridge_lib.py Change to use iproute2 instead of brctl 2018-11-14 12:46:37 -05:00
daemon.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
dhcp.py Merge "Change agents to use get_devices_with_ip()" 2019-02-07 21:16:49 +00:00
dibbler.py use PROVISIONAL_IPV6_PD_PREFIX from neutron-lib 2017-11-14 12:26:43 -07:00
external_process.py Refactoring agent linux&ovsdb config 2017-08-25 10:41:39 -04:00
interface.py Change agents to use get_devices_with_ip() 2019-02-05 18:30:01 +02:00
ip_conntrack.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
ip_lib.py Merge "Switch isolated metadata proxy to bind to 169.254.169.254" 2019-02-05 13:51:37 +00:00
ip_link_support.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
ip_monitor.py Trivial: Move platform independent modules to common dir 2018-08-14 09:54:01 +03:00
ipset_manager.py use synchronized lock decorator from neutron-lib 2017-10-04 13:57:42 -06:00
iptables_comments.py Iptables firewall driver adds forward rules for trusted ports 2018-03-06 10:13:44 +01:00
iptables_firewall.py Use system protocol assigments for iptables protocol map 2018-08-08 17:01:26 -04:00
iptables_manager.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
keepalived.py Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00
l3_tc_lib.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
pd.py use PROVISIONAL_IPV6_PD_PREFIX from neutron-lib 2017-11-14 12:26:43 -07:00
pd_driver.py use PROVISIONAL_IPV6_PD_PREFIX from neutron-lib 2017-11-14 12:26:43 -07:00
ra.py Dropping radvd process privileges 2018-06-21 15:35:51 +02:00
tc_lib.py Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00
utils.py Not set the HA port down at regular l3-agent restart 2019-02-14 16:58:22 +08:00
xenapi_root_helper.py Fix all pep8 E129 errors 2018-05-03 13:44:04 +09:00