a155e9cf11
Neutron uses an AZ-unaware scheduler (LeastRoutersScheduler) by default in its configuration and the neutron-api charm does not override it. AZLeastRoutersScheduler inherits from LeastRoutersScheduler and does the same, plus respects AZ hints when scheduling HA routers. For --distributed --ha routers using AZLeastRoutersScheduler means that snat namespaces will be scheduled with respect to the AZ hints specified during router creation by an operator. For --ha but not distributed routers using AZLeastRoutersScheduler means that qrouter namespaces will be scheduled with respect to the AZ hints. snat namespaces (--ha & --distributed) and qrouter namespaces (--ha only) are placed by the scheduler to l3 agents that run in the dvr_snat mode only so the scheduler change will affect both the deployments with neutron-gateway units and the ones with neutron-openvswitch running with use-dvr-snat=True. Change-Id: I98cd67ff0cf5418a9699acc7aff96c3edb9b2341 Closes-Bug: #1886195
144 lines
3.7 KiB
Plaintext
144 lines
3.7 KiB
Plaintext
# newton
|
|
###############################################################################
|
|
# [ 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
|
|
bind_host = {{ bind_host }}
|
|
auth_strategy = keystone
|
|
api_workers = {{ workers }}
|
|
rpc_workers = {{ workers }}
|
|
|
|
{% if transport_url %}
|
|
transport_url = {{ transport_url }}
|
|
{% endif %}
|
|
|
|
router_distributed = {{ enable_dvr }}
|
|
|
|
{% if dns_domain -%}
|
|
dns_domain = {{ dns_domain }}
|
|
{% endif -%}
|
|
|
|
l3_ha = {{ l3_ha }}
|
|
{% if l3_ha -%}
|
|
max_l3_agents_per_router = {{ max_l3_agents_per_router }}
|
|
{% endif -%}
|
|
|
|
allow_automatic_l3agent_failover = {{ allow_automatic_l3agent_failover }}
|
|
allow_automatic_dhcp_failover = {{ allow_automatic_dhcp_failover }}
|
|
{% if network_scheduler_driver -%}
|
|
network_scheduler_driver = {{ network_scheduler_driver }}
|
|
dhcp_load_type = {{ dhcp_load_type }}
|
|
{% endif -%}
|
|
{% if router_scheduler_driver -%}
|
|
router_scheduler_driver = {{ router_scheduler_driver }}
|
|
{% endif -%}
|
|
|
|
{% 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
|
|
{% endif -%}
|
|
|
|
dhcp_agents_per_network = {{ dhcp_agents_per_network }}
|
|
|
|
notify_nova_on_port_status_changes = True
|
|
notify_nova_on_port_data_changes = True
|
|
|
|
{% 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 -%}
|
|
|
|
{% if global_physnet_mtu -%}
|
|
global_physnet_mtu = {{ global_physnet_mtu }}
|
|
{% endif -%}
|
|
|
|
{% if enable_designate -%}
|
|
external_dns_driver = designate
|
|
{% endif -%}
|
|
|
|
{% if enable_infoblox -%}
|
|
ipam_driver = infoblox
|
|
{% endif -%}
|
|
|
|
{% include "parts/section-placement" %}
|
|
|
|
{% include "section-zeromq" %}
|
|
|
|
[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
|
|
quota_security_group = {{ quota_security_group }}
|
|
quota_security_group_rule = {{ quota_security_group_rule }}
|
|
{% else -%}
|
|
quota_items = network,subnet,port
|
|
{% endif -%}
|
|
quota_network = {{ quota_network }}
|
|
quota_subnet = {{ quota_subnet }}
|
|
quota_port = {{ quota_port }}
|
|
quota_vip = {{ quota_vip }}
|
|
quota_pool = {{ quota_pool }}
|
|
quota_member = {{ quota_member }}
|
|
quota_health_monitors = {{ quota_health_monitors }}
|
|
quota_router = {{ quota_router }}
|
|
quota_floatingip = {{ quota_floatingip }}
|
|
|
|
[agent]
|
|
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
|
|
|
|
{% include "section-keystone-authtoken-mitaka" %}
|
|
|
|
{% include "parts/section-database" %}
|
|
|
|
{% include "section-oslo-messaging-rabbit-ocata" %}
|
|
|
|
{% include "section-oslo-notifications" %}
|
|
|
|
[oslo_concurrency]
|
|
lock_path = $state_path/lock
|
|
|
|
{% include "parts/section-nova" %}
|
|
|
|
{% if enable_designate -%}
|
|
{% include "parts/section-designate" %}
|
|
{% endif -%}
|
|
|
|
{% if enable_infoblox -%}
|
|
{% include "parts/section-infoblox" %}
|
|
{% endif -%}
|
|
|
|
[service_providers]
|
|
service_provider = LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
|
|
service_provider = VPN:strongswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default
|
|
|
|
{% include "section-oslo-middleware" %}
|