VMware: VimConnectionException: urllib2 error in RetrieveServiceContent

Bug #1361008 reported by David Geng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

I hit following error in cinder log file:
014-08-24 03:07:41.518 29877 ERROR cinder.volume.drivers.vmware.api [-] CN-27AB041 Failure while invoking function: create_session. Error: urllib2 error in RetrieveServiceContent: <urlopen error [Errno 113] EHOSTUNREACH>..
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api Traceback (most recent call last):
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/vmware/api.py", line 69, in _func
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api result = f(*args, **kwargs)
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/vmware/api.py", line 152, in create_session
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api session_manager = self.vim.service_content.sessionManager
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/vmware/api.py", line 136, in vim
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api wsdl_loc=self._wsdl_loc)
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/vmware/vim.py", line 89, in __init__
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api self._service_content = self.RetrieveServiceContent('ServiceInstance')
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/vmware/vim.py", line 201, in vim_request_handler
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api 'excep': excep})
2014-08-24 03:07:41.518 29877 TRACE cinder.volume.drivers.vmware.api VimConnectionException: urllib2 error in RetrieveServiceContent: <urlopen error [Errno 113] EHOSTUNREACH>.

I can use the username and password which are provided in the cinder.conf to log on my vCenter via vSphere client.
But I can not log on the web client since your customer did not installed it.

I can find the similar error 'urlopen error [Errno 113] EHOSTUNREACH' in my nova compute log file.
So, my question is:
What kinds of the VMware services should be installed/enabled in vCetner before I use this VMware driver?

Tags: drivers vmware
Revision history for this message
David Geng (genggjh) wrote :

The version of VMware vCenter Server is 5.1.0.

Revision history for this message
David Geng (genggjh) wrote :

I find the vSphere Web Client does not installed in the customer environment. This is a prerequisite for the VMware driver?

Mike Perez (thingee)
tags: added: drivers vmware
Revision history for this message
Vipin Balachandran (vbala) wrote :

Hi David,

vSphere web client is not a pre-requisite for the VMware driver.

Could you please check whether you can access:
https://<vmware_host_ip>/sdk/vimService.wsdl

I think the web service is configured to listen to a non-default port.

Thanks.

Changed in cinder:
status: New → Incomplete
Changed in cinder:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.