From bcb2da2ba2a0f0b9a4f37819c614ee2aa4d18ace Mon Sep 17 00:00:00 2001 From: liyingjun Date: Mon, 19 Jun 2017 22:04:35 -0400 Subject: [PATCH] Add option ha_vrrp_health_check_interval for l3 option 'ha_vrrp_health_check_interval' is needed to fix split-brain in HA router[1][2], we should add this to l3_agent.ini. [1] https://bugs.launchpad.net/neutron/+bug/1365461 [2] https://bugs.launchpad.net/neutron/+bug/1375625 [3] https://docs.openstack.org/ocata/networking-guide/deploy-ovs-ha-vrrp.html#keepalived-vrrp-health-check Change-Id: I3f38f09068c17e3ed790611ffe5e445d14318cd1 Closes-bug: #1698992 --- ansible/roles/neutron/templates/l3_agent.ini.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/neutron/templates/l3_agent.ini.j2 b/ansible/roles/neutron/templates/l3_agent.ini.j2 index 1c89d75150..8b98a5744f 100644 --- a/ansible/roles/neutron/templates/l3_agent.ini.j2 +++ b/ansible/roles/neutron/templates/l3_agent.ini.j2 @@ -9,6 +9,9 @@ agent_mode = dvr {% else %} agent_mode = legacy {% endif %} +{% if enable_neutron_agent_ha | bool %} +ha_vrrp_health_check_interval = 5 +{% endif %} {% if enable_neutron_fwaas | bool %} [fwaas] driver = neutron_fwaas.services.firewall.drivers.linux.iptables_fwaas.IptablesFwaasDriver