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

Asked by Kyle Northcutt

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/service.py", line 270, in serve
(nova): TRACE: services = [Service.create()]
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/service.py", line 173, in create
(nova): TRACE: report_interval, periodic_interval)
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/service.py", line 73, in __init__
(nova): TRACE: self.manager = manager_class(host=self.host, *args, **kwargs)
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 127, in __init__
(nova): TRACE: utils.import_object(compute_driver),
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/utils.py", line 76, in import_object
(nova): TRACE: return cls()
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/connection.py", line 73, in get_connection
(nova): TRACE: conn = vmwareapi_conn.get_connection(read_only)
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/vmwareapi_conn.py", line 105, in get_connection
(nova): TRACE: api_retry_count)
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/vmwareapi_conn.py", line 115, in __init__
(nova): TRACE: api_retry_count, scheme=scheme)
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/vmwareapi_conn.py", line 209, in __init__
(nova): TRACE: self._create_session()
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/vmwareapi_conn.py", 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?

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Anne Gentle (annegentle) said :
#1

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. :)

Revision history for this message
Sumit Naiksatam (snaiksat) said :
#2

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.

Revision history for this message
Sumit Naiksatam (snaiksat) said :
#3

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).

Revision history for this message
Sateesh (sateesh-chodapuneedi) said :
#4

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 10.102.123.220 then the flag looks like,
--vmwareapi_host_ip=10.102.123.220

Can you help with this problem?

Provide an answer of your own, or ask Kyle Northcutt for more information if necessary.

To post a message you must log in.