Ask Your Question

Can someone provide me with the proper syntax for vmwareapi_host_ip nova.conf flag?

asked 2011-04-28 16:17:47 -0500

kyle-northcutt gravatar image

updated 2019-01-17 09:24:01 -0500

yasin lachiny gravatar image

I am trying to integrate VMWare as a compute node and I am getting the following errors in the nova-compute.log:

(nova): TRACE: Traceback (most recent call last):
(nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/", line 270, in serve
(nova): TRACE:     services = [Service.create()]
(nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/", line 173, in create
(nova): TRACE:     report_interval, periodic_interval)
(nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/", line 73, in __init__
(nova): TRACE:     self.manager = manager_class(, *args, **kwargs)
(nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/compute/", line 127, in __init__
(nova): TRACE:     utils.import_object(compute_driver),
(nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/", line 76, in import_object
(nova): TRACE:     return cls()
(nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/virt/", line 73, in get_connection
(nova): TRACE:     conn = vmwareapi_conn.get_connection(read_only)
(nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/virt/", line 105, in get_connection
(nova): TRACE:     api_retry_count)
(nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/virt/", line 115, in __init__
(nova): TRACE:     api_retry_count, scheme=scheme)
(nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/virt/", line 209, in __init__
(nova): TRACE:     self._create_session()
(nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/virt/", line 246, in _create_session
(nova): TRACE:     raise exception.Error(excep)
(nova): TRACE: Error: Exception in RetrieveServiceContent <urlopen error [Errno 111] ECONNREFUSED>

It was suggested to me that I may be wrong in specifying the host IP for the vmwareapi_host_ip nova.conf flag. Documentation alludes to this being a URL, but what does this URL look like? Can anyone give me an example?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2011-05-03 21:03:19 -0500

annegentle gravatar image

Here's what I have (from a document that will be converted to a web format) for nova.conf settings:

--connection_type=vmwareapi --vmwareapi_host_ip=<ip of="" the="" esx="" host=""> --vmwareapi_host_username=<esx host="" user="" name=""> --vmwareapi_host_password=<esx host="" user="" password=""> --vmwareapi_wsdl_loc=<location of="" vmware="" vimservice="" wsdl="" file.="" e.g.,="" http:="" <web="" server="">/vimService.wsdl if it is hosted on "WEB SERVER">

However, it doesn't state the exact format for the ESX host IP. What did you try?

I'm working with the Citrix team to get more docs for configuration, thanks for your patience. :)

edit flag offensive delete link more

answered 2011-05-05 08:11:39 -0500

Hi Kyle, Were you able to resolve this? I am seeing the same error. I added some debug statements to the code, and noticed that the url is being indeed created internally in the format: https://<vmwareapi_host_ip_addr_from_nova.conf>/sdk

I believe this is the right format for the url. I have also opened up the "vSphere Web Access" port in the firewall (on the ESX) host as per the instructions. Still seeing the error.

Thanks, ~Sumit.

edit flag offensive delete link more

answered 2011-05-05 17:24:35 -0500

Just an update on this, I am past this error. I noticed that my IP address was incorrect. As far as I can tell from the logs, there are no more errors. So I think just entering the IP address againts the "vmwareapi_host_api" works (the url is constructed internally before the api call is made).

edit flag offensive delete link more

answered 2011-05-25 11:47:26 -0500

Notation is, IP address of ESX/ESXi Server has to be provided after '='

Format: --vmwareapi_host_ip=<ip of="" the="" esx="" host="">

Example: Assume the IP of ESX/ESXi server is then the flag looks like, --vmwareapi_host_ip=

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-04-28 16:17:47 -0500

Seen: 123 times

Last updated: Jan 17 '19