Advertisement
garysday

neutron

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