Guest User

Untitled

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