Hi, fence_vmware_soap isn't working at least on F25 and F26: fence_vmware_soap -a 192.168.1.18 -l root -p xxxxxxxx -z --ssl-insecure -o list Unable to connect/login to fencing device ------------------ python fence_vmware_soap-wrapper.py -a 192.168.1.18 -l root -p xxxxxxxxx -z --ssl-insecure -o list The fencing agent "fence_vmware_soap" was found: /usr/sbin/fence_vmware_soap. Removing the file: /tmp/fence_vmware_soap-debug.txt Executing /usr/sbin/fence_vmware_soap with suds debugging enabled. opening (https://192.168.1.18:443/sdk/vimService.wsdl) Unable to connect/login to fencing device cat /tmp/fence_vmware_soap-debug.txt 2017-08-24 23:33:17,632 DEBUG opening (https://192.168.0.8:443/sdk/vimService.wsdl) 2017-08-24 23:33:17,674 ERROR Unable to connect/login to fencing device I tried for example on CentOS 6.9 and CentOS 7.3 and works.
Which version of python do you run? centos6 and 7 use python2 fedora uses python3 but I'm not sure where your python points. It looks like it may be issue in: * python2/python3 issues * different version of python-suds
Fedora 25 and 26 is reporting 2.7.13: python --version Python 2.7.13 CentOS 6: python --version Python 2.6.6 CentOS 7: python --version Python 2.7.5
Ha, fence_vmware_soap itself calls directly python3 in F25 and F26: cat /usr/sbin/fence_vmware_soap | grep python #!/usr/bin/python3 -tt I tried to change to python2 but problem persists.
@mvrk: yes, it is compiled with python3 but if you run it with 'python script-name' it is ignored and interpreter that you have specified is used. The only thing that is different between RHEL and Fedora in our case is python-suds package. Can you connect to https://192.168.1.18:443/sdk/vimService.wsdl using curl ?
curl --insecure https://192.168.1.18:443/sdk/vimService.wsdl <?xml version="1.0" encoding="UTF-8" ?> <!-- Copyright 2005-2016 VMware, Inc. All rights reserved. --> <definitions targetNamespace="urn:vim25Service" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:interface="urn:vim25" > <import location="vim.wsdl" namespace="urn:vim25" /> <service name="VimService"> <port binding="interface:VimBinding" name="VimPort"> <soap:address location="https://localhost/sdk/vimService" /> </port> </service> </definitions>
Hi, which version of vsphere/ESXi do you have?
ESXi 6.0 U2 / vCenter Server Appliance 6.0 U2
Just upgraded to F27, and problem persists.
https://github.com/ClusterLabs/fence-agents/pull/119
fence-agents-4.1.0-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-3a175e2785
fence-agents-4.1.0-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-3a175e2785
Now connects, but can't get list of vms or get status: fence_vmware_soap -a xxx.xxx.xxx.xxx -l Administrator -p xxx --ssl-insecure -o list 2018-02-13 21:01:14,575 ERROR: Failed: Unable to obtain correct plug status or plug is not available fence_vmware_soap -a xxx.xxx.xxx.xxx -l Administrator -p xxx --ssl-insecure -n 420e3d72-4df5-3ccf-c9a2-60cbdcbaf2e9 -o status 2018-02-13 21:00:00,536 ERROR: Failed: Unable to obtain correct plug status or plug is not available I tried with ESXi host and with vCenter.
This is a problem with the Python 3 version of the suds library, so I'll make a bz to have them fix that, and use Python 2 until it's fixed. You should be able to use the new fence_vmware_rest (which should also be more efficient than the SOAP version) or fence_vmware_vcloud.
fence-agents-4.1.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-700f106cd5
fence-agents-4.1.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-700f106cd5
fence-agents-4.1.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.