blob: 87ba2b17c4615e26e7867879c9ab55f67fa0abca [file] [log] [blame]
Jakub Pavlik21f60ae2016-04-13 11:07:53 +02001{%- from "neutron/map.jinja" import server with context %}
2[DEFAULT]
3
4#
5# From neutron
6#
7
8# Where to store Neutron state files. This directory must be writable by the
9# agent. (string value)
10#state_path = /var/lib/neutron
11state_path = /var/lib/neutron
12
13# The host IP to bind to (string value)
14#bind_host = 0.0.0.0
15bind_host = {{ server.bind.address }}
16
17# The port to bind to (port value)
18# Minimum value: 0
19# Maximum value: 65535
20#bind_port = 9696
21bind_port = {{ server.bind.port }}
22
23# The path for API extensions. Note that this can be a colon-separated list of
24# paths. For example: api_extensions_path =
25# extensions:/path/to/more/exts:/even/more/exts. The __path__ of
26# neutron.extensions is appended to this, so if your extensions are in there
27# you don't need to specify them here. (string value)
Jiri Broulik74f61112016-11-21 20:23:47 +010028
29{% if server.backend.engine == "contrail" %}
30
Petr Jediný1f37f542017-05-15 15:15:24 +020031api_extensions_path = extensions:/usr/lib/python2.7/dist-packages/neutron_plugin_contrail/extensions:/usr/lib/python2.7/dist-packages/neutron_lbaas/extensions
Jiri Broulik74f61112016-11-21 20:23:47 +010032# The core plugin Neutron will use (string value)
33core_plugin = neutron_plugin_contrail.plugins.opencontrail.contrail_plugin.NeutronPluginContrailCoreV2
34
Petr Jediný1f37f542017-05-15 15:15:24 +020035service_plugins = neutron_plugin_contrail.plugins.opencontrail.loadbalancer.v2.plugin.LoadBalancerPluginV2
Jiri Broulik74f61112016-11-21 20:23:47 +010036{% elif server.backend.engine == "ml2" %}
37
38core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
39
Ondrej Smola314eee22017-03-08 21:21:16 +010040service_plugins =neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,neutron.services.metering.metering_plugin.MeteringPlugin{%- if server.lbaas is defined -%}
41,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
42{%- endif -%}
Jiri Broulik74f61112016-11-21 20:23:47 +010043
44{% endif %}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +020045
46# The type of authentication to use (string value)
47#auth_strategy = keystone
48auth_strategy = keystone
49
Jakub Pavlik21f60ae2016-04-13 11:07:53 +020050# The service plugins Neutron will use (list value)
Jakub Pavlik21f60ae2016-04-13 11:07:53 +020051# The base MAC address Neutron will use for VIFs. The first 3 octets will
52# remain unchanged. If the 4th octet is not 00, it will also be used. The
53# others will be randomly generated. (string value)
54#base_mac = fa:16:3e:00:00:00
55
56# How many times Neutron will retry MAC generation (integer value)
57#mac_generation_retries = 16
Jiri Broulik74f61112016-11-21 20:23:47 +010058mac_generation_retries = 32
Jakub Pavlik21f60ae2016-04-13 11:07:53 +020059
60# Allow the usage of the bulk API (boolean value)
61#allow_bulk = true
62
63# Allow the usage of the pagination (boolean value)
Swann Croiset9407daf2017-02-02 15:27:56 +010064{% if server.get('allow_pagination', false) %}
65allow_pagination = True
66{% else %}
67allow_pagination = False
68{% endif %}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +020069
70# Allow the usage of the sorting (boolean value)
71#allow_sorting = false
72
73# The maximum number of items returned in a single response, value was
74# 'infinite' or negative integer means no limit (string value)
Swann Croiset9407daf2017-02-02 15:27:56 +010075pagination_max_limit = {{ server.pagination_max_limit|default('-1') }}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +020076
77# Default value of availability zone hints. The availability zone aware
78# schedulers use this when the resources availability_zone_hints is empty.
79# Multiple availability zones can be specified by a comma separated string.
80# This value can be empty. In this case, even if availability_zone_hints for a
81# resource is empty, availability zone is considered for high availability
82# while scheduling the resource. (list value)
83#default_availability_zones =
84
85# Maximum number of DNS nameservers per subnet (integer value)
86#max_dns_nameservers = 5
87
88# Maximum number of host routes per subnet (integer value)
89#max_subnet_host_routes = 20
90
91# Maximum number of fixed ips per port. This option is deprecated and will be
92# removed in the N release. (integer value)
93# This option is deprecated for removal.
94# Its value may be silently ignored in the future.
95#max_fixed_ips_per_port = 5
96
97# Default IPv4 subnet pool to be used for automatic subnet CIDR allocation.
98# Specifies by UUID the pool to be used in case where creation of a subnet is
99# being called without a subnet pool ID. If not set then no pool will be used
100# unless passed explicitly to the subnet create. If no pool is used, then a
101# CIDR must be passed to create a subnet and that subnet will not be allocated
102# from any pool; it will be considered part of the tenant's private address
103# space. This option is deprecated for removal in the N release. (string value)
104# This option is deprecated for removal.
105# Its value may be silently ignored in the future.
106#default_ipv4_subnet_pool = <None>
107
108# Default IPv6 subnet pool to be used for automatic subnet CIDR allocation.
109# Specifies by UUID the pool to be used in case where creation of a subnet is
110# being called without a subnet pool ID. See the description for
111# default_ipv4_subnet_pool for more information. This option is deprecated for
112# removal in the N release. (string value)
113# This option is deprecated for removal.
114# Its value may be silently ignored in the future.
115#default_ipv6_subnet_pool = <None>
116
117# Enables IPv6 Prefix Delegation for automatic subnet CIDR allocation. Set to
118# True to enable IPv6 Prefix Delegation for subnet allocation in a PD-capable
119# environment. Users making subnet creation requests for IPv6 subnets without
120# providing a CIDR or subnetpool ID will be given a CIDR via the Prefix
121# Delegation mechanism. Note that enabling PD will override the behavior of the
122# default IPv6 subnetpool. (boolean value)
123#ipv6_pd_enabled = false
124
125# DHCP lease duration (in seconds). Use -1 to tell dnsmasq to use infinite
126# lease times. (integer value)
127# Deprecated group/name - [DEFAULT]/dhcp_lease_time
128#dhcp_lease_duration = 86400
Jiri Broulik74f61112016-11-21 20:23:47 +0100129dhcp_lease_duration = 600
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200130
131# Domain to use for building the hostnames (string value)
132#dns_domain = openstacklocal
133dns_domain = {{ server.dns_domain }}
134
135# Driver for external DNS integration. (string value)
136#external_dns_driver = <None>
137
138# Allow sending resource operation notification to DHCP agent (boolean value)
139#dhcp_agent_notification = true
140
141# Allow overlapping IP support in Neutron. Attention: the following parameter
142# MUST be set to False if Neutron is being used in conjunction with Nova
143# security groups. (boolean value)
144#allow_overlapping_ips = false
145allow_overlapping_ips = True
146
147# Hostname to be used by the Neutron server, agents and services running on
148# this machine. All the agents and services running on this machine must use
149# the same host value. (string value)
150#host = example.domain
151
152# Ensure that configured gateway is on subnet. For IPv6, validate only if
153# gateway is not a link local address. Deprecated, to be removed during the
154# Newton release, at which point the gateway will not be forced on to subnet.
155# (boolean value)
156# This option is deprecated for removal.
157# Its value may be silently ignored in the future.
158#force_gateway_on_subnet = true
159
160# Send notification to nova when port status changes (boolean value)
161#notify_nova_on_port_status_changes = true
162notify_nova_on_port_status_changes = True
163
164# Send notification to nova when port data (fixed_ips/floatingip) changes so
165# nova can update its cache. (boolean value)
166#notify_nova_on_port_data_changes = true
Jakub Pavlik85ae6882016-10-19 15:10:20 +0200167notify_nova_on_port_data_changes = True
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200168
169# Number of seconds between sending events to nova if there are any events to
170# send. (integer value)
171#send_events_interval = 2
172
173# If True, advertise network MTU values if core plugin calculates them. MTU is
174# advertised to running instances via DHCP and RA MTU options. (boolean value)
175#advertise_mtu = true
Jiri Broulik74f61112016-11-21 20:23:47 +0100176advertise_mtu = True
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200177
178# Neutron IPAM (IP address management) driver to use. If ipam_driver is not set
179# (default behavior), no IPAM driver is used. In order to use the reference
180# implementation of Neutron IPAM driver, use 'internal'. (string value)
181#ipam_driver = <None>
182
183# If True, then allow plugins that support it to create VLAN transparent
184# networks. (boolean value)
185#vlan_transparent = false
186
187# This will choose the web framework in which to run the Neutron API server.
188# 'pecan' is a new experiemental rewrite of the API server. (string value)
189# Allowed values: legacy, pecan
190#web_framework = legacy
191
192# MTU of the underlying physical network. Neutron uses this value to calculate
193# MTU for all virtual network components. For flat and VLAN networks, neutron
194# uses this value without modification. For overlay networks such as VXLAN,
195# neutron automatically subtracts the overlay protocol overhead from this
196# value. Defaults to 1500, the standard value for Ethernet. (integer value)
197# Deprecated group/name - [ml2]/segment_mtu
198#global_physnet_mtu = 1500
Jiri Broulik74f61112016-11-21 20:23:47 +0100199global_physnet_mtu = {{ server.get('global_physnet_mtu', '1500') }}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200200
201# Number of backlog requests to configure the socket with (integer value)
202#backlog = 4096
203
204# Number of seconds to keep retrying to listen (integer value)
205#retry_until_window = 30
206
207# Enable SSL on the API server (boolean value)
208#use_ssl = false
209
210# Seconds between running periodic tasks (integer value)
211#periodic_interval = 40
212
213# Number of separate API worker processes for service. If not specified, the
214# default is equal to the number of CPUs available for best performance.
215# (integer value)
216#api_workers = <None>
217
218# Number of RPC worker processes for service (integer value)
219#rpc_workers = 1
220
221# Number of RPC worker processes dedicated to state reports queue (integer
222# value)
223#rpc_state_report_workers = 1
224
225# Range of seconds to randomly delay when starting the periodic task scheduler
226# to reduce stampeding. (Disable by setting to 0) (integer value)
227#periodic_fuzzy_delay = 5
228
229#
230# From neutron.agent
231#
232
233# The driver used to manage the virtual interface. (string value)
234#interface_driver = <None>
235
236# Location for Metadata Proxy UNIX domain socket. (string value)
237#metadata_proxy_socket = $state_path/metadata_proxy
238
239# User (uid or name) running metadata proxy after its initialization (if empty:
240# agent effective user). (string value)
241#metadata_proxy_user =
242
243# Group (gid or name) running metadata proxy after its initialization (if
244# empty: agent effective group). (string value)
245#metadata_proxy_group =
246
247# Enable/Disable log watch by metadata proxy. It should be disabled when
248# metadata_proxy_user/group is not allowed to read/write its log file and
249# copytruncate logrotate option must be used if logrotate is enabled on
250# metadata proxy log files. Option default value is deduced from
251# metadata_proxy_user: watch log is enabled if metadata_proxy_user is agent
252# effective user id/name. (boolean value)
253#metadata_proxy_watch_log = <None>
254
255#
256# From neutron.db
257#
258
259# Seconds to regard the agent is down; should be at least twice
260# report_interval, to be sure the agent is down for good. (integer value)
261#agent_down_time = 75
Jiri Broulik74f61112016-11-21 20:23:47 +0100262agent_down_time = 30
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200263
264# Representing the resource type whose load is being reported by the agent.
265# This can be "networks", "subnets" or "ports". When specified (Default is
266# networks), the server will extract particular load sent as part of its agent
267# configuration object from the agent report state, which is the number of
268# resources being consumed, at every report_interval.dhcp_load_type can be used
269# in combination with network_scheduler_driver =
270# neutron.scheduler.dhcp_agent_scheduler.WeightScheduler When the
271# network_scheduler_driver is WeightScheduler, dhcp_load_type can be configured
272# to represent the choice for the resource being balanced. Example:
273# dhcp_load_type=networks (string value)
274# Allowed values: networks, subnets, ports
275#dhcp_load_type = networks
276
277# Agent starts with admin_state_up=False when enable_new_agents=False. In the
278# case, user's resources will not be scheduled automatically to the agent until
279# admin changes admin_state_up to True. (boolean value)
280#enable_new_agents = true
281
282# Maximum number of routes per router (integer value)
283#max_routes = 30
284
285# Define the default value of enable_snat if not provided in
286# external_gateway_info. (boolean value)
287#enable_snat_by_default = true
288
289# Driver to use for scheduling network to DHCP agent (string value)
290#network_scheduler_driver = neutron.scheduler.dhcp_agent_scheduler.WeightScheduler
291
292# Allow auto scheduling networks to DHCP agent. (boolean value)
293#network_auto_schedule = true
294
295# Automatically remove networks from offline DHCP agents. (boolean value)
296#allow_automatic_dhcp_failover = true
297
298# Number of DHCP agents scheduled to host a tenant network. If this number is
299# greater than 1, the scheduler automatically assigns multiple DHCP agents for
300# a given tenant network, providing high availability for DHCP service.
301# (integer value)
302#dhcp_agents_per_network = 1
Jiri Broulik74f61112016-11-21 20:23:47 +0100303dhcp_agents_per_network = 2
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200304
305# Enable services on an agent with admin_state_up False. If this option is
306# False, when admin_state_up of an agent is turned False, services on it will
307# be disabled. Agents with admin_state_up False are not selected for automatic
308# scheduling regardless of this option. But manual scheduling to such agents is
309# available if this option is True. (boolean value)
310#enable_services_on_agents_with_admin_state_down = false
311
312# The base mac address used for unique DVR instances by Neutron. The first 3
313# octets will remain unchanged. If the 4th octet is not 00, it will also be
314# used. The others will be randomly generated. The 'dvr_base_mac' *must* be
315# different from 'base_mac' to avoid mixing them up with MAC's allocated for
316# tenant ports. A 4 octet example would be dvr_base_mac = fa:16:3f:4f:00:00.
317# The default is 3 octet (string value)
318#dvr_base_mac = fa:16:3f:00:00:00
319
320# System-wide flag to determine the type of router that tenants can create.
321# Only admin can override. (boolean value)
322#router_distributed = false
Jiri Broulik74f61112016-11-21 20:23:47 +0100323router_distributed = {{ server.get('dvr', 'False') }}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200324
325# Driver to use for scheduling router to a default L3 agent (string value)
326#router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.LeastRoutersScheduler
Jiri Broulik74f61112016-11-21 20:23:47 +0100327router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceScheduler
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200328
329# Allow auto scheduling of routers to L3 agent. (boolean value)
330#router_auto_schedule = true
331
332# Automatically reschedule routers from offline L3 agents to online L3 agents.
333# (boolean value)
334#allow_automatic_l3agent_failover = false
335
336# Enable HA mode for virtual routers. (boolean value)
337#l3_ha = false
Jiri Broulik74f61112016-11-21 20:23:47 +0100338l3_ha = {{ server.get('l3_ha', 'False') }}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200339
340# Maximum number of L3 agents which a HA router will be scheduled on. If it is
341# set to 0 then the router will be scheduled on every agent. (integer value)
342#max_l3_agents_per_router = 3
343
344# Minimum number of L3 agents which a HA router will be scheduled on. If it is
345# set to 0 then the router will be scheduled on every agent. (integer value)
346#min_l3_agents_per_router = 2
347
348# Subnet used for the l3 HA admin network. (string value)
349#l3_ha_net_cidr = 169.254.192.0/18
350
351# The network type to use when creating the HA network for an HA router. By
352# default or if empty, the first 'tenant_network_types' is used. This is
353# helpful when the VRRP traffic should use a specific network which is not the
354# default one. (string value)
355#l3_ha_network_type =
356
357# The physical network name with which the HA network can be created. (string
358# value)
359#l3_ha_network_physical_name =
360
361#
362# From neutron.extensions
363#
364
365# Maximum number of allowed address pairs (integer value)
366#max_allowed_address_pair = 10
367
368#
369# From neutron.qos
370#
371
372# Drivers list to use to send the update notification (list value)
373#notification_drivers = m,e,s,s,a,g,e,_,q,u,e,u,e
374
375#
376# From oslo.log
377#
378
379# If set to true, the logging level will be set to DEBUG instead of the default
380# INFO level. (boolean value)
381#debug = false
382
383# If set to false, the logging level will be set to WARNING instead of the
384# default INFO level. (boolean value)
385# This option is deprecated for removal.
386# Its value may be silently ignored in the future.
387#verbose = true
388verbose = true
389
390# The name of a logging configuration file. This file is appended to any
391# existing logging configuration files. For details about logging configuration
392# files, see the Python logging module documentation. Note that when logging
393# configuration files are used then all logging configuration is set in the
394# configuration file and other logging configuration options are ignored (for
395# example, logging_context_format_string). (string value)
396# Deprecated group/name - [DEFAULT]/log_config
397#log_config_append = <None>
398
399# Defines the format string for %%(asctime)s in log records. Default:
400# %(default)s . This option is ignored if log_config_append is set. (string
401# value)
402#log_date_format = %Y-%m-%d %H:%M:%S
403
404# (Optional) Name of log file to send logging output to. If no default is set,
405# logging will go to stderr as defined by use_stderr. This option is ignored if
406# log_config_append is set. (string value)
407# Deprecated group/name - [DEFAULT]/logfile
408#log_file = <None>
409
410# (Optional) The base directory used for relative log_file paths. This option
411# is ignored if log_config_append is set. (string value)
412# Deprecated group/name - [DEFAULT]/logdir
413#log_dir = <None>
414
415# Uses logging handler designed to watch file system. When log file is moved or
416# removed this handler will open a new log file with specified path
417# instantaneously. It makes sense only if log_file option is specified and
418# Linux platform is used. This option is ignored if log_config_append is set.
419# (boolean value)
420#watch_log_file = false
421
422# Use syslog for logging. Existing syslog format is DEPRECATED and will be
423# changed later to honor RFC5424. This option is ignored if log_config_append
424# is set. (boolean value)
425#use_syslog = false
426
427# Syslog facility to receive log lines. This option is ignored if
428# log_config_append is set. (string value)
429#syslog_log_facility = LOG_USER
430
431# Log output to standard error. This option is ignored if log_config_append is
432# set. (boolean value)
433#use_stderr = true
434
435# Format string to use for log messages with context. (string value)
436#logging_context_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s
437
438# Format string to use for log messages when context is undefined. (string
439# value)
440#logging_default_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s
441
442# Additional data to append to log message when logging level for the message
443# is DEBUG. (string value)
444#logging_debug_format_suffix = %(funcName)s %(pathname)s:%(lineno)d
445
446# Prefix each line of exception output with this format. (string value)
447#logging_exception_prefix = %(asctime)s.%(msecs)03d %(process)d ERROR %(name)s %(instance)s
448
449# Defines the format string for %(user_identity)s that is used in
450# logging_context_format_string. (string value)
451#logging_user_identity_format = %(user)s %(tenant)s %(domain)s %(user_domain)s %(project_domain)s
452
453# List of package logging levels in logger=LEVEL pairs. This option is ignored
454# if log_config_append is set. (list value)
455#default_log_levels = amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN,suds=INFO,oslo.messaging=INFO,iso8601=WARN,requests.packages.urllib3.connectionpool=WARN,urllib3.connectionpool=WARN,websocket=WARN,requests.packages.urllib3.util.retry=WARN,urllib3.util.retry=WARN,keystonemiddleware=WARN,routes.middleware=WARN,stevedore=WARN,taskflow=WARN,keystoneauth=WARN,oslo.cache=INFO,dogpile.core.dogpile=INFO
456
457# Enables or disables publication of error events. (boolean value)
458#publish_errors = false
459
460# The format for an instance that is passed with the log message. (string
461# value)
462#instance_format = "[instance: %(uuid)s] "
463
464# The format for an instance UUID that is passed with the log message. (string
465# value)
466#instance_uuid_format = "[instance: %(uuid)s] "
467
468# Enables or disables fatal status of deprecations. (boolean value)
469#fatal_deprecations = false
470
471#
472# From oslo.messaging
473#
474
475# Size of RPC connection pool. (integer value)
476# Deprecated group/name - [DEFAULT]/rpc_conn_pool_size
477#rpc_conn_pool_size = 30
478
479# ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.
480# The "host" option should point or resolve to this address. (string value)
481#rpc_zmq_bind_address = *
482
483# MatchMaker driver. (string value)
484# Allowed values: redis, dummy
485#rpc_zmq_matchmaker = redis
486
487# Type of concurrency used. Either "native" or "eventlet" (string value)
488#rpc_zmq_concurrency = eventlet
489
490# Number of ZeroMQ contexts, defaults to 1. (integer value)
491#rpc_zmq_contexts = 1
492
493# Maximum number of ingress messages to locally buffer per topic. Default is
494# unlimited. (integer value)
495#rpc_zmq_topic_backlog = <None>
496
497# Directory for holding IPC sockets. (string value)
498#rpc_zmq_ipc_dir = /var/run/openstack
499
500# Name of this node. Must be a valid hostname, FQDN, or IP address. Must match
501# "host" option, if running Nova. (string value)
502#rpc_zmq_host = localhost
503
504# Seconds to wait before a cast expires (TTL). The default value of -1
505# specifies an infinite linger period. The value of 0 specifies no linger
506# period. Pending messages shall be discarded immediately when the socket is
507# closed. Only supported by impl_zmq. (integer value)
508#rpc_cast_timeout = -1
509rpc_cast_timeout=30
510
511# The default number of seconds that poll should wait. Poll raises timeout
512# exception when timeout expired. (integer value)
513#rpc_poll_timeout = 1
514
515# Expiration timeout in seconds of a name service record about existing target
516# ( < 0 means no timeout). (integer value)
517#zmq_target_expire = 120
518
519# Use PUB/SUB pattern for fanout methods. PUB/SUB always uses proxy. (boolean
520# value)
521#use_pub_sub = true
522
523# Minimal port number for random ports range. (port value)
524# Minimum value: 0
525# Maximum value: 65535
526#rpc_zmq_min_port = 49152
527
528# Maximal port number for random ports range. (integer value)
529# Minimum value: 1
530# Maximum value: 65536
531#rpc_zmq_max_port = 65536
532
533# Number of retries to find free port number before fail with ZMQBindError.
534# (integer value)
535#rpc_zmq_bind_port_retries = 100
536
537# Size of executor thread pool. (integer value)
538# Deprecated group/name - [DEFAULT]/rpc_thread_pool_size
539#executor_thread_pool_size = 64
540executor_thread_pool_size = 70
541
542# Seconds to wait for a response from a call. (integer value)
543#rpc_response_timeout = 60
544rpc_response_timeout=60
545
546# A URL representing the messaging driver to use and its full configuration. If
547# not set, we fall back to the rpc_backend option and driver specific
548# configuration. (string value)
549#transport_url = <None>
550
551# The messaging driver to use, defaults to rabbit. Other drivers include amqp
552# and zmq. (string value)
553#rpc_backend = rabbit
554rpc_backend = rabbit
555
556# The default exchange under which topics are scoped. May be overridden by an
557# exchange name specified in the transport_url option. (string value)
558#control_exchange = neutron
559
560#
561# From oslo.service.wsgi
562#
563
564# File name for the paste.deploy config for api service (string value)
565#api_paste_config = api-paste.ini
566
567# A python format string that is used as the template to generate log lines.
568# The following values can beformatted into it: client_ip, date_time,
569# request_line, status_code, body_length, wall_seconds. (string value)
570#wsgi_log_format = %(client_ip)s "%(request_line)s" status: %(status_code)s len: %(body_length)s time: %(wall_seconds).7f
571
572# Sets the value of TCP_KEEPIDLE in seconds for each server socket. Not
573# supported on OS X. (integer value)
574#tcp_keepidle = 600
575
576# Size of the pool of greenthreads used by wsgi (integer value)
577#wsgi_default_pool_size = 1000
578
579# Maximum line size of message headers to be accepted. max_header_line may need
580# to be increased when using large tokens (typically those generated by the
581# Keystone v3 API with big service catalogs). (integer value)
582#max_header_line = 16384
583
584# If False, closes the client socket connection explicitly. (boolean value)
585#wsgi_keep_alive = true
586
587# Timeout for client connections' socket operations. If an incoming connection
588# is idle for this number of seconds it will be closed. A value of '0' means
589# wait forever. (integer value)
590#client_socket_timeout = 900
591
Jiri Broulik74f61112016-11-21 20:23:47 +0100592nova_url = http://{{ server.compute.host }}:8774/v2
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200593
594[agent]
595
596#
597# From neutron.agent
598#
599
600# Root helper application. Use 'sudo neutron-rootwrap
601# /etc/neutron/rootwrap.conf' to use the real root filter facility. Change to
602# 'sudo' to skip the filtering and just run the command directly. (string
603# value)
604root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
605
606# Use the root helper when listing the namespaces on a system. This may not be
607# required depending on the security configuration. If the root helper is not
608# required, set this to False for a performance improvement. (boolean value)
609#use_helper_for_ns_read = true
610
611# Root helper daemon application to use when possible. (string value)
612#root_helper_daemon = <None>
613
614# Seconds between nodes reporting state to server; should be less than
615# agent_down_time, best if it is half or less than agent_down_time. (floating
616# point value)
617#report_interval = 30
Jiri Broulik74f61112016-11-21 20:23:47 +0100618report_interval = 10
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200619
620# Log agent heartbeats (boolean value)
621#log_agent_heartbeats = false
622
623# Add comments to iptables rules. Set to false to disallow the addition of
624# comments to generated iptables rules that describe each rule's purpose.
625# System must support the iptables comments module for addition of comments.
626# (boolean value)
627#comment_iptables_rules = true
628
629# Action to be executed when a child process dies (string value)
630# Allowed values: respawn, exit
631#check_child_processes_action = respawn
632
633# Interval between checks of child process liveness (seconds), use 0 to disable
634# (integer value)
635#check_child_processes_interval = 60
636
637# Availability zone of this node (string value)
638#availability_zone = nova
639
640
641[cors]
642
643#
644# From oslo.middleware.cors
645#
646
647# Indicate whether this resource may be shared with the domain received in the
648# requests "origin" header. (list value)
649#allowed_origin = <None>
650
651# Indicate that the actual request can include user credentials (boolean value)
652#allow_credentials = true
653
654# Indicate which headers are safe to expose to the API. Defaults to HTTP Simple
655# Headers. (list value)
656#expose_headers = X-Auth-Token,X-Subject-Token,X-Service-Token,X-OpenStack-Request-ID,OpenStack-Volume-microversion
657
658# Maximum cache age of CORS preflight requests. (integer value)
659#max_age = 3600
660
661# Indicate which methods can be used during the actual request. (list value)
662#allow_methods = GET,PUT,POST,DELETE,PATCH
663
664# Indicate which header field names may be used during the actual request.
665# (list value)
666#allow_headers = X-Auth-Token,X-Identity-Status,X-Roles,X-Service-Catalog,X-User-Id,X-Tenant-Id,X-OpenStack-Request-ID
667
668
669[cors.subdomain]
670
671#
672# From oslo.middleware.cors
673#
674
675# Indicate whether this resource may be shared with the domain received in the
676# requests "origin" header. (list value)
677#allowed_origin = <None>
678
679# Indicate that the actual request can include user credentials (boolean value)
680#allow_credentials = true
681
682# Indicate which headers are safe to expose to the API. Defaults to HTTP Simple
683# Headers. (list value)
684#expose_headers = X-Auth-Token,X-Subject-Token,X-Service-Token,X-OpenStack-Request-ID,OpenStack-Volume-microversion
685
686# Maximum cache age of CORS preflight requests. (integer value)
687#max_age = 3600
688
689# Indicate which methods can be used during the actual request. (list value)
690#allow_methods = GET,PUT,POST,DELETE,PATCH
691
692# Indicate which header field names may be used during the actual request.
693# (list value)
694#allow_headers = X-Auth-Token,X-Identity-Status,X-Roles,X-Service-Catalog,X-User-Id,X-Tenant-Id,X-OpenStack-Request-ID
695
696
697[database]
698
699#
700# From neutron.db
701#
702
703# Database engine for which script will be generated when using offline
704# migration. (string value)
705#engine =
706
707#
708# From oslo.db
709#
710
711# The file name to use with SQLite. (string value)
712# Deprecated group/name - [DEFAULT]/sqlite_db
713#sqlite_db = oslo.sqlite
714
715# If True, SQLite uses synchronous mode. (boolean value)
716# Deprecated group/name - [DEFAULT]/sqlite_synchronous
717#sqlite_synchronous = true
718
719# The back end to use for the database. (string value)
720# Deprecated group/name - [DEFAULT]/db_backend
721#backend = sqlalchemy
722
723# The SQLAlchemy connection string to use to connect to the database. (string
724# value)
725# Deprecated group/name - [DEFAULT]/sql_connection
726# Deprecated group/name - [DATABASE]/sql_connection
727# Deprecated group/name - [sql]/connection
Jiri Broulik74f61112016-11-21 20:23:47 +0100728{% if server.backend.engine == "ml2" %}
729connection = {{ server.database.engine }}+pymysql://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}/{{ server.database.name }}
730{% else %}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200731connection = sqlite:////var/lib/neutron/neutron.sqlite
Jiri Broulik74f61112016-11-21 20:23:47 +0100732{% endif %}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200733# The SQLAlchemy connection string to use to connect to the slave database.
734# (string value)
735#slave_connection = <None>
736
737# The SQL mode to be used for MySQL sessions. This option, including the
738# default, overrides any server-set SQL mode. To use whatever SQL mode is set
739# by the server configuration, set this to no value. Example: mysql_sql_mode=
740# (string value)
741#mysql_sql_mode = TRADITIONAL
742
743# Timeout before idle SQL connections are reaped. (integer value)
744# Deprecated group/name - [DEFAULT]/sql_idle_timeout
745# Deprecated group/name - [DATABASE]/sql_idle_timeout
746# Deprecated group/name - [sql]/idle_timeout
747#idle_timeout = 3600
Jiri Broulik74f61112016-11-21 20:23:47 +0100748idle_timeout = 3600
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200749
750# Minimum number of SQL connections to keep open in a pool. (integer value)
751# Deprecated group/name - [DEFAULT]/sql_min_pool_size
752# Deprecated group/name - [DATABASE]/sql_min_pool_size
753#min_pool_size = 1
754
755# Maximum number of SQL connections to keep open in a pool. (integer value)
756# Deprecated group/name - [DEFAULT]/sql_max_pool_size
757# Deprecated group/name - [DATABASE]/sql_max_pool_size
758#max_pool_size = <None>
Jiri Broulik74f61112016-11-21 20:23:47 +0100759max_pool_size = 20
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200760
761# Maximum number of database connection retries during startup. Set to -1 to
762# specify an infinite retry count. (integer value)
763# Deprecated group/name - [DEFAULT]/sql_max_retries
764# Deprecated group/name - [DATABASE]/sql_max_retries
765#max_retries = 10
Jiri Broulik74f61112016-11-21 20:23:47 +0100766max_retries = -1
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200767
768# Interval between retries of opening a SQL connection. (integer value)
769# Deprecated group/name - [DEFAULT]/sql_retry_interval
770# Deprecated group/name - [DATABASE]/reconnect_interval
771#retry_interval = 10
Jiri Broulik74f61112016-11-21 20:23:47 +0100772retry_interval = 2
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200773
774# If set, use this value for max_overflow with SQLAlchemy. (integer value)
775# Deprecated group/name - [DEFAULT]/sql_max_overflow
776# Deprecated group/name - [DATABASE]/sqlalchemy_max_overflow
777#max_overflow = 50
Jiri Broulik74f61112016-11-21 20:23:47 +0100778max_overflow = 20
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200779
780# Verbosity of SQL debugging information: 0=None, 100=Everything. (integer
781# value)
782# Deprecated group/name - [DEFAULT]/sql_connection_debug
783#connection_debug = 0
784
785# Add Python stack traces to SQL as comment strings. (boolean value)
786# Deprecated group/name - [DEFAULT]/sql_connection_trace
787#connection_trace = false
788
789# If set, use this value for pool_timeout with SQLAlchemy. (integer value)
790# Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout
791#pool_timeout = <None>
792
793# Enable the experimental use of database reconnect on connection lost.
794# (boolean value)
795#use_db_reconnect = false
796
797# Seconds between retries of a database transaction. (integer value)
798#db_retry_interval = 1
799
800# If True, increases the interval between retries of a database operation up to
801# db_max_retry_interval. (boolean value)
802#db_inc_retry_interval = true
803
804# If db_inc_retry_interval is set, the maximum seconds between retries of a
805# database operation. (integer value)
806#db_max_retry_interval = 10
807
808# Maximum retries in case of connection error or deadlock error before error is
809# raised. Set to -1 to specify an infinite retry count. (integer value)
810#db_max_retries = 20
811
812
813[keystone_authtoken]
Jiri Broulik74f61112016-11-21 20:23:47 +0100814{% if server.backend.engine == "contrail" %}
815admin_token = {{ server.backend.token }}
816admin_user={{ server.backend.user }}
817admin_password={{ server.backend.password }}
818admin_tenant_name={{ server.backend.tenant }}
819{%- endif %}
Jakub Pavlik7985ec92016-05-06 07:35:25 -0700820auth_region={{ server.identity.region }}
Jakub Pavlik85ae6882016-10-19 15:10:20 +0200821auth_protocol=http
Jakub Pavlik7985ec92016-05-06 07:35:25 -0700822revocation_cache_time = 10
Petr Jediný1f37f542017-05-15 15:15:24 +0200823{% if server.backend.engine == "contrail" %}
824# LBaaS contrail neutron plugin for versions 3.x expects auth_type to be
825# 'keystone' or 'noauth'
826# This behaviour is fixed after the release MCP1.0 by using auth_strategy
827# instead of auth_type, until this is backported to MCP1.0 auth_type must be
828# set to keystone, noauth or commented out.
829#
830# When not defined, contrail defaults to 'keystone'
831#
832#auth_type=keystone
833{% else %}
Jakub Pavlik7985ec92016-05-06 07:35:25 -0700834auth_type = password
Petr Jediný1f37f542017-05-15 15:15:24 +0200835{% endif %}
Jakub Pavlik85ae6882016-10-19 15:10:20 +0200836auth_host = {{ server.identity.host }}
837auth_port = 35357
Jakub Pavlik7985ec92016-05-06 07:35:25 -0700838user_domain_id = {{ server.identity.get('domain', 'default') }}
839project_domain_id = {{ server.identity.get('domain', 'default') }}
840project_name = {{ server.identity.tenant }}
841username = {{ server.identity.user }}
842password = {{ server.identity.password }}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200843auth_uri=http://{{ server.identity.host }}:5000
844auth_url=http://{{ server.identity.host }}:35357
Jakub Pavlik7985ec92016-05-06 07:35:25 -0700845{%- if server.cache is defined %}
846memcached_servers={%- for member in server.cache.members %}{{ member.host }}:11211{% if not loop.last %},{% endif %}{%- endfor %}
847{%- endif %}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +0200848#
849# From keystonemiddleware.auth_token
850#
851
852# Complete public Identity API endpoint. (string value)
853#auth_uri = <None>
854
855# API version of the admin Identity API endpoint. (string value)
856#auth_version = <None>
857
858# Do not handle authorization requests within the middleware, but delegate the
859# authorization decision to downstream WSGI components. (boolean value)
860#delay_auth_decision = false
861
862# Request timeout value for communicating with Identity API server. (integer
863# value)
864#http_connect_timeout = <None>
865
866# How many times are we trying to reconnect when communicating with Identity
867# API Server. (integer value)
868#http_request_max_retries = 3
869
870# Env key for the swift cache. (string value)
871#cache = <None>
872
873# Required if identity server requires client certificate (string value)
874#certfile = <None>
875
876# Required if identity server requires client certificate (string value)
877#keyfile = <None>
878
879# A PEM encoded Certificate Authority to use when verifying HTTPs connections.
880# Defaults to system CAs. (string value)
881#cafile = <None>
882
883# Verify HTTPS connections. (boolean value)
884#insecure = false
885
886# The region in which the identity server can be found. (string value)
887#region_name = <None>
888
889# Directory used to cache files related to PKI tokens. (string value)
890#signing_dir = <None>
891
892# Optionally specify a list of memcached server(s) to use for caching. If left
893# undefined, tokens will instead be cached in-process. (list value)
894# Deprecated group/name - [DEFAULT]/memcache_servers
895#memcached_servers = <None>
896
897# In order to prevent excessive effort spent validating tokens, the middleware
898# caches previously-seen tokens for a configurable duration (in seconds). Set
899# to -1 to disable caching completely. (integer value)
900#token_cache_time = 300
901
902# Determines the frequency at which the list of revoked tokens is retrieved
903# from the Identity service (in seconds). A high number of revocation events
904# combined with a low cache duration may significantly reduce performance.
905# (integer value)
906#revocation_cache_time = 10
907
908# (Optional) If defined, indicate whether token data should be authenticated or
909# authenticated and encrypted. If MAC, token data is authenticated (with HMAC)
910# in the cache. If ENCRYPT, token data is encrypted and authenticated in the
911# cache. If the value is not one of these options or empty, auth_token will
912# raise an exception on initialization. (string value)
913# Allowed values: None, MAC, ENCRYPT
914#memcache_security_strategy = None
915
916# (Optional, mandatory if memcache_security_strategy is defined) This string is
917# used for key derivation. (string value)
918#memcache_secret_key = <None>
919
920# (Optional) Number of seconds memcached server is considered dead before it is
921# tried again. (integer value)
922#memcache_pool_dead_retry = 300
923
924# (Optional) Maximum total number of open connections to every memcached
925# server. (integer value)
926#memcache_pool_maxsize = 10
927
928# (Optional) Socket timeout in seconds for communicating with a memcached
929# server. (integer value)
930#memcache_pool_socket_timeout = 3
931
932# (Optional) Number of seconds a connection to memcached is held unused in the
933# pool before it is closed. (integer value)
934#memcache_pool_unused_timeout = 60
935
936# (Optional) Number of seconds that an operation will wait to get a memcached
937# client connection from the pool. (integer value)
938#memcache_pool_conn_get_timeout = 10
939
940# (Optional) Use the advanced (eventlet safe) memcached client pool. The
941# advanced pool will only work under python 2.x. (boolean value)
942#memcache_use_advanced_pool = false
943
944# (Optional) Indicate whether to set the X-Service-Catalog header. If False,
945# middleware will not ask for service catalog on token validation and will not
946# set the X-Service-Catalog header. (boolean value)
947#include_service_catalog = true
948
949# Used to control the use and type of token binding. Can be set to: "disabled"
950# to not check token binding. "permissive" (default) to validate binding
951# information if the bind type is of a form known to the server and ignore it
952# if not. "strict" like "permissive" but if the bind type is unknown the token
953# will be rejected. "required" any form of token binding is needed to be
954# allowed. Finally the name of a binding method that must be present in tokens.
955# (string value)
956#enforce_token_bind = permissive
957
958# If true, the revocation list will be checked for cached tokens. This requires
959# that PKI tokens are configured on the identity server. (boolean value)
960#check_revocations_for_cached = false
961
962# Hash algorithms to use for hashing PKI tokens. This may be a single algorithm
963# or multiple. The algorithms are those supported by Python standard
964# hashlib.new(). The hashes will be tried in the order given, so put the
965# preferred one first for performance. The result of the first hash will be
966# stored in the cache. This will typically be set to multiple values only while
967# migrating from a less secure algorithm to a more secure one. Once all the old
968# tokens are expired this option should be set to a single value for better
969# performance. (list value)
970#hash_algorithms = md5
971
972# Prefix to prepend at the beginning of the path. Deprecated, use identity_uri.
973# (string value)
974#auth_admin_prefix =
975
976# Host providing the admin Identity API endpoint. Deprecated, use identity_uri.
977# (string value)
978#auth_host = 127.0.0.1
979
980# Port of the admin Identity API endpoint. Deprecated, use identity_uri.
981# (integer value)
982#auth_port = 35357
983
984# Protocol of the admin Identity API endpoint. Deprecated, use identity_uri.
985# (string value)
986# Allowed values: http, https
987#auth_protocol = https
988
989# Complete admin Identity API endpoint. This should specify the unversioned
990# root endpoint e.g. https://localhost:35357/ (string value)
991#identity_uri = <None>
992
993# This option is deprecated and may be removed in a future release. Single
994# shared secret with the Keystone configuration used for bootstrapping a
995# Keystone installation, or otherwise bypassing the normal authentication
996# process. This option should not be used, use `admin_user` and
997# `admin_password` instead. (string value)
998#admin_token = <None>
999
1000# Service username. (string value)
1001#admin_user = <None>
1002
1003# Service user password. (string value)
1004#admin_password = <None>
1005
1006# Service tenant name. (string value)
1007#admin_tenant_name = admin
1008
1009# Authentication type to load (unknown value)
1010# Deprecated group/name - [DEFAULT]/auth_plugin
1011#auth_type = <None>
1012
1013# Config Section from which to load plugin specific options (unknown value)
1014#auth_section = <None>
1015
1016
1017[matchmaker_redis]
1018
1019#
1020# From oslo.messaging
1021#
1022
1023# Host to locate redis. (string value)
1024#host = 127.0.0.1
1025
1026# Use this port to connect to redis host. (port value)
1027# Minimum value: 0
1028# Maximum value: 65535
1029#port = 6379
1030
1031# Password for Redis server (optional). (string value)
1032#password =
1033
1034# List of Redis Sentinel hosts (fault tolerance mode) e.g.
1035# [host:port, host1:port ... ] (list value)
1036#sentinel_hosts =
1037
1038# Redis replica set name. (string value)
1039#sentinel_group_name = oslo-messaging-zeromq
1040
1041# Time in ms to wait between connection attempts. (integer value)
1042#wait_timeout = 500
1043
1044# Time in ms to wait before the transaction is killed. (integer value)
1045#check_timeout = 20000
1046
1047# Timeout in ms on blocking socket operations (integer value)
1048#socket_timeout = 1000
1049
1050
1051[nova]
1052
1053#
1054# From neutron
1055#
1056
1057# Name of nova region to use. Useful if keystone manages more than one region.
1058# (string value)
1059#region_name = <None>
1060region_name = {{ server.compute.region }}
1061
1062# Type of the nova endpoint to use. This endpoint will be looked up in the
1063# keystone catalog and should be one of public, internal or admin. (string
1064# value)
1065# Allowed values: public, admin, internal
Dennis Dmitriev37114722017-03-06 16:52:26 +02001066endpoint_type = {{ server.identity.get('endpoint_type', 'public') }}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +02001067
1068#
1069# From nova.auth
1070#
1071
1072# Authentication URL (unknown value)
1073#auth_url = <None>
1074user_domain_id = {{ server.identity.get('domain', 'default') }}
1075project_domain_id = {{ server.identity.get('domain', 'default') }}
1076project_name = {{ server.identity.tenant }}
1077password = {{ server.compute.password }}
1078username = {{ server.compute.user }}
1079auth_type = password
1080auth_url = http://{{ server.identity.host }}:35357
1081
1082# Authentication type to load (unknown value)
1083# Deprecated group/name - [DEFAULT]/auth_plugin
1084#auth_type = <None>
1085
1086# PEM encoded Certificate Authority to use when verifying HTTPs connections.
1087# (string value)
1088#cafile = <None>
1089
1090# PEM encoded client certificate cert file (string value)
1091#certfile = <None>
1092
1093# Optional domain ID to use with v3 and v2 parameters. It will be used for both
1094# the user and project domain in v3 and ignored in v2 authentication. (unknown
1095# value)
1096#default_domain_id = <None>
1097
1098# Optional domain name to use with v3 API and v2 parameters. It will be used
1099# for both the user and project domain in v3 and ignored in v2 authentication.
1100# (unknown value)
1101#default_domain_name = <None>
1102
1103# Domain ID to scope to (unknown value)
1104#domain_id = <None>
1105
1106# Domain name to scope to (unknown value)
1107#domain_name = <None>
1108
1109# Verify HTTPS connections. (boolean value)
1110#insecure = false
1111
1112# PEM encoded client certificate key file (string value)
1113#keyfile = <None>
1114
1115# User's password (unknown value)
1116#password = <None>
1117
1118# Domain ID containing project (unknown value)
1119#project_domain_id = <None>
1120
1121# Domain name containing project (unknown value)
1122#project_domain_name = <None>
1123
1124# Project ID to scope to (unknown value)
1125# Deprecated group/name - [DEFAULT]/tenant-id
1126#project_id = <None>
1127
1128# Project name to scope to (unknown value)
1129# Deprecated group/name - [DEFAULT]/tenant-name
1130#project_name = <None>
1131
1132# Tenant ID (unknown value)
1133#tenant_id = <None>
1134
1135# Tenant Name (unknown value)
1136#tenant_name = <None>
1137
1138# Timeout value for http requests (integer value)
1139#timeout = <None>
1140
1141# Trust ID (unknown value)
1142#trust_id = <None>
1143
1144# User's domain id (unknown value)
1145#user_domain_id = <None>
1146
1147# User's domain name (unknown value)
1148#user_domain_name = <None>
1149
1150# User id (unknown value)
1151#user_id = <None>
1152
1153# Username (unknown value)
1154# Deprecated group/name - [DEFAULT]/username
1155#username = <None>
1156
1157
1158[oslo_concurrency]
1159
1160#
1161# From oslo.concurrency
1162#
1163
1164# Enables or disables inter-process locks. (boolean value)
1165# Deprecated group/name - [DEFAULT]/disable_process_locking
1166#disable_process_locking = false
1167
1168# Directory to use for lock files. For security, the specified directory
1169# should only be writable by the user running the processes that need locking.
1170# Defaults to environment variable OSLO_LOCK_PATH. If OSLO_LOCK_PATH is not set
1171# in the environment, use the Python tempfile.gettempdir function to find a
1172# suitable location. If external locks are used, a lock path must be set.
1173# (string value)
1174# Deprecated group/name - [DEFAULT]/lock_path
1175#lock_path = /tmp
1176lock_path = $state_path/lock
1177
1178[oslo_messaging_amqp]
1179
1180#
1181# From oslo.messaging
1182#
1183
1184# address prefix used when sending to a specific server (string value)
1185# Deprecated group/name - [amqp1]/server_request_prefix
1186#server_request_prefix = exclusive
1187
1188# address prefix used when broadcasting to all servers (string value)
1189# Deprecated group/name - [amqp1]/broadcast_prefix
1190#broadcast_prefix = broadcast
1191
1192# address prefix when sending to any server in group (string value)
1193# Deprecated group/name - [amqp1]/group_request_prefix
1194#group_request_prefix = unicast
1195
1196# Name for the AMQP container (string value)
1197# Deprecated group/name - [amqp1]/container_name
1198#container_name = <None>
1199
1200# Timeout for inactive connections (in seconds) (integer value)
1201# Deprecated group/name - [amqp1]/idle_timeout
1202#idle_timeout = 0
1203
1204# Debug: dump AMQP frames to stdout (boolean value)
1205# Deprecated group/name - [amqp1]/trace
1206#trace = false
1207
1208# CA certificate PEM file to verify server certificate (string value)
1209# Deprecated group/name - [amqp1]/ssl_ca_file
1210#ssl_ca_file =
1211
1212# Identifying certificate PEM file to present to clients (string value)
1213# Deprecated group/name - [amqp1]/ssl_cert_file
1214#ssl_cert_file =
1215
1216# Private key PEM file used to sign cert_file certificate (string value)
1217# Deprecated group/name - [amqp1]/ssl_key_file
1218#ssl_key_file =
1219
1220# Password for decrypting ssl_key_file (if encrypted) (string value)
1221# Deprecated group/name - [amqp1]/ssl_key_password
1222#ssl_key_password = <None>
1223
1224# Accept clients using either SSL or plain TCP (boolean value)
1225# Deprecated group/name - [amqp1]/allow_insecure_clients
1226#allow_insecure_clients = false
1227
1228# Space separated list of acceptable SASL mechanisms (string value)
1229# Deprecated group/name - [amqp1]/sasl_mechanisms
1230#sasl_mechanisms =
1231
1232# Path to directory that contains the SASL configuration (string value)
1233# Deprecated group/name - [amqp1]/sasl_config_dir
1234#sasl_config_dir =
1235
1236# Name of configuration file (without .conf suffix) (string value)
1237# Deprecated group/name - [amqp1]/sasl_config_name
1238#sasl_config_name =
1239
1240# User name for message broker authentication (string value)
1241# Deprecated group/name - [amqp1]/username
1242#username =
1243
1244# Password for message broker authentication (string value)
1245# Deprecated group/name - [amqp1]/password
1246#password =
1247
1248
1249[oslo_messaging_notifications]
1250
1251#
1252# From oslo.messaging
1253#
1254
1255# The Drivers(s) to handle sending notifications. Possible values are
1256# messaging, messagingv2, routing, log, test, noop (multi valued)
1257# Deprecated group/name - [DEFAULT]/notification_driver
1258#driver =
Simon Pasquier1c6a0d52016-12-01 15:16:06 +01001259{%- if server.notification is mapping %}
1260driver = {{ server.notification.get('driver', 'messagingv2') }}
1261{%- if server.notification.topics is defined %}
1262topics = {{ server.notification.topics }}
1263{%- endif %}
1264{%- elif server.notification %}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +02001265driver = messagingv2
1266{%- endif %}
1267# A URL representing the messaging driver to use for notifications. If not set,
1268# we fall back to the same configuration used for RPC. (string value)
1269# Deprecated group/name - [DEFAULT]/notification_transport_url
1270#transport_url = <None>
1271
1272# AMQP topic used for OpenStack notifications. (list value)
1273# Deprecated group/name - [rpc_notifier2]/topics
1274# Deprecated group/name - [DEFAULT]/notification_topics
1275#topics = notifications
1276
1277
1278[oslo_messaging_rabbit]
1279
1280#
1281# From oslo.messaging
1282#
1283
1284# Use durable queues in AMQP. (boolean value)
1285# Deprecated group/name - [DEFAULT]/amqp_durable_queues
1286# Deprecated group/name - [DEFAULT]/rabbit_durable_queues
1287#amqp_durable_queues = false
1288
1289# Auto-delete queues in AMQP. (boolean value)
1290# Deprecated group/name - [DEFAULT]/amqp_auto_delete
1291#amqp_auto_delete = false
1292
1293# SSL version to use (valid only if SSL enabled). Valid values are TLSv1 and
1294# SSLv23. SSLv2, SSLv3, TLSv1_1, and TLSv1_2 may be available on some
1295# distributions. (string value)
1296# Deprecated group/name - [DEFAULT]/kombu_ssl_version
1297#kombu_ssl_version =
1298
1299# SSL key file (valid only if SSL enabled). (string value)
1300# Deprecated group/name - [DEFAULT]/kombu_ssl_keyfile
1301#kombu_ssl_keyfile =
1302
1303# SSL cert file (valid only if SSL enabled). (string value)
1304# Deprecated group/name - [DEFAULT]/kombu_ssl_certfile
1305#kombu_ssl_certfile =
1306
1307# SSL certification authority file (valid only if SSL enabled). (string value)
1308# Deprecated group/name - [DEFAULT]/kombu_ssl_ca_certs
1309#kombu_ssl_ca_certs =
1310
1311# How long to wait before reconnecting in response to an AMQP consumer cancel
1312# notification. (floating point value)
1313# Deprecated group/name - [DEFAULT]/kombu_reconnect_delay
1314#kombu_reconnect_delay = 1.0
1315
1316# EXPERIMENTAL: Possible values are: gzip, bz2. If not set compression will not
1317# be used. This option may notbe available in future versions. (string value)
1318#kombu_compression = <None>
1319
1320# How long to wait a missing client beforce abandoning to send it its replies.
1321# This value should not be longer than rpc_response_timeout. (integer value)
1322# Deprecated group/name - [DEFAULT]/kombu_reconnect_timeout
1323#kombu_missing_consumer_retry_timeout = 60
1324
1325# Determines how the next RabbitMQ node is chosen in case the one we are
1326# currently connected to becomes unavailable. Takes effect only if more than
1327# one RabbitMQ node is provided in config. (string value)
1328# Allowed values: round-robin, shuffle
1329#kombu_failover_strategy = round-robin
1330
1331# The RabbitMQ broker address where a single node is used. (string value)
1332# Deprecated group/name - [DEFAULT]/rabbit_host
1333#rabbit_host = localhost
1334
1335# The RabbitMQ broker port where a single node is used. (port value)
1336# Minimum value: 0
1337# Maximum value: 65535
1338# Deprecated group/name - [DEFAULT]/rabbit_port
1339#rabbit_port = 5672
1340
1341# RabbitMQ HA cluster host:port pairs. (list value)
1342# Deprecated group/name - [DEFAULT]/rabbit_hosts
1343#rabbit_hosts = $rabbit_host:$rabbit_port
Jiri Konecny93b19992016-04-12 11:15:39 +02001344#
1345{%- if server.message_queue.members is defined %}
1346rabbit_hosts = {% for member in server.message_queue.members -%}
1347 {{ member.host }}:{{ member.get('port', 5672) }}
1348 {%- if not loop.last -%},{%- endif -%}
1349 {%- endfor -%}
1350{%- else %}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +02001351rabbit_host = {{ server.message_queue.host }}
1352rabbit_port = {{ server.message_queue.port }}
Jiri Konecny93b19992016-04-12 11:15:39 +02001353{%- endif %}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +02001354
1355rabbit_userid = {{ server.message_queue.user }}
1356rabbit_password = {{ server.message_queue.password }}
1357rabbit_virtual_host = {{ server.message_queue.virtual_host }}
1358# Connect over SSL for RabbitMQ. (boolean value)
1359# Deprecated group/name - [DEFAULT]/rabbit_use_ssl
1360#rabbit_use_ssl = false
1361
1362# The RabbitMQ userid. (string value)
1363# Deprecated group/name - [DEFAULT]/rabbit_userid
1364#rabbit_userid = guest
1365
1366# The RabbitMQ password. (string value)
1367# Deprecated group/name - [DEFAULT]/rabbit_password
1368#rabbit_password = guest
1369
1370# The RabbitMQ login method. (string value)
1371# Deprecated group/name - [DEFAULT]/rabbit_login_method
1372#rabbit_login_method = AMQPLAIN
1373
1374# The RabbitMQ virtual host. (string value)
1375# Deprecated group/name - [DEFAULT]/rabbit_virtual_host
1376#rabbit_virtual_host = /
1377
1378# How frequently to retry connecting with RabbitMQ. (integer value)
1379#rabbit_retry_interval = 1
1380rabbit_retry_interval = 1
1381
1382# How long to backoff for between retries when connecting to RabbitMQ. (integer
1383# value)
1384# Deprecated group/name - [DEFAULT]/rabbit_retry_backoff
1385#rabbit_retry_backoff = 2
1386rabbit_retry_backoff = 2
1387
1388# Maximum interval of RabbitMQ connection retries. Default is 30 seconds.
1389# (integer value)
1390#rabbit_interval_max = 30
1391
1392# Maximum number of RabbitMQ connection retries. Default is 0 (infinite retry
1393# count). (integer value)
1394# Deprecated group/name - [DEFAULT]/rabbit_max_retries
1395#rabbit_max_retries = 0
1396rabbit_max_retries = 0
1397
1398# Try to use HA queues in RabbitMQ (x-ha-policy: all). If you change this
1399# option, you must wipe the RabbitMQ database. In RabbitMQ 3.0, queue mirroring
1400# is no longer controlled by the x-ha-policy argument when declaring a queue.
1401# If you just want to make sure that all queues (except those with auto-
1402# generated names) are mirrored across all nodes, run: "rabbitmqctl set_policy
1403# HA '^(?!amq\.).*' '{"ha-mode": "all"}' " (boolean value)
1404# Deprecated group/name - [DEFAULT]/rabbit_ha_queues
1405#rabbit_ha_queues = false
1406
1407# Positive integer representing duration in seconds for queue TTL (x-expires).
1408# Queues which are unused for the duration of the TTL are automatically
1409# deleted. The parameter affects only reply and fanout queues. (integer value)
1410# Minimum value: 1
1411#rabbit_transient_queues_ttl = 1800
1412
1413# Specifies the number of messages to prefetch. Setting to zero allows
1414# unlimited messages. (integer value)
1415#rabbit_qos_prefetch_count = 0
1416
1417# Number of seconds after which the Rabbit broker is considered down if
1418# heartbeat's keep-alive fails (0 disable the heartbeat). EXPERIMENTAL (integer
1419# value)
1420#heartbeat_timeout_threshold = 60
Jiri Broulik74f61112016-11-21 20:23:47 +01001421heartbeat_timeout_threshold = 0
Jakub Pavlik21f60ae2016-04-13 11:07:53 +02001422
1423# How often times during the heartbeat_timeout_threshold we check the
1424# heartbeat. (integer value)
1425#heartbeat_rate = 2
Jiri Broulik74f61112016-11-21 20:23:47 +01001426heartbeat_rate = 2
Jakub Pavlik21f60ae2016-04-13 11:07:53 +02001427
1428# Deprecated, use rpc_backend=kombu+memory or rpc_backend=fake (boolean value)
1429# Deprecated group/name - [DEFAULT]/fake_rabbit
1430#fake_rabbit = false
1431
1432# Maximum number of channels to allow (integer value)
1433#channel_max = <None>
1434
1435# The maximum byte size for an AMQP frame (integer value)
1436#frame_max = <None>
1437
1438# How often to send heartbeats for consumer's connections (integer value)
1439#heartbeat_interval = 1
1440
1441# Enable SSL (boolean value)
1442#ssl = <None>
1443
1444# Arguments passed to ssl.wrap_socket (dict value)
1445#ssl_options = <None>
1446
1447# Set socket timeout in seconds for connection's socket (floating point value)
1448#socket_timeout = 0.25
1449
1450# Set TCP_USER_TIMEOUT in seconds for connection's socket (floating point
1451# value)
1452#tcp_user_timeout = 0.25
1453
1454# Set delay for reconnection to some host which has connection error (floating
1455# point value)
1456#host_connection_reconnect_delay = 0.25
1457
1458# Maximum number of connections to keep queued. (integer value)
1459#pool_max_size = 10
1460
1461# Maximum number of connections to create above `pool_max_size`. (integer
1462# value)
1463#pool_max_overflow = 0
1464
1465# Default number of seconds to wait for a connections to available (integer
1466# value)
1467#pool_timeout = 30
1468
1469# Lifetime of a connection (since creation) in seconds or None for no
1470# recycling. Expired connections are closed on acquire. (integer value)
1471#pool_recycle = 600
1472
1473# Threshold at which inactive (since release) connections are considered stale
1474# in seconds or None for no staleness. Stale connections are closed on acquire.
1475# (integer value)
1476#pool_stale = 60
1477
1478# Persist notification messages. (boolean value)
1479#notification_persistence = false
1480
1481# Exchange name for for sending notifications (string value)
1482#default_notification_exchange = ${control_exchange}_notification
1483
1484# Max number of not acknowledged message which RabbitMQ can send to
1485# notification listener. (integer value)
1486#notification_listener_prefetch_count = 100
1487
1488# Reconnecting retry count in case of connectivity problem during sending
1489# notification, -1 means infinite retry. (integer value)
1490#default_notification_retry_attempts = -1
1491
1492# Reconnecting retry delay in case of connectivity problem during sending
1493# notification message (floating point value)
1494#notification_retry_delay = 0.25
1495
1496# Time to live for rpc queues without consumers in seconds. (integer value)
1497#rpc_queue_expiration = 60
1498
1499# Exchange name for sending RPC messages (string value)
1500#default_rpc_exchange = ${control_exchange}_rpc
1501
1502# Exchange name for receiving RPC replies (string value)
1503#rpc_reply_exchange = ${control_exchange}_rpc_reply
1504
1505# Max number of not acknowledged message which RabbitMQ can send to rpc
1506# listener. (integer value)
1507#rpc_listener_prefetch_count = 100
1508
1509# Max number of not acknowledged message which RabbitMQ can send to rpc reply
1510# listener. (integer value)
1511#rpc_reply_listener_prefetch_count = 100
1512
1513# Reconnecting retry count in case of connectivity problem during sending
1514# reply. -1 means infinite retry during rpc_timeout (integer value)
1515#rpc_reply_retry_attempts = -1
1516
1517# Reconnecting retry delay in case of connectivity problem during sending
1518# reply. (floating point value)
1519#rpc_reply_retry_delay = 0.25
1520
1521# Reconnecting retry count in case of connectivity problem during sending RPC
1522# message, -1 means infinite retry. If actual retry attempts in not 0 the rpc
1523# request could be processed more then one time (integer value)
1524#default_rpc_retry_attempts = -1
1525
1526# Reconnecting retry delay in case of connectivity problem during sending RPC
1527# message (floating point value)
1528#rpc_retry_delay = 0.25
1529
1530
1531[oslo_policy]
1532
1533#
1534# From oslo.policy
1535#
1536
1537# The JSON file that defines policies. (string value)
1538# Deprecated group/name - [DEFAULT]/policy_file
1539#policy_file = policy.json
1540
1541# Default rule. Enforced when a requested rule is not found. (string value)
1542# Deprecated group/name - [DEFAULT]/policy_default_rule
1543#policy_default_rule = default
1544
1545# Directories where policy configuration files are stored. They can be relative
1546# to any directory in the search path defined by the config_dir option, or
1547# absolute paths. The file defined by policy_file must exist for these
1548# directories to be searched. Missing or empty directories are ignored. (multi
1549# valued)
1550# Deprecated group/name - [DEFAULT]/policy_dirs
1551#policy_dirs = policy.d
1552
1553
1554[quotas]
1555
1556#
1557# From neutron
1558#
1559
1560# Resource name(s) that are supported in quota features. This option is now
1561# deprecated for removal. (list value)
1562# This option is deprecated for removal.
1563# Its value may be silently ignored in the future.
1564#quota_items = network,subnet,port
1565
1566# Default number of resource allowed per tenant. A negative value means
1567# unlimited. (integer value)
1568#default_quota = -1
1569
1570# Number of networks allowed per tenant. A negative value means unlimited.
1571# (integer value)
1572#quota_network = 10
1573
1574# Number of subnets allowed per tenant, A negative value means unlimited.
1575# (integer value)
1576#quota_subnet = 10
1577
1578# Number of ports allowed per tenant. A negative value means unlimited.
1579# (integer value)
1580#quota_port = 50
1581
1582# Default driver to use for quota checks (string value)
1583#quota_driver = neutron.db.quota.driver.DbQuotaDriver
Jiri Broulik74f61112016-11-21 20:23:47 +01001584{% if server.backend.engine == "contrail" %}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +02001585quota_driver = neutron_plugin_contrail.plugins.opencontrail.quota.driver.QuotaDriver
Jiri Broulik74f61112016-11-21 20:23:47 +01001586{% endif %}
Jakub Pavlik21f60ae2016-04-13 11:07:53 +02001587
1588# Keep in track in the database of current resourcequota usage. Plugins which
1589# do not leverage the neutron database should set this flag to False (boolean
1590# value)
1591#track_quota_usage = true
1592
1593#
1594# From neutron.extensions
1595#
1596
1597# Number of routers allowed per tenant. A negative value means unlimited.
1598# (integer value)
1599#quota_router = 10
1600
1601# Number of floating IPs allowed per tenant. A negative value means unlimited.
1602# (integer value)
1603#quota_floatingip = 50
1604
1605# Number of security groups allowed per tenant. A negative value means
1606# unlimited. (integer value)
1607#quota_security_group = 10
1608
1609# Number of security rules allowed per tenant. A negative value means
1610# unlimited. (integer value)
1611#quota_security_group_rule = 100
1612
1613
1614[ssl]
1615
1616#
1617# From oslo.service.sslutils
1618#
1619
1620# CA certificate file to use to verify connecting clients. (string value)
1621# Deprecated group/name - [DEFAULT]/ssl_ca_file
1622#ca_file = <None>
1623
1624# Certificate file to use when starting the server securely. (string value)
1625# Deprecated group/name - [DEFAULT]/ssl_cert_file
1626#cert_file = <None>
1627
1628# Private key file to use when starting the server securely. (string value)
1629# Deprecated group/name - [DEFAULT]/ssl_key_file
1630#key_file = <None>
1631
1632# SSL version to use (valid only if SSL enabled). Valid values are TLSv1 and
1633# SSLv23. SSLv2, SSLv3, TLSv1_1, and TLSv1_2 may be available on some
1634# distributions. (string value)
1635#version = <None>
1636
1637# Sets the list of available ciphers. value should be a string in the OpenSSL
1638# cipher list format. (string value)
1639#ciphers = <None>
1640[service_providers]
Ondrej Smola314eee22017-03-08 21:21:16 +01001641
1642{% if server.lbaas is defined -%}
1643
1644{%- if server.lbaas.enabled -%}
1645
1646{%- for lbaas_name, lbaas in server.lbaas.providers.iteritems() %}
1647
1648{%- if lbaas.engine == "avinetworks" -%}
1649service_provider=LOADBALANCERV2:{{ lbaas_name }}:neutron_lbaas.drivers.avi.avi_driver.AviDriver
1650
1651[{{ lbaas_name }}]
1652address={{ lbaas.controller_address }}
1653user={{ lbaas.controller_user }}
1654password={{ lbaas.controller_password }}
1655cloud={{ lbaas.controller_cloud_name }}
1656{%- endif -%}
1657
1658{%- endfor -%}
1659
1660{% endif %}
1661
1662{% elif server.backend.engine == "contrail" %}
1663
Petr Jediný1f37f542017-05-15 15:15:24 +02001664service_provider = LOADBALANCERV2:Opencontrail:neutron_plugin_contrail.plugins.opencontrail.loadbalancer.driver.OpencontrailLoadbalancerDummyDriver:default
Ondrej Smola314eee22017-03-08 21:21:16 +01001665
Jakub Pavlika8d9f562016-10-18 11:57:31 +02001666{% include "neutron/files/"+server.version+"/ContrailPlugin.ini" %}
Ondrej Smola314eee22017-03-08 21:21:16 +01001667
Jakub Pavlika8d9f562016-10-18 11:57:31 +02001668{% endif %}