背景:
阅读新闻
OpenStack G版本 Ubuntu 13.04三节点实验记录
[日期:2013-10-30] 来源:Linux社区 作者:jerrymin [字体:]
3.5. Quantum
安装Quantum openvswitch agent(二层交换), l3 agent(3层路由) and dhcpagent
apt-get -y installquantum-plugin-openvswitch-agent quantum-dhcp-agent quantum-l3-agentquantum-metadata-agent
编辑/etc/quantum/api-paste.ini
[filter:authtoken]
paste.filter_factory =keystoneclient.middleware.auth_token:filter_factory
auth_host = 10.10.10.51
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = quantum
admin_password = 123456
编辑OVS plugin 配置/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
#Under the database section
[DATABASE]
sql_connection =mysql://quantum:quantum@10.10.10.51/quantum
#Under the OVS section
[OVS]
tenant_network_type = gre
tunnel_id_ranges = 1:1000
integration_bridge = br-int
tunnel_bridge = br-tun
local_ip = 10.20.20.52
enable_tunneling = True
#Firewall driver for realizing quantumsecurity group function
[SECURITYGROUP]
firewall_driver =quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
设置/etc/quantum/quantum.conf
root@network:~# cat/etc/quantum/quantum.conf |grep -v ^#|grep -v ^$
[DEFAULT]
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
fake_rabbit = False
rabbit_host = 10.10.10.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 = 10.10.10.51
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = quantum
admin_password = 123456
signing_dir =/var/lib/quantum/keystone-signing
更新/etc/quantum/metadata_agent.ini(和控制节点通信)
root@network:~# cat/etc/quantum/metadata_agent.ini |grep -v^# |grep -v ^$
[DEFAULT]
auth_url = :35357/v2.0
auth_region = RegionOne
admin_tenant_name = service
admin_user = quantum
admin_password = 123456
nova_metadata_ip = 10.10.10.51
nova_metadata_port = 8775
metadata_proxy_shared_secret =helloOpenStack
/etc/quantum/l3_agent.ini和/etc/quantum/dhcp_agent.ini配置文件没有改
设置sudo权限
root@network:~# cat/etc/sudoers.d/quantum_sudoers
#Defaults:quantum !requiretty
quantum ALL=NOPASSWD: ALL
#quantum ALL = (root) NOPASSWD:/usr/bin/quantum-rootwrap
重启所有quantum服务
cd /etc/init.d/; for i in $( ls quantum-*); do sudo service $i restart; done
查看所有服务状态,有没启动的请查看quantum下的log日志
cd /etc/init.d/; for i in $( ls quantum-*); do sudo service $i status; done
OpenStack Grizzly 多节点部署在 Ubuntu 12.04
相关资讯 OpenStack
本文评论 查看全部评论 (0)
尊重网上道德,遵守中华人民共和国的各项有关法律法规 承担一切因您的行为而直接或间接导致的民事或刑事法律责任 本站管理人员有权保留或删除其管辖留言中的任意内容 本站有权在网站内转载或引用您的评论 参与本评论即表明您已经阅读并接受上述条款
评论声明
最新资讯