Ask Your Question
1

nova-compute stops running & throws ImportError: No module named vmwareapi

asked 2014-09-15 08:54:05 -0600

Vinoth gravatar image

updated 2014-09-15 08:55:35 -0600

Hai, I am trying Vmware integration openstack in my lab. I have vcenter(5.5) environment ready in my lab environment. Then I started my icehouse setup following this document. For nova installation I used " apt-get install nova-compute-vmware" which install all vmware packages(including python-suds). Then I added the following lines in nova.conf file.

[DEFAULT]

compute_driver=vmwareapi.VMwareVCDriver

[vmware] host_ip=192.168.1.15

host_username=Administrator@vsphere.l...

host_password=*****

cluster_name=lab

Then restarting the nova-compute service throws following error:

ERROR nova.virt.driver [-] Unable to load the virtualization driver

TRACE nova.virt.driver Traceback (most recent call last):

TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1305, in load_compute_driver

TRACE nova.virt.driver virtapi)

TRACE nova.virt.driver ImportError: No module named vmwareapi

So I commanted the #[vmware] line in nova.conf file. Then restarted the service. This tme nova-compute service is up&running but throws error as follows;

INFO nova.virt.driver [-] Loading compute driver 'vmwareapi.VMwareVCDriver'

CRITICAL nova.virt.vmwareapi.driver [-] Unable to connect to server at None, sleeping for 1 seconds

TRACE nova.virt.vmwareapi.driver Traceback (most recent call last):

TRACE nova.virt.vmwareapi.driver URLError: urlopen error [Errno -2] Name or service not known

P.S:- I am using Esxi 5.5 version & vcenter 5.5. So I skipped the Procedure 2.1. Mirror WSDL from vCenter (or ESXi) steps while following this document.

Could anyone help me to resolve this issuse?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-17 01:39:50 -0600

mmaurizi gravatar image

I don't know if it can help or it is just something related to publishing

Instead of

[vmware] host_ip=192.168.1.15

Insert a back line

[vmware]

host_ip=192.168.1.15

I have learn during my experience that when you write nova.conf you need to respect all small convention

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-15 08:54:05 -0600

Seen: 1,081 times

Last updated: Sep 17 '14