OpenStack G版本 Ubuntu 13.04三节点实验记录(7)

安装 openVSwitch:注意这里的三个软件都要安装,openstack除了用ovs还要用到系统的brcompat

apt-get install openvswitch-switchopenvswitch-brcompat openvswitch-datapath-dkms

设置 ovs-brcompatd 启动:

sed -i 's/# BRCOMPAT=no/BRCOMPAT=yes/g'/etc/default/openvswitch-switch

启动 openvswitch-switch:

# service openvswitch-switch restart

*Killing ovs-brcompatd (1327)

*Killing ovs-vswitchd (1195)

*Killing ovsdb-server (1185)

*Starting ovsdb-server

*Configuring Open vSwitch system IDs

*Starting ovs-vswitchd

2013-10-29T02:45:50Z|00001|brcompatd|WARN|Bridgecompatibility is deprecated and may be removed no earlier than February 2013

*Starting ovs-brcompatd

直到 ovs-brcompatdovs-vswitchdovsdb-server等服务都启动

并检查brcompat模块

# lsmod | grep brcompat

brcompat 13512 0

openvswitch 84038 7 brcompat

如果还是启动不了 brcompat,执行下面命令:

/etc/init.d/openvswitch-switchforce-reload-kmod

再不行重启服务器,Ubuntu13.0464位)一般安装上面3个软件都可以成功启动,不需其他额外操作。

创建br-int 网桥

ovs-vsctl add-br br-int

4.5. Quantum

安装 Quantum openvswitch agent:

apt-get install quantum-plugin-openvswitch-agent

编辑 OVS 插件配置文件 /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini:

root@c03:~# cat/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini |grep -v ^# |grep -v ^$

[DATABASE]

sql_connection =mysql://quantum:quantum@10.10.10.51/quantum

reconnect_interval = 2

[OVS]

tenant_network_type = gre

tunnel_id_ranges = 1:1000

local_ip = 10.20.20.55

enable_tunneling = True

[AGENT]

polling_interval = 2

[SECURITYGROUP]

firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

编辑 /etc/quantum/quantum.conf

root@c03:~# cat/etc/quantum/quantum.conf|grep -v ^# |grep -v ^$

[DEFAULT]

verbose = True

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

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

启动服务:

service quantum-plugin-openvswitch-agentrestart

安装其他软件:

如果instance要想成功attach cinder所建立的volume,还需要安装一些铺助软件,这个在官网的排错中有提到,一般地方找不到(由于系统是最小化安装了,mysql-cient都没安上)

libsysfs2_2.1.0+repack-2_amd64.deb multipath-tools_0.4.9-3ubuntu7_amd64.deb sg3-utils_1.33-1build1_amd64.deb

mysql-client-core-5.5_5.5.32-0ubuntu0.13.04.1_amd64.deb sysfsutils_2.1.0+repack-2_amd64.deb

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/0d9e3283bf556c4845b2c085ae8384db.html