Advertisement
Guest User

madko neutron.conf

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