summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2018-01-17 10:12:28 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-01-18 10:47:31 -0500
commit992463503e844fe40f3bb2a56df5db0cb715942e (patch)
tree725e632d5155ac9a79a25cae4781eb9742176b4a /meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini
parenta49d21ce53618b12ae0b03806fd56f1a8949f243 (diff)
downloadmeta-cloud-services-992463503e844fe40f3bb2a56df5db0cb715942e.tar.gz
python-neutron: uprev to latest stable/pike
Following along with other recent openstack component uprevs the configuration has been changed to match the installation/setup configuration documented by the openstack community. We have also made the switch to using systemd. The initial configuration file (neutron.conf) was generated by getting things mostly updated and running, then copying/cloning the source repo on the target and running the setup scripts (see ./tools/generate_config_file_samples.sh) With these updates neutron is running and available but is yet to be fully tested, this must be done once we have a running compute node and guests. Required updates/uprevs/introduction to: python-ryu, python-neutron-lib, python-os-xenapi, python-oslo.privsep, python-ovs, python-weakrefmethod, and more Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini')
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini266
1 files changed, 214 insertions, 52 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini b/meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini
index 7cc648f..2552cdd 100644
--- a/meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini
+++ b/meta-openstack/recipes-devtools/python/python-neutron/dhcp_agent.ini
@@ -1,73 +1,235 @@
1[DEFAULT] 1[DEFAULT]
2# Show debugging output in log (sets DEBUG log level output)
3# debug = False
4 2
5# The DHCP agent will resync its state with Neutron to recover from any 3#
6# transient notification or rpc errors. The interval is number of 4# From neutron.base.agent
7# seconds between attempts. 5#
8# resync_interval = 5 6
7# Name of Open vSwitch bridge to use (string value)
8#ovs_integration_bridge = br-int
9 9
10# The DHCP agent requires an interface driver be set. Choose the one that best 10# Uses veth for an OVS interface or not. Support kernels with limited namespace
11# matches your plugin. 11# support (e.g. RHEL 6.5) so long as ovs_use_veth is set to True. (boolean
12# interface_driver = 12# value)
13#ovs_use_veth = false
13 14
14# Example of interface_driver option for OVS based plugins(OVS, Ryu, NEC, NVP, 15# The driver used to manage the virtual interface. (string value)
15# BigSwitch/Floodlight) 16#interface_driver = <None>
16interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
17 17
18# Use veth for an OVS interface or not. 18# Timeout in seconds for ovs-vsctl commands. If the timeout expires, ovs
19# Support kernels with limited namespace support 19# commands will fail with ALARMCLOCK error. (integer value)
20# (e.g. RHEL 6.5) so long as ovs_use_veth is set to True. 20#ovs_vsctl_timeout = 10
21# ovs_use_veth = False
22 21
23# Example of interface_driver option for LinuxBridge 22#
24# interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver 23# From neutron.dhcp.agent
24#
25 25
26# The agent can use other DHCP drivers. Dnsmasq is the simplest and requires 26# The DHCP agent will resync its state with Neutron to recover from any
27# no additional setup of the DHCP server. 27# transient notification or RPC errors. The interval is number of seconds
28# dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq 28# between attempts. (integer value)
29#resync_interval = 5
29 30
30# Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and 31# The driver used to manage the DHCP server. (string value)
31# iproute2 package that supports namespaces). 32#dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
32# use_namespaces = True
33 33
34# The DHCP server can assist with providing metadata support on isolated 34# The DHCP server can assist with providing metadata support on isolated
35# networks. Setting this value to True will cause the DHCP server to append 35# networks. Setting this value to True will cause the DHCP server to append
36# specific host routes to the DHCP request. The metadata service will only 36# specific host routes to the DHCP request. The metadata service will only be
37# be activated when the subnet does not contain any router port. The guest 37# activated when the subnet does not contain any router port. The guest
38# instance must be configured to request host routes via DHCP (Option 121). 38# instance must be configured to request host routes via DHCP (Option 121).
39# enable_isolated_metadata = False 39# This option doesn't have any effect when force_metadata is set to True.
40enable_isolated_metadata = True 40# (boolean value)
41 41#enable_isolated_metadata = false
42# Allows for serving metadata requests coming from a dedicated metadata 42
43# access network whose cidr is 169.254.169.254/16 (or larger prefix), and 43# In some cases the Neutron router is not present to provide the metadata IP
44# is connected to a Neutron router from which the VMs send metadata 44# but the DHCP server can be used to provide this info. Setting this value will
45# request. In this case DHCP Option 121 will not be injected in VMs, as 45# force the DHCP server to append specific host routes to the DHCP request. If
46# they will be able to reach 169.254.169.254 through a router. 46# this option is set, then the metadata service will be activated for all the
47# This option requires enable_isolated_metadata = True 47# networks. (boolean value)
48# enable_metadata_network = False 48#force_metadata = false
49
50# Allows for serving metadata requests coming from a dedicated metadata access
51# network whose CIDR is 169.254.169.254/16 (or larger prefix), and is connected
52# to a Neutron router from which the VMs send metadata:1 request. In this case
53# DHCP Option 121 will not be injected in VMs, as they will be able to reach
54# 169.254.169.254 through a router. This option requires
55# enable_isolated_metadata = True. (boolean value)
56#enable_metadata_network = false
49 57
50# Number of threads to use during sync process. Should not exceed connection 58# Number of threads to use during sync process. Should not exceed connection
51# pool size configured on server. 59# pool size configured on server. (integer value)
52# num_sync_threads = 4 60#num_sync_threads = 4
61
62# Location to store DHCP server config files. (string value)
63#dhcp_confs = $state_path/dhcp
64
65# Override the default dnsmasq settings with this file. (string value)
66#dnsmasq_config_file =
67
68# Comma-separated list of the DNS servers which will be used as forwarders.
69# (list value)
70#dnsmasq_dns_servers =
71
72# Base log dir for dnsmasq logging. The log contains DHCP and DNS log
73# information and is useful for debugging issues with either DHCP or DNS. If
74# this section is null, disable dnsmasq log. (string value)
75#dnsmasq_base_log_dir = <None>
76
77# Enables the dnsmasq service to provide name resolution for instances via DNS
78# resolvers on the host running the DHCP agent. Effectively removes the '--no-
79# resolv' option from the dnsmasq process arguments. Adding custom DNS
80# resolvers to the 'dnsmasq_dns_servers' option disables this feature. (boolean
81# value)
82#dnsmasq_local_resolv = false
83
84# Limit number of leases to prevent a denial-of-service. (integer value)
85#dnsmasq_lease_max = 16777216
86
87# Use broadcast in DHCP replies. (boolean value)
88#dhcp_broadcast_reply = false
89
90#
91# From oslo.log
92#
93
94# If set to true, the logging level will be set to DEBUG instead of the default
95# INFO level. (boolean value)
96# Note: This option can be changed without restarting.
97#debug = false
98
99# The name of a logging configuration file. This file is appended to any
100# existing logging configuration files. For details about logging configuration
101# files, see the Python logging module documentation. Note that when logging
102# configuration files are used then all logging configuration is set in the
103# configuration file and other logging configuration options are ignored (for
104# example, logging_context_format_string). (string value)
105# Note: This option can be changed without restarting.
106# Deprecated group/name - [DEFAULT]/log_config
107#log_config_append = <None>
108
109# Defines the format string for %%(asctime)s in log records. Default:
110# %(default)s . This option is ignored if log_config_append is set. (string
111# value)
112#log_date_format = %Y-%m-%d %H:%M:%S
113
114# (Optional) Name of log file to send logging output to. If no default is set,
115# logging will go to stderr as defined by use_stderr. This option is ignored if
116# log_config_append is set. (string value)
117# Deprecated group/name - [DEFAULT]/logfile
118#log_file = <None>
119
120# (Optional) The base directory used for relative log_file paths. This option
121# is ignored if log_config_append is set. (string value)
122# Deprecated group/name - [DEFAULT]/logdir
123#log_dir = <None>
124
125# Uses logging handler designed to watch file system. When log file is moved or
126# removed this handler will open a new log file with specified path
127# instantaneously. It makes sense only if log_file option is specified and
128# Linux platform is used. This option is ignored if log_config_append is set.
129# (boolean value)
130#watch_log_file = false
131
132# Use syslog for logging. Existing syslog format is DEPRECATED and will be
133# changed later to honor RFC5424. This option is ignored if log_config_append
134# is set. (boolean value)
135#use_syslog = false
136
137# Enable journald for logging. If running in a systemd environment you may wish
138# to enable journal support. Doing so will use the journal native protocol
139# which includes structured metadata in addition to log messages.This option is
140# ignored if log_config_append is set. (boolean value)
141#use_journal = false
142
143# Syslog facility to receive log lines. This option is ignored if
144# log_config_append is set. (string value)
145#syslog_log_facility = LOG_USER
146
147# Log output to standard error. This option is ignored if log_config_append is
148# set. (boolean value)
149#use_stderr = false
150
151# Format string to use for log messages with context. (string value)
152#logging_context_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s
153
154# Format string to use for log messages when context is undefined. (string
155# value)
156#logging_default_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s
157
158# Additional data to append to log message when logging level for the message
159# is DEBUG. (string value)
160#logging_debug_format_suffix = %(funcName)s %(pathname)s:%(lineno)d
161
162# Prefix each line of exception output with this format. (string value)
163#logging_exception_prefix = %(asctime)s.%(msecs)03d %(process)d ERROR %(name)s %(instance)s
164
165# Defines the format string for %(user_identity)s that is used in
166# logging_context_format_string. (string value)
167#logging_user_identity_format = %(user)s %(tenant)s %(domain)s %(user_domain)s %(project_domain)s
168
169# List of package logging levels in logger=LEVEL pairs. This option is ignored
170# if log_config_append is set. (list value)
171#default_log_levels = amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN,suds=INFO,oslo.messaging=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
172
173# Enables or disables publication of error events. (boolean value)
174#publish_errors = false
175
176# The format for an instance that is passed with the log message. (string
177# value)
178#instance_format = "[instance: %(uuid)s] "
179
180# The format for an instance UUID that is passed with the log message. (string
181# value)
182#instance_uuid_format = "[instance: %(uuid)s] "
183
184# Interval, number of seconds, of log rate limiting. (integer value)
185#rate_limit_interval = 0
186
187# Maximum number of logged messages per rate_limit_interval. (integer value)
188#rate_limit_burst = 0
189
190# Log level name used by rate limiting: CRITICAL, ERROR, INFO, WARNING, DEBUG
191# or empty string. Logs with level greater or equal to rate_limit_except_level
192# are not filtered. An empty string means that all levels are filtered. (string
193# value)
194#rate_limit_except_level = CRITICAL
195
196# Enables or disables fatal status of deprecations. (boolean value)
197#fatal_deprecations = false
198
199
200[agent]
201
202#
203# From neutron.az.agent
204#
205
206# Availability zone of this node (string value)
207#availability_zone = nova
208
209#
210# From neutron.base.agent
211#
53 212
54# Location to store DHCP server config files 213# Seconds between nodes reporting state to server; should be less than
55# dhcp_confs = $state_path/dhcp 214# agent_down_time, best if it is half or less than agent_down_time. (floating
215# point value)
216#report_interval = 30
56 217
57# Domain to use for building the hostnames 218# Log agent heartbeats (boolean value)
58# dhcp_domain = openstacklocal 219#log_agent_heartbeats = false
59 220
60# Override the default dnsmasq settings with this file
61# dnsmasq_config_file =
62 221
63# Use another DNS server before any in /etc/resolv.conf. 222[ovs]
64# dnsmasq_dns_server =
65 223
66# Limit number of leases to prevent a denial-of-service. 224#
67# dnsmasq_lease_max = 16777216 225# From neutron.base.agent
226#
68 227
69# Location to DHCP lease relay UNIX domain socket 228# The interface for interacting with the OVSDB (string value)
70# dhcp_lease_relay_socket = $state_path/dhcp/lease_relay 229# Allowed values: vsctl, native
230#ovsdb_interface = native
71 231
72# Location of Metadata Proxy UNIX domain socket 232# The connection string for the OVSDB backend. Will be used by ovsdb-client
73# metadata_proxy_socket = $state_path/metadata_proxy 233# when monitoring and used for the all ovsdb commands when native
234# ovsdb_interface is enabled (string value)
235#ovsdb_connection = tcp:127.0.0.1:6640