openstack对接vcenter问题集合

1、启动openstack-nova-compute时提示找不到vmwareapi模块
【问题现象】
2015-01-07 12:17:43.445 5861 INFO nova.virt.driver [-] Loading compute driver 'vmwareapi.VMwareVCDriver'
2015-01-07 12:17:43.449 5861 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2015-01-07 12:17:43.449 5861 TRACE nova.virt.driver Traceback (most recent call last):
2015-01-07 12:17:43.449 5861 TRACE nova.virt.driver File “/usr/lib/python2.6/site-packages/nova/virt/driver.py”, line 1300, in load_compute_driver
2015-01-07 12:17:43.449 5861 TRACE nova.virt.driver virtapi)
2015-01-07 12:17:43.449 5861 TRACE nova.virt.driver File “/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py”, line 52, in import_object_ns
2015-01-07 12:17:43.449 5861 TRACE nova.virt.driver return import_class(import_str)(args, *kwargs)
2015-01-07 12:17:43.449 5861 TRACE nova.virt.driver File “/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py”, line 28, in import_class
2015-01-07 12:17:43.449 5861 TRACE nova.virt.driver import(mod_str)
2015-01-07 12:17:43.449 5861 TRACE nova.virt.driver ImportError: No module named vmwareapi

【解决方案】
安装python-suds
sudo yum install python-suds

2、提示连接不上AMQP 5672端口
【问题现象】
2015-01-07 12:26:32.696 6023 ERROR oslo.messaging.drivers.impl_rabbit [-] AMQP server on x.x.x.x is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 7 seconds.
2015-01-07 12:26:39.699 6023 INFO oslo.messaging.
drivers.impl_rabbit [-] Reconnecting to AMQP server on x.x.x.x:5672
2015-01-07 12:26:39.700 6023 INFO oslo.messaging._drivers.impl_rabbit [-] Delaying reconnect for 1.0 seconds…
【解决方案】
开启AMQP所在服务器5672端口
/sbin/iptables -I INPUT -p tcp –dport 5672 -j ACCEPT
/etc/init.d/iptables save
service iptables restart

3、创建虚拟机失败
【问题现象】 提示日志Network could not be found for bridge br-int
2015-01-08 01:53:39.586 6103 TRACE nova.compute.manager [instance: c736c35e-74ba-4501-b59c-3bc7868e18a1] network_ref = get_neutron_network(session, network_name, cluster, vif)
2015-01-08 01:53:39.586 6103 TRACE nova.compute.manager [instance: c736c35e-74ba-4501-b59c-3bc7868e18a1] File “/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vif.py”, line 138, in get_neutron_network
2015-01-08 01:53:39.586 6103 TRACE nova.compute.manager [instance: c736c35e-74ba-4501-b59c-3bc7868e18a1] raise exception.NetworkNotFoundForBridge(bridge=bridge)
2015-01-08 01:53:39.586 6103 TRACE nova.compute.manager [instance: c736c35e-74ba-4501-b59c-3bc7868e18a1] NetworkNotFoundForBridge: Network could not be found for bridge br-int
【解决方案】
在vcenter上对主机添加网络br-int

你可能感兴趣的:(对接,openstack,VCenter)