Running the fence_vmware_soap fence agent fails with a connection timeout
Environment
- Red Hat Enterprise Linux 5 Advanced Platform (Clustering)
- VMWare VMs as cluster nodes, using fence_vmware_soap
Issue
- fence_vmware_soap fails with connection timeout python exception:
Traceback (most recent call last): File "/sbin/fence_vmware_soap", line 175, in ? main() File "/sbin/fence_vmware_soap", line 160, in main conn = soap_login(options) File "/sbin/fence_vmware_soap", line 24, in soap_login conn = Client(url + "/vimService.wsdl") File "/usr/lib/python2.4/site-packages/suds/client.py", line 112, in __init__ self.wsdl = reader.open(url) File "/usr/lib/python2.4/site-packages/suds/reader.py", line 152, in open d = self.fn(url, self.options) File "/usr/lib/python2.4/site-packages/suds/wsdl.py", line 136, in __init__ d = reader.open(url) File "/usr/lib/python2.4/site-packages/suds/reader.py", line 79, in open d = self.download(url) File "/usr/lib/python2.4/site-packages/suds/reader.py", line 95, in download fp = self.options.transport.open(Request(url)) File "/usr/lib/python2.4/site-packages/suds/transport/https.py", line 60, in open return HttpTransport.open(self, request) File "/usr/lib/python2.4/site-packages/suds/transport/http.py", line 62, in open return self.u2open(u2request) File "/usr/lib/python2.4/site-packages/suds/transport/http.py", line 116, in u2open return url.open(u2request) File "/usr/lib64/python2.4/urllib2.py", line 358, in open response = self._open(req, data) File "/usr/lib64/python2.4/urllib2.py", line 376, in _open '_open', req) File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain result = func(*args) File "/usr/lib64/python2.4/urllib2.py", line 1118, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib64/python2.4/urllib2.py", line 1092, in do_open raise URLError(err) urllib2.URLError: <urlopen error (110, 'Connection timed out')>
Resolution
Use SSL to connect to Virtual Center by adding the "-z" option when running fence_vmware_soap on the command line, or 'ssl="1"' in /etc/cluster/cluster.conf. For example:
<fencedevice agent="fence_vmware_soap" name="vmware-fence" ipaddr="192.168.2.5"
login="Administrator" password="***" ssl="1"/>
SSL support will need to be configured on Virtual Center. Please consult VMware on how to do this.
Root Cause
- SSL support was not enabled on Virtual Center or in the fence device configuration.
SBR
Product(s)
Components
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.