nova-compute fails to use vmwareapi drivers

asked 2013-07-29 17:17:17 -0600

nitshree gravatar image


I have installed Grizzly on Ubuntu server 12.04. Trying to configure nova-compute to use vmwareapi drivers. The nova-compute service fails to start with either ESX or VC driver. I am having ESXi 5.1.0 (799733) and VC 5.1.0a (880472). Both ESXi & VC have valid license and web access enabled. The sdk is copied on to the compute host in /var/var/lib/tomcat6/webapps/vmware/SDK. I am able to access the wsdl location from any host on the network. Portgroup with bridge interface br100 is created.

nova.config parameters

compute_driver=vmwareapi.VMwareVCDriver instance_name_template=instance-%08x api_paste_config=/etc/nova/api-paste.ini vmwareapi_host_ip= vmwareapi_host_username=root vmwareapi_host_password=vmware vmwareapi_cluster_name=osdeploy vmwareapi_wsdl_loc=


INFO nova.virt.driver [-] Loading compute driver 'vmwareapi.VMwareVCDriver' INFO nova.manager [-] Skipping periodic task _periodic_update_dns because its interval is negative CRITICAL nova.virt.vmwareapi.driver [-] In vmwareapi:_create_session, got this exception: <urlopen error="" [errno="" 111]="" econnrefused=""> CRITICAL nova [-] <urlopen error="" [errno="" 111]="" econnrefused=""> TRACE nova Traceback (most recent call last): TRACE nova File "/usr/bin/nova-compute", line 83, in <module> TRACE nova db_allowed=False) TRACE nova File "/usr/lib/python2.7/dist-packages/nova/", line 534, in create TRACE nova db_allowed=db_allowed) TRACE nova File "/usr/lib/python2.7/dist-packages/nova/", line 413, in __init__ TRACE nova self.manager = manager_class(, args, *kwargs) TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/", line 353, in __init__ TRACE nova self.driver = driver.load_compute_driver(self.virtapi, compute_driver) TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/", line 930, in load_compute_driver TRACE nova virtapi) TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/", line 51, in import_object_ns TRACE nova return import_class(import_value)(args, *kwargs) TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/", line 348, in __init__ TRACE nova super(VMwareVCDriver, self).__init__(virtapi) TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/", line 145, in __init__ TRACE nova api_retry_count, scheme=scheme) TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/", line 417, in __init__ TRACE nova self._create_session() TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/", line 454, in _create_session TRACE nova raise exception.NovaException(excep) TRACE nova NovaException: <urlopen error="" [errno="" 111]="" econnrefused="">

The same happens for 'vmwareapi.VMwareESXDriver'. Any guess what could be wrong? Am I missing something?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2013-07-30 02:02:09 -0600

heut2008 gravatar image

have you enable ssh access to ESX or Vcenter, you should first ensure ssh is enabled .

edit flag offensive delete link more

answered 2013-07-31 01:04:38 -0600

nitshree gravatar image

Thanks Yaguang for offering help. SSH access to ESX & vCenter server was already in place.

I couldnot have nova-compute load vmware-api drivers until the security certificates were downloaded on my compute host.

This is what worked for me - On the compute host download the security certificate from https:// /sdk - For more info refer vSphereManagementSDKReadme.html available in SDK extracts. - And for detailed reference use Developers guide at (

My compute host is now able to load vmware api drivers (ESX or VC). But im unable to create virtual instance using any vmdk image file. The instance goes through the build stage & ends up with status 'ERROR'. This happens while using vmwareapi. VC drivers.

nova-compute log

CRITICAL nova.virt.vmwareapi.driver [req-15f47ad9-4457-4e11-9988-6647aee04592 a5fad93e00d24d118b5e6a6211b75d13 aebd15d940e84719a005682e2a8ec71e] In vmwareapi:_call_method, got this exception: Exception in RetrieveProperties <urlopen error="" [errno="" 110]="" etimedout=""> ERROR nova.openstack.common.rpc.amqp [req-15f47ad9-4457-4e11-9988-6647aee04592 a5fad93e00d24d118b5e6a6211b75d13 aebd15d940e84719a005682e2a8ec71e] Exception during message handling TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last): TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/", line 430, in _process_data TRACE nova.openstack.common.rpc.amqp rval = self.proxy.dispatch(ctxt, version, method, *args) TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/", line 133, in dispatch TRACE nova.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, *kwargs) TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/", line 117, in wrapped TRACE nova.openstack.common.rpc.amqp temp_level, payload) TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/", line 24, in __exit__ TRACE nova.openstack.common.rpc.amqp TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/", line 94, in wrapped TRACE nova.openstack.common.rpc.amqp return f(self, context, args, *kw) TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/", line 209, in decorated_function TRACE nova.openstack.common.rpc.amqp pass TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/", line 24, in __exit__ TRACE nova.openstack.common.rpc.amqp TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/", line 195, in decorated_function TRACE nova.openstack.common.rpc.amqp return function(self, context, args, *kwargs) TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/", line 260, in decorated_function TRACE nova.openstack.common.rpc.amqp function(self, context, args, *kwargs) TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/", line 237, in decorated_function TRACE nova.openstack.common.rpc.amqp e, sys.exc_info()) TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/", line 24, in __exit__ TRACE nova.openstack.common.rpc.amqp ... (more)

edit flag offensive delete link more

answered 2014-01-15 14:12:05 -0600

klo-go gravatar image

Hi, Nitz, can you plase explain how did you setup the connetion with vCenter using the security certificate. I have the certificate in the compute host but I can't enable the ssh access to the vCenter(it is a windows server). Is is also possible to setup the connection? Thank you!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-07-29 17:17:17 -0600

Seen: 1,269 times

Last updated: Jan 15 '14