分享

opentack-all-in-one 安装配置教程

venusf 发表于 2015-4-26 11:30:56 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 30324
本帖最后由 venusf 于 2015-4-26 11:34 编辑

1.安装openstack所需的package
  1. apt-get install -y rabbitmq-server &&
  2. apt-get install -y ntp vlan bridge-utils &&
  3. apt-get install -y keystone &&
  4. apt-get install -y glance &&
  5. apt-get install -y nova-api nova-cert nova-conductor nova-consoleauth nova-novncproxy nova-scheduler python-novaclient nova-compute nova-console &&
  6. apt-get install -y neutron-server neutron-plugin-openvswitch neutron-plugin-openvswitch-agent neutron-common neutron-dhcp-agent neutron-l3-agent neutron-metadata-agent openvswitch-switch &&
  7. apt-get install -y cinder-api cinder-scheduler cinder-volume lvm2 open-iscsi-utils open-iscsi iscsitarget sysfsutils &&
  8. apt-get install -y openstack-dashboard &&
  9. apt-get install -y mysql-server python-mysqldb
复制代码
最后需要输入mysql的密码
2.创建数据库
这里我设置的密码为password,先进入mysql,然后输入下面的命令
  1. create database keystone;
  2. GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'password';
  3. GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'password';
  4.         
  5. CREATE DATABASE glance;
  6. GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' IDENTIFIED BY 'password';
  7. GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%' IDENTIFIED BY 'password';
  8. CREATE DATABASE nova;
  9. GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'password';
  10. GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'password';
  11. CREATE DATABASE neutron;
  12. GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' IDENTIFIED BY 'password';
  13. GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' IDENTIFIED BY 'password';
  14.         
  15. CREATE DATABASE cinder;
  16. GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'localhost' IDENTIFIED BY 'password';
  17. GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'%' IDENTIFIED BY 'password';
复制代码
3.为各个组件配置keystone,
  1. export OS_SERVICE_TOKEN=ADMIN
  2. export OS_SERVICE_ENDPOINT=http://10.10.10.10:35357/v2.0  //此处的静态ip为你的机器与计算节点相连的
  3. //首先要配置好keystone
  4. keystone tenant-create --name=admin --description="Admin Tenant"
  5. keystone tenant-create --name=service --description="Service Tenant"
  6. keystone user-create --name=admin --pass=password --email=admin@example.com
  7. keystone role-create --name=admin
  8. keystone user-role-add --user=admin --tenant=admin --role=admin
  9. keystone service-create --name=keystone --type=identity --description="Keystone Identity Service"
  10. keystone endpoint-create --service=keystone --publicurl=http://X.X.X.X:5000/v2.0 --internalurl=http://10.10.10.51:5000/v2.0 --adminurl=http://10.10.10.10:35357/v2.0         //这里的X.X.X.X  ip为你的机器的外网ip,dashborad就是通过这个ip访问openstack的
  11. unset OS_SERVICE_TOKEN
  12. unset OS_SERVICE_ENDPOINT
  13. export OS_USERNAME=admin
  14. export OS_PASSWORD=password
  15. export OS_TENANT_NAME=admin
  16. export OS_AUTH_URL=http://10.10.10.10:35357/v2.0
  17. keystone user-create --name glance --pass password
  18. keystone user-role-add --user glance --tenant service --role admin
  19. keystone service-create --name glance --type image --description "OpenStack Image Service"
  20. keystone endpoint-create --service-id $(keystone service-list | awk '/ image / {print $2}') --publicurl http://10.239.52.7:9292 --internalurl http://10.10.10.10:9292 --adminurl http://10.10.10.10:9292 --region regionOne
  21. keystone user-create --name=nova --pass=password --email=nova@example.com
  22. keystone user-role-add --user=nova --tenant=service --role=admin
  23. keystone service-create --name=nova --type=compute --description="OpenStack Compute"
  24. keystone endpoint-create --service=nova --publicurl=http://X.X.X.X:8774/v2/%\(tenant_id\)s --internalurl=http://10.10.10.10:8774/v2/%\(tenant_id\)s --adminurl=http://10.10.10.10:8774/v2/%\(tenant_id\)s
  25. keystone user-create --name=neutron --pass=password --email=neutron@example.com
  26. keystone service-create --name=neutron --type=network --description="OpenStack Networking"
  27. keystone user-role-add --user=neutron --tenant=service --role=admin
  28. keystone endpoint-create --service=neutron --publicurl http://10.239.52.7:9696 --adminurl http://10.10.10.10:9696  --internalurl http://10.10.10.10:9696
  29. keystone user-create --name=cinder --pass=password --email=cinder@example.com
  30. keystone user-role-add --user=cinder --tenant=service --role=admin
  31. keystone service-create --name=cinder --type=volume --description="OpenStack Block Storage"
  32. keystone endpoint-create --service=cinder --publicurl=http://X.X.X.X:8776/v1/%\(tenant_id\)s --internalurl=http://10.10.10.10:8776/v1/%\(tenant_id\)s --adminurl=http://10.10.10.51:8776/v1/%\(tenant_id\)s
  33. keystone service-create --name=cinderv2 --type=volumev2 --description="OpenStack Block Storage v2"
  34. keystone endpoint-create --service=cinderv2 --publicurl=http://X.X.X.X:8776/v2/%\(tenant_id\)s --internalurl=http://10.10.10.10:8776/v2/%\(tenant_id\)s --adminurl=http://10.10.10.10:8776/v2/%\(tenant_id\)
复制代码


如果你的动态ip换成了其他的ip了,可以进入mysql,在keystone数据库中,select * from endpoint;查看url 的ip,然后通过该命令update endpoint set url=replace(url,'x.x.x.x旧ip','a.a.a.a新ip')修改。然后最好重启一下各种服务,如nova,neutron,keystone,rabbit,以及 source 一下opentack的环境变量
创建一个文件admin_creds,内容如下

opentack的环境变量
  1. export OS_USERNAME=admin
  2. export OS_PASSWORD=password
  3. export OS_TENANT_NAME=admin
  4. export OS_AUTH_URL=http://10.10.10.10:35357/v2.0
复制代码



4.修改各个组件的配置
nova.conf
  1. [database]
  2. connection = mysql://nova:password@10.10.10.10/nova
  3. [keystone_authtoken]
  4. #auth_uri = http://10.10.10.10:5000/v2.0
  5. #identity_uri = http://10.10.10.10:35357
  6. auth_uri = http://10.10.10.10:5000
  7. auth_host = 10.10.10.10
  8. auth_port = 35357
  9. auth_protocol = http
  10. admin_tenant_name = service
  11. admin_user = nova
  12. admin_password = password
  13. #[glance]
  14. #host = 10.10.10.10
  15. [conductor]
  16. workers=1
  17. [DEFAULT]
  18. logdir=/var/log/nova
  19. state_path=/var/lib/nova
  20. lock_path=/var/lock/nova
  21. force_dhcp_release=True
  22. iscsi_helper=tgtadm
  23. libvirt_use_virtio_for_bridges=True
  24. connection_type=libvirt
  25. root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
  26. verbose=True
  27. rpc_backend = nova.rpc.impl_kombu
  28. rabbit_host = 10.10.10.10
  29. rabbit_uid = guest
  30. rabbit_password = guest
  31. my_ip = 10.10.10.10
  32. vncserver_listen = 10.10.10.10
  33. vncserver_proxyclient_address = 10.10.10.10
  34. novncproxy_base_url=http://192.168.98.128:6080/vnc_auto.html
  35. glance_host = 10.10.10.10
  36. auth_strategy=keystone
  37. network_api_class=nova.network.neutronv2.api.API
  38. neutron_url=http://10.10.10.10:9696
  39. neutron_auth_strategy=keystone
  40. neutron_admin_tenant_name=service
  41. neutron_admin_username=neutron
  42. neutron_admin_password=password
  43. neutron_metadata_proxy_shared_secret=openstack
  44. neutron_admin_auth_url=http://10.10.10.10:35357/v2.0
  45. linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
  46. firewall_driver=nova.virt.firewall.NoopFirewallDriver
  47. security_group_api=neutron
  48. vif_plugging_is_fatal: false
  49. vif_plugging_timeout: 0
  50. osapi_compute_workers=1
  51. ec2_workers=1
  52. metadata_workers=1
复制代码
neutron.conf
  1. [DEFAULT]
  2. core_plugin = ml2
  3. notification_driver=neutron.openstack.common.notifier.rpc_notifier
  4. verbose=True
  5. rabbit_host=10.10.10.10
  6. rpc_backend=neutron.openstack.common.rpc.impl_kombu
  7. service_plugins=router
  8. allow_overlapping_ips=True
  9. auth_strategy=keystone
  10. neutron_metadata_proxy_shared_secret=openstack
  11. service_neutron_metadata_proxy=True
  12. nova_admin_password=password
  13. notify_nova_on_port_data_changes=True
  14. notify_nova_on_port_status_changes=True
  15. nova_admin_auth_url=http://10.10.10.10:35357/v2.0
  16. nova_admin_tenant_id=service
  17. nova_url=http://10.10.10.10:8774/v2
  18. nova_admin_username=nova
  19. lock_path = /var/lib/neutron/lock
  20. [keystone_authtoken]
  21. auth_host = 10.10.10.10
  22. auth_port = 35357
  23. auth_protocol = http
  24. admin_tenant_name = service
  25. admin_user = neutron
  26. admin_password = password
  27. signing_dir = $state_path/keystone-signing
  28. rpc_backend = neutron.openstack.common.rpc.impl_kombu
  29. rabbit_host = 10.10.10.10
  30. rabbit_port = 5672
  31. notify_nova_on_port_status_changes = True
  32. notify_nova_on_port_data_changes = True
  33. nova_url = http://10.10.10.10:8774
  34. nova_admin_username = nova
  35. nova_admin_tenant_id = service
  36. nova_admin_password = password
  37. nova_admin_auth_url = http://10.10.10.10:35357/v2.0
  38. [database]
  39. connection = mysql://neutron:password@10.10.10.10/neutron
  40. [agent]
  41. root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
复制代码
ml2_conf.ini
  1. [ml2]
  2. type_drivers=flat,gre
  3. tenant_network_types=gre,flat
  4. mechanism_drivers=openvswitch
  5. [ml2_type_flat]
  6. flat_networks = external
  7. [ml2_type_vlan]
  8. [ml2_type_gre]
  9. tunnel_id_ranges = 1:1000
  10. [ml2_type_vxlan]
  11. [securitygroup]
  12. enable_security_group=True
  13. enable_ipset = True
  14. [ovs]
  15. local_ip = 10.10.10.10
  16. tenant_network_type = gre
  17. enable_tunneling = True
  18. integration_bridge = br-int
  19. tunnel_bridge = br-tun
复制代码


metadata_agent.ini
  1. [DEFAULT]
  2. # Show debugging output in log (sets DEBUG log level output)
  3. # debug = True
  4. verbose = True
  5. nova_metadata_ip = 10.10.10.10
  6. auth_url = http://10.10.10.10:5000/v2.0
  7. auth_region = RegionOne
  8. admin_tenant_name = service
  9. admin_user = neutron
  10. admin_password = password
  11. metadata_proxy_shared_secret = openstack  
  12. metadata_workers = 1
复制代码
l3_agent.ini
  1. [DEFAULT]
  2. interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
  3. use_namespaces = True
  4. signing_dir = /var/cache/neutron
  5. admin_tenant_name = service
  6. admin_user = neutron
  7. admin_password = password
  8. auth_url = http://10.10.10.10:35357/v2.0
  9. l3_agent_manager = neutron.agent.l3_agent.L3NATAgentWithStateReport
  10. root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
复制代码
dhcp_agent.ini
  1. [DEFAULT]
  2. interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
  3. dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
  4. use_namespaces = True
复制代码
cinder.conf
  1. [DEFAULT]
  2. rootwrap_config = /etc/cinder/rootwrap.conf
  3. api_paste_confg = /etc/cinder/api-paste.ini
  4. iscsi_helper = tgtadm
  5. # control_exchange = cinder
  6. # notification_driver = cinder.openstack.common.notifier.rpc_notifier
  7. volume_name_template = volume-%s
  8. volume_group = cinder-volumes
  9. verbose = True
  10. debug = True
  11. auth_strategy = keystone
  12. state_path = /var/lib/cinder
  13. lock_path = /var/lock/cinder
  14. volumes_dir = /var/lib/cinder/volumes
  15. rpc_backend = cinder.openstack.common.rpc.impl_kombu
  16. rabbit_host = 10.10.10.10
  17. rabbit_port = 5672
  18. rabbit_userid = guest
  19. rabbit_password = guest
  20. glance_host = 10.10.10.10
  21. #my_ip = 10.10.10.10
  22. #rpc_backend = rabbit
  23. #rabbit_password = guest
  24. #rabbit_host = 10.10.10.10
  25. #glance_host = 10.10.10.10
  26. [keystone_authtoken]
  27. auth_uri = http://10.10.10.10:5000
  28. auth_host = 10.10.10.10
  29. auth_port = 35357
  30. auth_protocol = http
  31. admin_tenant_name = service
  32. admin_user = cinder
  33. admin_password = password
  34. [database]
  35. connection = mysql://cinder:password@10.10.10.10/cinder
复制代码
对于cinder创建volume的过程如下:
  1. ###################################################################
  2. dd if=/dev/sda of=cinder-volumes bs=1 count=0 seek=2.5G
  3. losetup /dev/loop2 cinder-volumes
  4. fdisk /dev/loop2
  5. #Type in the followings:
  6. n
  7. p
  8. 1
  9. ENTER
  10. ENTER
  11. t
  12. 8e
  13. w
  14. ###################################################################
复制代码



keystone.conf
  1. [DEFAULT]
  2. public_workers = 2
  3. admin_workers = 2
  4. log_dir=/var/log/keystone
  5. [assignment]
  6. [auth]
  7. [cache]
  8. [catalog]
  9. [database]
  10. connection = mysql://keystone:password@10.10.10.10/keystone
  11. [ec2]
  12. [endpoint_filter]
  13. [endpoint_policy]
  14. [federation]
  15. [identity]
  16. [identity_mapping]
  17. [kvs]
  18. [ldap]
  19. [matchmaker_redis]
  20. [matchmaker_ring]
  21. [memcache]
  22. [oauth1]
  23. [os_inherit]
  24. [paste_deploy]
  25. [saml]
  26. [signing]
  27. [ssl]
  28. [stats]
  29. [token]
  30. driver=keystone.token.persistence.backends.sql.Token
  31. [trust]
  32. [extra_headers]
  33. Distribution = Ubuntu
复制代码
glance-api.conf
  1. [DEFAULT]
  2. verbose = True
  3. default_store = file
  4. bind_host = 0.0.0.0
  5. bind_port = 9292
  6. log_file = /var/log/glance/api.log
  7. backlog = 4096
  8. workers = 4
  9. registry_port = 9191
  10. registry_client_protocol = http
  11. rabbit_host = 10.10.10.51
  12. rabbit_port = 5672
  13. rabbit_use_ssl = false
  14. rabbit_userid = guest
  15. rabbit_password = guest
  16. rabbit_virtual_host = /
  17. rabbit_notification_exchange = glance
  18. rabbit_notification_topic = notifications
  19. rabbit_durable_queues = False
  20. qpid_notification_exchange = glance
  21. qpid_notification_topic = notifications
  22. qpid_hostname = localhost
  23. qpid_port = 5672
  24. qpid_username =
  25. qpid_password =
  26. qpid_sasl_mechanisms =
  27. qpid_reconnect_timeout = 0
  28. qpid_reconnect_limit = 0
  29. qpid_reconnect_interval_min = 0
  30. qpid_reconnect_interval_max = 0
  31. qpid_reconnect_interval = 0
  32. qpid_heartbeat = 5
  33. qpid_protocol = tcp
  34. qpid_tcp_nodelay = True
  35. delayed_delete = False
  36. scrub_time = 43200
  37. scrubber_datadir = /var/lib/glance/scrubber
  38. image_cache_dir = /var/lib/glance/image-cache/
  39. [database]
  40. connection = mysql://glance:password@10.10.10.51/glance
  41. backend = sqlalchemy
  42. [keystone_authtoken]
  43. auth_uri = http://10.10.10.51:5000/v2.0
  44. identity_uri = http://10.10.10.51:35357
  45. admin_tenant_name = service
  46. admin_user = glance
  47. admin_password = password
  48. [paste_deploy]
  49. flavor=keystone
  50. [store_type_location_strategy]
  51. [profiler]
  52. [task]
  53. [glance_store]
  54. filesystem_store_datadir = /var/lib/glance/images/
  55. swift_store_auth_version = 2
  56. swift_store_auth_address = 127.0.0.1:5000/v2.0/
  57. swift_store_user = jdoe:jdoe
  58. swift_store_key = a86850deb2742ec3cb41518e26aa2d89
  59. swift_store_container = glance
  60. swift_store_create_container_on_put = False
  61. swift_store_large_object_size = 5120
  62. swift_store_large_object_chunk_size = 200
  63. swift_enable_snet = False
  64. s3_store_host = 127.0.0.1:8080/v1.0/
  65. s3_store_access_key = <20-char AWS access key>
  66. s3_store_secret_key = <40-char AWS secret key>
  67. s3_store_bucket = <lowercased 20-char aws access key>glance
  68. s3_store_create_bucket_on_put = False
  69. sheepdog_store_address = localhost
  70. sheepdog_store_port = 7000
  71. sheepdog_store_chunk_size = 64
复制代码


glance-register.conf

  1. [DEFAULT]
  2. bind_host = 0.0.0.0
  3. bind_port = 9191
  4. log_file = /var/log/glance/registry.log
  5. backlog = 4096
  6. workers = 1
  7. api_limit_max = 1000
  8. limit_param_default = 25
  9. rabbit_host = localhost
  10. rabbit_port = 5672
  11. rabbit_use_ssl = false
  12. rabbit_userid = guest
  13. rabbit_password = guest
  14. rabbit_virtual_host = /
  15. rabbit_notification_exchange = glance
  16. rabbit_notification_topic = notifications
  17. rabbit_durable_queues = False
  18. qpid_notification_exchange = glance
  19. qpid_notification_topic = notifications
  20. qpid_hostname = localhost
  21. qpid_port = 5672
  22. qpid_username =
  23. qpid_password =
  24. qpid_sasl_mechanisms =
  25. qpid_reconnect_timeout = 0
  26. qpid_reconnect_limit = 0
  27. qpid_reconnect_interval_min = 0
  28. qpid_reconnect_interval_max = 0
  29. qpid_reconnect_interval = 0
  30. qpid_heartbeat = 5
  31. qpid_protocol = tcp
  32. qpid_tcp_nodelay = True
  33. [database]
  34. connection = mysql://glance:password@10.10.10.10/glance
  35. [keystone_authtoken]
  36. auth_uri = http://10.10.10.10:5000/v2.0
  37. identity_uri = http://10.10.10.10:35357
  38. admin_tenant_name = service
  39. admin_user = glance
  40. admin_password = password
  41. [paste_deploy]
  42. flavor=keystone
  43. [profiler]
复制代码
上面的配置完成后执行下面的命令
  1. service keystone restart
  2. keystone-manage db_sync
  3. rm -f /var/lib/keystone/keystone.db
  4. glance-manage db_sync
  5. service glance-api restart
  6. service glance-registry restart
  7. rm -f /var/lib/glance/glance.sqlite
  8. rm -f /var/lib/nova/nova.sqlite
  9. nova-manage db sync
  10. service nova-api restart
  11. service nova-cert restart
  12. service nova-consoleauth restart
  13. service nova-scheduler restart
  14. service nova-conductor restart
  15. service nova-novncproxy restart
  16. service nova-compute restart
  17. service nova-console restart
  18. neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno        
  19. service neutron-server restart
  20. service neutron-plugin-openvswitch-agent restart
  21. service neutron-metadata-agent restart
  22. service neutron-dhcp-agent restart
  23. service neutron-l3-agent restart
复制代码


如果有instance一直处于deleting的状态 可以再数据库中,进入Nova数据库执行下面的命令
  1. delete from instance_actions_events;
  2. delete from instance_actions;
  3. delete from instance_faults;
  4. delete from instance_id_mappings;
  5. delete from instance_info_caches;
  6. delete from instance_metadata;
  7. delete from instance_system_metadata;
  8. delete from security_group_instance_association;
  9. delete from block_device_mapping;
  10. delete from instance_extra;
  11. delete from instances;
  12. delete from migrations;
  13. delete from reservations;
  14. delete from quota_usages;
  15. delete from task_log;
复制代码


5.添加compute节点
安装package
  1. apt-get -y install ntp &&
  2. apt-get -y install nova-compute sysfsutils &&
  3. apt-get -y install neutron-plugin-ml2 neutron-plugin-openvswitch-agent
复制代码
nova.conf
  1. [database]
  2. connection = mysql://nova:password@10.10.10.10/nova
  3. [keystone_authtoken]
  4. auth_host = 10.10.10.10
  5. auth_port = 35357
  6. auth_protocol = http
  7. admin_tenant_name = service
  8. admin_user = nova
  9. admin_password = password
  10. [conductor]
  11. workers=2
  12. [neutron]
  13. url = http://10.10.10.10:9696
  14. auth_strategy = keystone
  15. admin_auth_url = http://10.10.10.10:35357/v2.0
  16. admin_tenant_name = service
  17. admin_username = neutron
  18. admin_password = password
  19. [glance]
  20. host = 10.10.10.10
  21. [DEFAULT]
  22. logdir=/var/log/nova
  23. state_path=/var/lib/nova
  24. lock_path=/var/lock/nova
  25. force_dhcp_release=True
  26. iscsi_helper=tgtadm
  27. libvirt_use_virtio_for_bridges=True
  28. connection_type=libvirt
  29. root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
  30. #debug=True
  31. verbose=True
  32. rpc_backend = nova.rpc.impl_kombu
  33. rabbit_host = 10.10.10.10
  34. rabbit_uid = guest
  35. rabbit_password = guest
  36. my_ip = 10.10.10.3
  37. vncserver_listen = 0.0.0.0
  38. vncserver_proxyclient_address = 10.10.10.3
  39. novncproxy_base_url=http://10.239.52.71:6080/vnc_auto.html
  40. glance_host = 10.10.10.10
  41. auth_strategy=keystone
  42. network_api_class=nova.network.neutronv2.api.API
  43. neutron_url=http://10.10.10.10:9696
  44. neutron_auth_strategy=keystone
  45. neutron_admin_tenant_name=service
  46. neutron_admin_username=neutron
  47. neutron_admin_password=password
  48. neutron_metadata_proxy_shared_secret=openstack
  49. neutron_admin_auth_url=http://10.10.10.10:35357/v2.0
  50. linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
  51. firewall_driver=nova.virt.firewall.NoopFirewallDriver
  52. security_group_api=neutron
  53. vif_plugging_is_fatal: false
  54. vif_plugging_timeout: 0
  55. osapi_compute_workers=2
  56. ec2_workers=2
  57. metadata_workers=2
复制代码
neutron.conf
  1. [DEFAULT]
  2. verbose = True
  3. lock_path = $state_path/lock
  4. core_plugin = ml2
  5. service_plugins = router
  6. auth_strategy = keystone
  7. allow_overlapping_ips = True
  8. api_workers = 2
  9. rpc_workers = 2
  10. rabbit_host=10.10.10.51
  11. [matchmaker_redis]
  12. [matchmaker_ring]
  13. [quotas]
  14. [agent]
  15. root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
  16. [keystone_authtoken]
  17. auth_host = 10.10.10.51
  18. auth_port = 35357
  19. auth_protocol = http
  20. admin_tenant_name = service
  21. admin_user = neutron
  22. admin_password = password
  23. [database]
  24. [service_providers]
  25. service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
  26. service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default
复制代码
ml2_conf.ini
  1. [ml2]
  2. type_drivers = flat,gre
  3. tenant_network_types = gre
  4. mechanism_drivers = openvswitch
  5. [ml2_type_flat]
  6. flat_networks =external
  7. [ml2_type_vlan]
  8. [ml2_type_gre]
  9. tunnel_id_ranges = 1:1000
  10. [ml2_type_vxlan]
  11. [securitygroup]
  12. enable_security_group = True
  13. enable_ipset = True
  14. [OVS]
  15. tenant_network_type = gre
  16. enable_tunneling = True
  17. integration_bridge = br-int
  18. tunnel_bridge = br-tun
  19. local_ip = 10.10.10.11
复制代码



已有(2)人评论

跳转到指定楼层
tntzbzc 发表于 2015-4-26 11:51:33
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条