kolla-ansible/ansible/roles/neutron/templates/l3_agent.ini.j2
liyingjun bcb2da2ba2 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
2017-06-20 04:53:22 -04:00

27 lines
631 B
Django/Jinja

#jinja2: trim_blocks: False
[DEFAULT]
{% if enable_neutron_dvr | bool %}
{% if inventory_hostname in groups['network'] %}
agent_mode = dvr_snat
{% elif inventory_hostname in groups['compute'] %}
agent_mode = dvr
{% endif %}
{% 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
enabled = True
[agent]
extensions = fwaas
{% endif %}
[ovs]
ovsdb_interface = native
ovsdb_connection = tcp:{{ api_interface_address }}:6640