Ask Your Question
0

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

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

kyle-northcutt gravatar image

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

novainfinite 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/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?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

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

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

edit flag offensive delete link more
0

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

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
0

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

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
0

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

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

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: 2011-04-28 16:17:47 -0600

Seen: 97 times

Last updated: Jan 17