Advertisement
KnowP

Neutron.conf

Oct 19th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 18.41 KB | None | 0 0
  1. /etc/neutron/neutron.conf
  2.  
  3. [DEFAULT]
  4. # Print more verbose output (set logging level to INFO instead of default WARNING level).
  5. # verbose = True
  6.  
  7. # Print debugging output (set logging level to DEBUG instead of default WARNING level).
  8. # debug = False
  9.  
  10. # Where to store Neutron state files.  This directory must be writable by the
  11. # user executing the agent.
  12. # state_path = /var/lib/neutron
  13.  
  14. # Where to store lock files
  15. # lock_path = $state_path/lock
  16.  
  17. # log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s
  18. # log_date_format = %Y-%m-%d %H:%M:%S
  19.  
  20. # use_syslog                           -> syslog
  21. # log_file and log_dir                 -> log_dir/log_file
  22. # (not log_file) and log_dir           -> log_dir/{binary_name}.log
  23. # use_stderr                           -> stderr
  24. # (not user_stderr) and (not log_file) -> stdout
  25. # publish_errors                       -> notification system
  26.  
  27. # use_syslog = False
  28. # syslog_log_facility = LOG_USER
  29.  
  30. # use_stderr = False
  31. # log_file =
  32. # log_dir =
  33.  
  34. # publish_errors = False
  35.  
  36. # Address to bind the API server to
  37. # bind_host = 0.0.0.0
  38.  
  39. # Port the bind the API server to
  40. # bind_port = 9696
  41.  
  42. # Path to the extensions.  Note that this can be a colon-separated list of
  43. # paths.  For example:
  44. # api_extensions_path = extensions:/path/to/more/extensions:/even/more/extensions
  45. # The __path__ of neutron.extensions is appended to this, so if your
  46. # extensions are in there you don't need to specify them here
  47. # api_extensions_path =
  48.  
  49. # (StrOpt) Neutron core plugin entrypoint to be loaded from the
  50. # neutron.core_plugins namespace. See setup.cfg for the entrypoint names of the
  51. # plugins included in the neutron source distribution. For compatibility with
  52. # previous versions, the class name of a plugin can be specified instead of its
  53. # entrypoint name.
  54. #
  55. # core_plugin =
  56. # Example: core_plugin = ml2
  57. core_plugin = ml2
  58. #core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
  59.  
  60. # (ListOpt) List of service plugin entrypoints to be loaded from the
  61. # neutron.service_plugins namespace. See setup.cfg for the entrypoint names of
  62. # the plugins included in the neutron source distribution. For compatibility
  63. # with previous versions, the class name of a plugin can be specified instead
  64. # of its entrypoint name.
  65. #
  66. # service_plugins =
  67. # Example: service_plugins = router,firewall,lbaas,vpnaas,metering
  68. service_plugins = router,lbaas
  69. #service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
  70.  
  71. # Paste configuration file
  72. # api_paste_config = /usr/share/neutron/api-paste.ini
  73.  
  74. # The strategy to be used for auth.
  75. # Supported values are 'keystone'(default), 'noauth'.
  76. # auth_strategy = noauth
  77. auth_strategy=keystone
  78.  
  79. # Base MAC address. The first 3 octets will remain unchanged. If the
  80. # 4h octet is not 00, it will also be used. The others will be
  81. # randomly generated.
  82. # 3 octet
  83. # base_mac = fa:16:3e:00:00:00
  84. # 4 octet
  85. # base_mac = fa:16:3e:4f:00:00
  86.  
  87. # Maximum amount of retries to generate a unique MAC address
  88. # mac_generation_retries = 16
  89.  
  90. # DHCP Lease duration (in seconds)
  91. # dhcp_lease_duration = 86400
  92.  
  93. # Allow sending resource operation notification to DHCP agent
  94. # dhcp_agent_notification = True
  95.  
  96. # Enable or disable bulk create/update/delete operations
  97. # allow_bulk = True
  98. # Enable or disable pagination
  99. # allow_pagination = False
  100. # Enable or disable sorting
  101. # allow_sorting = False
  102. # Enable or disable overlapping IPs for subnets
  103. # Attention: the following parameter MUST be set to False if Neutron is
  104. # being used in conjunction with nova security groups
  105. # allow_overlapping_ips = True
  106. allow_overlapping_ips = True
  107. # Ensure that configured gateway is on subnet
  108. # force_gateway_on_subnet = True
  109.  
  110.  
  111. # RPC configuration options. Defined in rpc __init__
  112. # The messaging module to use, defaults to kombu.
  113. rpc_backend = neutron.openstack.common.rpc.impl_kombu
  114. # rpc_backend = neutron.openstack.common.rpc.impl_qpid
  115. #rpc_backend=rabbit
  116. # Size of RPC thread pool
  117. # rpc_thread_pool_size = 64
  118. # Size of RPC connection pool
  119. # rpc_conn_pool_size = 30
  120. # Seconds to wait for a response from call or multicall
  121. # rpc_response_timeout = 60
  122. # Seconds to wait before a cast expires (TTL). Only supported by impl_zmq.
  123. # rpc_cast_timeout = 30
  124. # Modules of exceptions that are permitted to be recreated
  125. # upon receiving exception data from an rpc call.
  126. # allowed_rpc_exception_modules = neutron.openstack.common.exception, nova.exception
  127. # AMQP exchange to connect to if using RabbitMQ or QPID
  128. # control_exchange = neutron
  129.  
  130. # If passed, use a fake RabbitMQ provider
  131. # fake_rabbit = False
  132.  
  133. # Configuration options if sending notifications via kombu rpc (these are
  134. # the defaults)
  135. # SSL version to use (valid only if SSL enabled)
  136. # kombu_ssl_version =
  137. # SSL key file (valid only if SSL enabled)
  138. # kombu_ssl_keyfile =
  139. # SSL cert file (valid only if SSL enabled)
  140. # kombu_ssl_certfile =
  141. # SSL certification authority file (valid only if SSL enabled)
  142. # kombu_ssl_ca_certs =
  143. # IP address of the RabbitMQ installation
  144. # rabbit_host = localhost
  145. rabbit_host = newcontroller
  146. # Password of the RabbitMQ server
  147. # rabbit_password = guest
  148. # Port where RabbitMQ server is running/listening
  149. # rabbit_port = 5672
  150. # RabbitMQ single or HA cluster (host:port pairs i.e: host1:5672, host2:5672)
  151. # rabbit_hosts is defaulted to '$rabbit_host:$rabbit_port'
  152. # rabbit_hosts = localhost:5672
  153. # User ID used for RabbitMQ connections
  154. # rabbit_userid = guest
  155. # Location of a virtual RabbitMQ installation.
  156. # rabbit_virtual_host = /
  157. # Maximum retries with trying to connect to RabbitMQ
  158. # (the default of 0 implies an infinite retry count)
  159. # rabbit_max_retries = 0
  160. # RabbitMQ connection retry interval
  161. # rabbit_retry_interval = 1
  162. # Use HA queues in RabbitMQ (x-ha-policy: all). You need to
  163. # wipe RabbitMQ database when changing this option. (boolean value)
  164. # rabbit_ha_queues = false
  165.  
  166. # QPID
  167. # rpc_backend=neutron.openstack.common.rpc.impl_qpid
  168. # Qpid broker hostname
  169. # qpid_hostname = localhost
  170. # qpid_hostname= newcontroller
  171. # Qpid broker port
  172. # qpid_port = 5672
  173. # Qpid single or HA cluster (host:port pairs i.e: host1:5672, host2:5672)
  174. # qpid_hosts is defaulted to '$qpid_hostname:$qpid_port'
  175. # qpid_hosts = localhost:5672
  176. # Username for qpid connection
  177. # qpid_username = ''
  178. # Password for qpid connection
  179. # qpid_password = ''
  180. # Space separated list of SASL mechanisms to use for auth
  181. # qpid_sasl_mechanisms = ''
  182. # Seconds between connection keepalive heartbeats
  183. # qpid_heartbeat = 60
  184. # Transport to use, either 'tcp' or 'ssl'
  185. # qpid_protocol = tcp
  186. # Disable Nagle algorithm
  187. # qpid_tcp_nodelay = True
  188.  
  189. # ZMQ
  190. # rpc_backend=neutron.openstack.common.rpc.impl_zmq
  191. # ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.
  192. # The "host" option should point or resolve to this address.
  193. # rpc_zmq_bind_address = *
  194.  
  195. # ============ Notification System Options =====================
  196.  
  197. # Notifications can be sent when network/subnet/port are created, updated or deleted.
  198. # There are three methods of sending notifications: logging (via the
  199. # log_file directive), rpc (via a message queue) and
  200. # noop (no notifications sent, the default)
  201.  
  202. # Notification_driver can be defined multiple times
  203. # Do nothing driver
  204. # notification_driver = neutron.openstack.common.notifier.no_op_notifier
  205. # Logging driver
  206. # notification_driver = neutron.openstack.common.notifier.log_notifier
  207. # RPC driver.
  208. # notification_driver = neutron.openstack.common.notifier.rpc_notifier
  209.  
  210. # default_notification_level is used to form actual topic name(s) or to set logging level
  211. # default_notification_level = INFO
  212.  
  213. # default_publisher_id is a part of the notification payload
  214. # host = myhost.com
  215. # default_publisher_id = $host
  216.  
  217. # Defined in rpc_notifier, can be comma separated values.
  218. # The actual topic names will be %s.%(default_notification_level)s
  219. # notification_topics = notifications
  220.  
  221. # Default maximum number of items returned in a single response,
  222. # value == infinite and value < 0 means no max limit, and value must
  223. # be greater than 0. If the number of items requested is greater than
  224. # pagination_max_limit, server will just return pagination_max_limit
  225. # of number of items.
  226. # pagination_max_limit = -1
  227.  
  228. # Maximum number of DNS nameservers per subnet
  229. # max_dns_nameservers = 5
  230.  
  231. # Maximum number of host routes per subnet
  232. # max_subnet_host_routes = 20
  233.  
  234. # Maximum number of fixed ips per port
  235. # max_fixed_ips_per_port = 5
  236.  
  237. # =========== items for agent management extension =============
  238. # Seconds to regard the agent as down; should be at least twice
  239. # report_interval, to be sure the agent is down for good
  240. # agent_down_time = 75
  241. # ===========  end of items for agent management extension =====
  242.  
  243. # =========== items for agent scheduler extension =============
  244. # Driver to use for scheduling network to DHCP agent
  245. # network_scheduler_driver = neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler
  246. # Driver to use for scheduling router to a default L3 agent
  247. # router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceScheduler
  248. # Driver to use for scheduling a loadbalancer pool to an lbaas agent
  249. # loadbalancer_pool_scheduler_driver = neutron.services.loadbalancer.agent_scheduler.ChanceScheduler
  250.  
  251. # Allow auto scheduling networks to DHCP agent. It will schedule non-hosted
  252. # networks to first DHCP agent which sends get_active_networks message to
  253. # neutron server
  254. # network_auto_schedule = True
  255.  
  256. # Allow auto scheduling routers to L3 agent. It will schedule non-hosted
  257. # routers to first L3 agent which sends sync_routers message to neutron server
  258. # router_auto_schedule = True
  259.  
  260. # Number of DHCP agents scheduled to host a network. This enables redundant
  261. # DHCP agents for configured networks.
  262. # dhcp_agents_per_network = 1
  263.  
  264. # ===========  end of items for agent scheduler extension =====
  265.  
  266. # =========== WSGI parameters related to the API server ==============
  267. # Number of separate worker processes to spawn.  The default, 0, runs the
  268. # worker thread in the current process.  Greater than 0 launches that number of
  269. # child processes as workers.  The parent process manages them.
  270. # api_workers = 0
  271.  
  272. # Number of separate RPC worker processes to spawn.  The default, 0, runs the
  273. # worker thread in the current process.  Greater than 0 launches that number of
  274. # child processes as RPC workers.  The parent process manages them.
  275. # This feature is experimental until issues are addressed and testing has been
  276. # enabled for various plugins for compatibility.
  277. # rpc_workers = 0
  278.  
  279. # Sets the value of TCP_KEEPIDLE in seconds to use for each server socket when
  280. # starting API server. Not supported on OS X.
  281. # tcp_keepidle = 600
  282.  
  283. # Number of seconds to keep retrying to listen
  284. # retry_until_window = 30
  285.  
  286. # Number of backlog requests to configure the socket with.
  287. # backlog = 4096
  288.  
  289. # Max header line to accommodate large tokens
  290. # max_header_line = 16384
  291.  
  292. # Enable SSL on the API server
  293. # use_ssl = False
  294.  
  295. # Certificate file to use when starting API server securely
  296. # ssl_cert_file = /path/to/certfile
  297.  
  298. # Private key file to use when starting API server securely
  299. # ssl_key_file = /path/to/keyfile
  300.  
  301. # CA certificate file to use when starting API server securely to
  302. # verify connecting clients. This is an optional parameter only required if
  303. # API clients need to authenticate to the API server using SSL certificates
  304. # signed by a trusted CA
  305. # ssl_ca_file = /path/to/cafile
  306. # ======== end of WSGI parameters related to the API server ==========
  307.  
  308.  
  309. # ======== neutron nova interactions ==========
  310. # Send notification to nova when port status is active.
  311. # notify_nova_on_port_status_changes = False
  312.  
  313. # Send notifications to nova when port data (fixed_ips/floatingips) change
  314. # so nova can update it's cache.
  315. # notify_nova_on_port_data_changes = False
  316.  
  317. # URL for connection to nova (Only supports one nova region currently).
  318. # nova_url = http://127.0.0.1:8774/v2
  319.  
  320. # Name of nova region to use. Useful if keystone manages more than one region
  321. # nova_region_name =
  322.  
  323. # Username for connection to nova in admin context
  324. # nova_admin_username =
  325.  
  326. # The uuid of the admin nova tenant
  327. # nova_admin_tenant_id =
  328.  
  329. # Password for connection to nova in admin context.
  330. # nova_admin_password =
  331.  
  332. # Authorization URL for connection to nova in admin context.
  333. # nova_admin_auth_url =
  334.  
  335. # Number of seconds between sending events to nova if there are any events to send
  336. # send_events_interval = 2
  337.  
  338. # ======== end of neutron nova interactions ==========
  339.  
  340. [quotas]
  341. # Default driver to use for quota checks
  342. # quota_driver = neutron.db.quota_db.DbQuotaDriver
  343.  
  344. # Resource name(s) that are supported in quota features
  345. # quota_items = network,subnet,port
  346.  
  347. # Default number of resource allowed per tenant. A negative value means
  348. # unlimited.
  349. # default_quota = -1
  350.  
  351. # Number of networks allowed per tenant. A negative value means unlimited.
  352. # quota_network = 10
  353.  
  354. # Number of subnets allowed per tenant. A negative value means unlimited.
  355. # quota_subnet = 10
  356.  
  357. # Number of ports allowed per tenant. A negative value means unlimited.
  358. # quota_port = 50
  359.  
  360. # Number of security groups allowed per tenant. A negative value means
  361. # unlimited.
  362. # quota_security_group = 10
  363.  
  364. # Number of security group rules allowed per tenant. A negative value means
  365. # unlimited.
  366. # quota_security_group_rule = 100
  367.  
  368. # Number of vips allowed per tenant. A negative value means unlimited.
  369. # quota_vip = 10
  370.  
  371. # Number of pools allowed per tenant. A negative value means unlimited.
  372. # quota_pool = 10
  373.  
  374. # Number of pool members allowed per tenant. A negative value means unlimited.
  375. # The default is unlimited because a member is not a real resource consumer
  376. # on Openstack. However, on back-end, a member is a resource consumer
  377. # and that is the reason why quota is possible.
  378. # quota_member = -1
  379.  
  380. # Number of health monitors allowed per tenant. A negative value means
  381. # unlimited.
  382. # The default is unlimited because a health monitor is not a real resource
  383. # consumer on Openstack. However, on back-end, a member is a resource consumer
  384. # and that is the reason why quota is possible.
  385. # quota_health_monitors = -1
  386.  
  387. # Number of routers allowed per tenant. A negative value means unlimited.
  388. # quota_router = 10
  389.  
  390. # Number of floating IPs allowed per tenant. A negative value means unlimited.
  391. # quota_floatingip = 50
  392.  
  393. [agent]
  394. # Use "sudo neutron-rootwrap /etc/neutron/rootwrap.conf" to use the real
  395. # root filter facility.
  396. # Change to "sudo" to skip the filtering and just run the comand directly
  397. # root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
  398.  
  399. # =========== items for agent management extension =============
  400. # seconds between nodes reporting state to server; should be less than
  401. # agent_down_time, best if it is half or less than agent_down_time
  402. # report_interval = 30
  403.  
  404. # ===========  end of items for agent management extension =====
  405.  
  406. [keystone_authtoken]
  407. auth_uri=http://newcontroller:5000/v2.0
  408. identity_uri=http://newcontroller:35357
  409. # auth_host = 127.0.0.1
  410. auth_host=newcontroller
  411. # auth_port = 35357
  412. auth_port=35357
  413. # auth_protocol = http
  414. auth_protocol=http
  415. # admin_tenant_name = %SERVICE_TENANT_NAME%
  416. admin_tenant_name=service
  417. # admin_user = %SERVICE_USER%
  418. admin_user=neutron
  419. # admin_password = %SERVICE_PASSWORD%
  420. admin_password=mukesh
  421.  
  422. [database]
  423. # This line MUST be changed to actually run the plugin.
  424. # Example:
  425. # connection = mysql://root:pass@127.0.0.1:3306/neutron
  426. #connection=mysql://neutron:mukesh@newcontroller/neutron
  427.  
  428. # Replace 127.0.0.1 above with the IP address of the database used by the
  429. # main neutron server. (Leave it as is if the database runs on this host.)
  430. # connection = sqlite://
  431.  
  432. # The SQLAlchemy connection string used to connect to the slave database
  433. # slave_connection =
  434.  
  435. # Database reconnection retry times - in event connectivity is lost
  436. # set to -1 implies an infinite retry count
  437. # max_retries = 10
  438.  
  439. # Database reconnection interval in seconds - if the initial connection to the
  440. # database fails
  441. # retry_interval = 10
  442.  
  443. # Minimum number of SQL connections to keep open in a pool
  444. # min_pool_size = 1
  445.  
  446. # Maximum number of SQL connections to keep open in a pool
  447. # max_pool_size = 10
  448.  
  449. # Timeout in seconds before idle sql connections are reaped
  450. # idle_timeout = 3600
  451.  
  452. # If set, use this value for max_overflow with sqlalchemy
  453. # max_overflow = 20
  454.  
  455. # Verbosity of SQL debugging information. 0=None, 100=Everything
  456. # connection_debug = 0
  457.  
  458. # Add python stack traces to SQL as comment strings
  459. # connection_trace = False
  460.  
  461. # If set, use this value for pool_timeout with sqlalchemy
  462. # pool_timeout = 10
  463.  
  464. [service_providers]
  465. # Specify service providers (drivers) for advanced services like loadbalancer, VPN, Firewall.
  466. # Must be in form:
  467. # service_provider=<service_type>:<name>:<driver>[:default]
  468. # List of allowed service types includes LOADBALANCER, FIREWALL, VPN
  469. # Combination of <service type> and <name> must be unique; <driver> must also be unique
  470. # This is multiline option, example for default provider:
  471. # service_provider=LOADBALANCER:name:lbaas_plugin_driver_path:default
  472. # example of non-default provider:
  473. # service_provider=FIREWALL:name2:firewall_driver_path
  474. # --- Reference implementations ---
  475. service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
  476. service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default
  477. # In order to activate Radware's lbaas driver you need to uncomment the next line.
  478. # If you want to keep the HA Proxy as the default lbaas driver, remove the attribute default from the line below.
  479. # Otherwise comment the HA Proxy line
  480. # service_provider = LOADBALANCER:Radware:neutron.services.loadbalancer.drivers.radware.driver.LoadBalancerDriver:default
  481. # uncomment the following line to make the 'netscaler' LBaaS provider available.
  482. # service_provider=LOADBALANCER:NetScaler:neutron.services.loadbalancer.drivers.netscaler.netscaler_driver.NetScalerPluginDriver
  483. # Uncomment the following line (and comment out the OpenSwan VPN line) to enable Cisco's VPN driver.
  484. # service_provider=VPN:cisco:neutron.services.vpn.service_drivers.cisco_ipsec.CiscoCsrIPsecVPNDriver:default
  485. # Uncomment the line below to use Embrane heleos as Load Balancer service provider.
  486. # service_provider=LOADBALANCER:Embrane:neutron.services.loadbalancer.drivers.embrane.driver.EmbraneLbaas:default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement