背景:
阅读新闻
OpenStack Grizzly 多节点部署在 Ubuntu 12.04
[日期:2013-10-30] 来源:longgeek.com 作者:Linux [字体:]
Quantum
安装 Quantum openvswitch agent:
apt-get install quantum-plugin-openvswitch-agent编辑 OVS 插件配置文件 /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini:
[DATABASE] sql_connection = mysql://quantum:quantum@172.16.0.51/quantum reconnect_interval = 2 [OVS] enable_tunneling = True tenant_network_type = gre tunnel_id_ranges = 1:1000 local_ip = 10.10.10.53 integration_bridge = br-int tunnel_bridge = br-tun [AGENT] polling_interval = 2 [SECURITYGROUP]编辑 /etc/quantum/quantum.conf:
[DEFAULT] debug = True verbose = True state_path = /var/lib/quantum lock_path = $state_path/lock bind_host = 0.0.0.0 bind_port = 9696 core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2 api_paste_config = /etc/quantum/api-paste.ini control_exchange = quantum rabbit_host = 172.16.0.51 rabbit_password = guest rabbit_port = 5672 rabbit_userid = guest notification_driver = quantum.openstack.common.notifier.rpc_notifier default_notification_level = INFO notification_topics = notifications [QUOTAS] [DEFAULT_SERVICETYPE] [AGENT] root_helper = sudo quantum-rootwrap /etc/quantum/rootwrap.conf [keystone_authtoken] auth_host = 172.16.0.51 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = quantum admin_password = password signing_dir = /var/lib/quantum/keystone-signin启动服务:
service quantum-plugin-openvswitch-agent restart Nova安装 nova-compute:
apt-get install nova-compute在 /etc/nova/api-paste.ini 中修改 autotoken 验证部分:
[filter:authtoken] paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory auth_host = 172.16.0.51 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = nova admin_password = password signing_dir = /tmp/keystone-signing-nova # Workaround for https://bugs.launchpad.net/nova/+bug/1154809 auth_version = v2.0修改 /etc/nova/nova.conf, 类似下面这样:
[DEFAULT] # LOGS/STATE debug = False verbose = True logdir = /var/log/nova state_path = /var/lib/nova lock_path = /var/lock/nova rootwrap_config = /etc/nova/rootwrap.conf dhcpbridge = /usr/bin/nova-dhcpbridge # SCHEDULER compute_scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler ## VOLUMES volume_api_class = nova.volume.cinder.API osapi_volume_listen_port=5900 # DATABASE sql_connection = mysql://nova:nova@172.16.0.51/nova # COMPUTE libvirt_type = kvm compute_driver = libvirt.LibvirtDriver instance_name_template = instance-%08x api_paste_config = /etc/nova/api-paste.ini # COMPUTE/APIS: if you have separate configs for separate services # this flag is required for both nova-api and nova-compute allow_resize_to_same_host = True # APIS osapi_compute_extension = nova.api.openstack.compute.contrib.standard_extensions ec2_dmz_host = 172.16.0.51 s3_host = 172.16.0.51 metadata_host=172.16.0.51 metadata_listen=0.0.0.0 # RABBITMQ rabbit_host = 172.16.0.51 rabbit_password = guest # GLANCE image_service = nova.image.glance.GlanceImageService glance_api_servers = 172.16.0.51:9292 # NETWORK network_api_class = nova.network.quantumv2.api.API quantum_url = :9696 quantum_auth_strategy = keystone quantum_admin_tenant_name = service quantum_admin_username = quantum quantum_admin_password = password quantum_admin_auth_url = :35357/v2.0 libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver # NOVNC CONSOLE novncproxy_base_url = :6080/vnc_auto.html # Change vncserver_proxyclient_address and vncserver_listen to match each compute host vncserver_proxyclient_address = 172.16.0.53 vncserver_listen = 0.0.0.0 # AUTHENTICATION auth_strategy = keystone [keystone_authtoken] auth_host = 172.16.0.51 auth_port = 35357 auth_protocol = http admin_tenant_name = service admin_user = nova admin_password = password signing_dir = /tmp/keystone-signing-nova启动 nova-compute 服务:
service nova-compute restart检查 nova 相关服务笑脸:
发现 compute 节点已经加入:
nova-manage service list Binary Host Zone Status State Updated_At nova-consoleauth control internal enabled 2013-03-31 11:38:32 nova-cert control internal enabled 2013-03-31 11:38:31 nova-scheduler control internal enabled 2013-03-31 11:38:31 nova-conductor control internal enabled 2013-03-31 11:38:27 nova-compute compute1 nova enabled 2013-03-31 11:38:26 开始创建 vm创建 quantum 网络和虚拟机。
OpenStack G版本 Ubuntu 13.04三节点实验记录
相关资讯 OpenStack
本文评论 查看全部评论 (0)
尊重网上道德,遵守中华人民共和国的各项有关法律法规 承担一切因您的行为而直接或间接导致的民事或刑事法律责任 本站管理人员有权保留或删除其管辖留言中的任意内容 本���有权在网站内转载或引用您的评论 参与本评论即表明您已经阅读并接受上述条款
评论声明
最新资讯