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