5f255bc9f9
Implements the missing configuration options and context to configure allow-automatic-l3agent-failover and allow-automatic-dhcp-failover options in neutron.conf. The options are respectively added to versions juno and kilo upwards as those are the Neutron versions since they were first supported. Change-Id: I7e465b7fef13f61f7b37135a86ac2f590c0c9be6 Closes-Bug: #1799956
119 lines
3.4 KiB
Plaintext
119 lines
3.4 KiB
Plaintext
# juno
|
|
###############################################################################
|
|
# [ WARNING ]
|
|
# Configuration file maintained by Juju. Local changes may be overwritten.
|
|
## Restart trigger {{ restart_trigger }}
|
|
###############################################################################
|
|
[DEFAULT]
|
|
verbose = {{ verbose }}
|
|
debug = {{ debug }}
|
|
use_syslog = {{ use_syslog }}
|
|
state_path = /var/lib/neutron
|
|
lock_path = $state_path/lock
|
|
bind_host = {{ bind_host }}
|
|
auth_strategy = keystone
|
|
notification_driver = messaging
|
|
api_workers = {{ workers }}
|
|
rpc_workers = {{ workers }}
|
|
|
|
router_distributed = {{ enable_dvr }}
|
|
|
|
l3_ha = {{ l3_ha }}
|
|
{% if l3_ha -%}
|
|
max_l3_agents_per_router = {{ max_l3_agents_per_router }}
|
|
min_l3_agents_per_router = {{ min_l3_agents_per_router }}
|
|
{% endif -%}
|
|
|
|
allow_automatic_l3agent_failover = {{ allow_automatic_l3agent_failover }}
|
|
|
|
{% if neutron_bind_port -%}
|
|
bind_port = {{ neutron_bind_port }}
|
|
{% else -%}
|
|
bind_port = 9696
|
|
{% endif -%}
|
|
|
|
{% if core_plugin -%}
|
|
core_plugin = {{ core_plugin }}
|
|
{% if service_plugins -%}
|
|
service_plugins = {{ service_plugins }}
|
|
{% endif -%}
|
|
{% endif -%}
|
|
|
|
{% if neutron_security_groups -%}
|
|
allow_overlapping_ips = True
|
|
{% if neutron_plugin == 'Calico' -%}
|
|
neutron_firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
|
|
{% else -%}
|
|
neutron_firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
|
|
{% endif -%}
|
|
{% endif -%}
|
|
|
|
{% if neutron_plugin == 'Calico' -%}
|
|
dhcp_agents_per_network = 1000
|
|
{% else -%}
|
|
dhcp_agents_per_network = {{ dhcp_agents_per_network }}
|
|
{% endif -%}
|
|
|
|
{% include "parts/rabbitmq" %}
|
|
|
|
notify_nova_on_port_status_changes = True
|
|
notify_nova_on_port_data_changes = True
|
|
nova_url = {{ nova_url }}
|
|
nova_region_name = {{ region }}
|
|
{% if auth_host -%}
|
|
nova_admin_username = {{ admin_user }}
|
|
nova_admin_tenant_id = {{ admin_tenant_id }}
|
|
nova_admin_password = {{ admin_password }}
|
|
nova_admin_auth_url = {{ auth_protocol }}://{{ auth_host }}:{{ auth_port }}/v2.0
|
|
{% endif -%}
|
|
|
|
{% if sections and 'DEFAULT' in sections -%}
|
|
{% for key, value in sections['DEFAULT'] -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor -%}
|
|
{% endif %}
|
|
|
|
{% if user_config_flags -%}
|
|
{% for key, value in user_config_flags.items() -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor -%}
|
|
{% endif -%}
|
|
|
|
[quotas]
|
|
{% if quota_driver -%}
|
|
quota_driver = {{ quota_driver }}
|
|
{% else -%}
|
|
quota_driver = neutron.db.quota_db.DbQuotaDriver
|
|
{% endif -%}
|
|
{% if neutron_security_groups -%}
|
|
quota_items = network,subnet,port,security_group,security_group_rule
|
|
{% endif -%}
|
|
|
|
[agent]
|
|
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
|
|
|
|
[keystone_authtoken]
|
|
signing_dir = {{ signing_dir }}
|
|
{% if service_host -%}
|
|
service_protocol = {{ service_protocol }}
|
|
service_host = {{ service_host }}
|
|
service_port = {{ service_port }}
|
|
auth_host = {{ auth_host }}
|
|
auth_port = {{ auth_port }}
|
|
auth_protocol = {{ auth_protocol }}
|
|
admin_tenant_name = {{ admin_tenant_name }}
|
|
admin_user = {{ admin_user }}
|
|
admin_password = {{ admin_password }}
|
|
{% endif -%}
|
|
|
|
{% include "parts/section-database" %}
|
|
|
|
[service_providers]
|
|
service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
|
|
service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default
|
|
{% if not neutron_plugin or neutron_plugin != 'midonet' -%}
|
|
service_provider=FIREWALL:Iptables:neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver:default
|
|
{% endif -%}
|
|
|
|
{% include "parts/section-nova" %}
|