<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks a lot for your reply Marek.<br>
    <br>
    Both fence-agents-common and fence-agents-vmware-soap are at version
    4.0.11-27.<br>
    <br>
    I tried to add --power-timeout but it doesn't matter how long I set
    the power timeout, it always fails after about 4 seconds. If I add
    -v I end up with *a lot* of output (~93MB) which mostly consist of
    xml. I am thinking this is not the kind of output that should be
    expected. Anyway I tried to look for the name of my VM in the logs
    but it doesn't even appear once.<br>
    <br>
    Here are the first 50 lines of the logs:<br>
    <br>
    ##############################################<br>
    <br>
    # head -n 50 fence-vmware-log.xml <br>
    Delay 0 second(s) before logging in to the fence device<br>
    reading wsdl at: <a class="moz-txt-link-freetext" href="https://10.5.200.20:443/sdk/vimService.wsdl">https://10.5.200.20:443/sdk/vimService.wsdl</a> ...<br>
    opening (<a class="moz-txt-link-freetext" href="https://10.5.200.20:443/sdk/vimService.wsdl">https://10.5.200.20:443/sdk/vimService.wsdl</a>)<br>
    <?xml version="1.0" encoding="UTF-8" ?><br>
    <!--<br>
       Copyright 2005-2015 VMware, Inc.  All rights reserved.<br>
    --><br>
    <definitions targetNamespace="urn:vim25Service"<br>
       xmlns=<a class="moz-txt-link-rfc2396E" href="http://schemas.xmlsoap.org/wsdl/">"http://schemas.xmlsoap.org/wsdl/"</a><br>
       xmlns:soap=<a class="moz-txt-link-rfc2396E" href="http://schemas.xmlsoap.org/wsdl/soap/">"http://schemas.xmlsoap.org/wsdl/soap/"</a><br>
       xmlns:interface="urn:vim25"<br>
    ><br>
       <import location="vim.wsdl" namespace="urn:vim25" /><br>
       <service name="VimService"><br>
          <port binding="interface:VimBinding" name="VimPort"><br>
             <soap:address
    location=<a class="moz-txt-link-rfc2396E" href="https://localhost/sdk/vimService">"https://localhost/sdk/vimService"</a> /><br>
          </port><br>
       </service><br>
    </definitions><br>
    <br>
    sax duration: 1 (ms)<br>
    warning: tns (urn:vim25Service), not mapped to prefix<br>
    importing (vim.wsdl)<br>
    reading wsdl at: <a class="moz-txt-link-freetext" href="https://10.5.200.20:443/sdk/vim.wsdl">https://10.5.200.20:443/sdk/vim.wsdl</a> ...<br>
    opening (<a class="moz-txt-link-freetext" href="https://10.5.200.20:443/sdk/vim.wsdl">https://10.5.200.20:443/sdk/vim.wsdl</a>)<br>
    <?xml version="1.0" encoding="UTF-8" ?><br>
    <!--<br>
       Copyright 2005-2015 VMware, Inc.  All rights reserved.<br>
    --><br>
    <definitions targetNamespace="urn:vim25"<br>
       xmlns=<a class="moz-txt-link-rfc2396E" href="http://schemas.xmlsoap.org/wsdl/">"http://schemas.xmlsoap.org/wsdl/"</a><br>
       xmlns:mime=<a class="moz-txt-link-rfc2396E" href="http://schemas.xmlsoap.org/wsdl/mime/">"http://schemas.xmlsoap.org/wsdl/mime/"</a><br>
       xmlns:soap=<a class="moz-txt-link-rfc2396E" href="http://schemas.xmlsoap.org/wsdl/soap/">"http://schemas.xmlsoap.org/wsdl/soap/"</a><br>
       xmlns:vim25="urn:vim25"<br>
       xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a><br>
    ><br>
       <types><br>
          <schema<br>
             targetNamespace="urn:vim25"<br>
             xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a><br>
             xmlns:vim25="urn:vim25"<br>
             xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a><br>
             xmlns:reflect="urn:reflect"<br>
             elementFormDefault="qualified"<br>
          ><br>
             <include schemaLocation="query-messagetypes.xsd" /><br>
             <include schemaLocation="core-types.xsd" /><br>
             <import namespace="urn:reflect"
    schemaLocation="reflect-messagetypes.xsd" /><br>
             <include schemaLocation="vim-messagetypes.xsd" /><br>
             <element name="versionURI" type="xsd:string" /><br>
    <br>
    ##############################################<br>
    <br>
    With -v, the error I get at the end of the logs is: "Unable to
    connect/login to fencing device" which is weird since I can get the
    status of a VM without issue...<br>
    <br>
    Could it be something I forgot to install on my machine (a library
    or something else)? I also thought about permissions issues but I am
    using the default root user and I can shutdown VM through vSphere
    with it.<br>
    <br>
    Ideas about that issue are more than welcome :)<br>
    <br>
    Kevin<br>
    <br>
    <div class="moz-cite-prefix">On 07/04/2016 02:09 PM, Marek Grac
      wrote:<br>
    </div>
    <blockquote
cite="mid:CA+40=JXTL-_YuRx3ONoyq7JoTNYfPxXGHURU18uL9KQKYd7CRA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div class="gmail_extra">you can try to raise value of
          --power-timeout from default (20 seconds), also you can add -v
          to have verbose output. </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">As long as you have same version of
          fence-agents-common and fence-agents-vmware, there should be
          no issues. </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">m,</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Fri, Jul 1, 2016 at 11:31 AM,
            Kevin THIERRY <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:kevin.thierry.citlao@gmail.com"
                target="_blank">kevin.thierry.citlao@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Hello !<br>
                <br>
                I'm trying to fence my nodes using fence_vmware_soap but
                it fails to shutdown or reboot my VMs. I can get the
                list of the VMs on a host or query the status of a
                specific VM without problem:<br>
                <br>
                # fence_vmware_soap -a 10.5.200.20 -l root -p "******"
                -z --ssl-insecure -4 -n laa-billing-backup -o status<br>
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:769:
                InsecureRequestWarning: <br>
                Unverified HTTPS request is being made. Adding
                certificate verification is strongly advised. See: <a
                  moz-do-not-send="true"
                  href="https://urllib3.readthedocs.org/en/latest/security.html"
                  target="_blank"><a class="moz-txt-link-freetext" href="https://urllib3.readthedocs.org/en/latest/security.html">https://urllib3.readthedocs.org/en/latest/security.html</a></a><br>
                  InsecureRequestWarning)<br>
                Status: ON<br>
                <br>
                However, trying to shutdown or to reboot a VM fails:<br>
                <br>
                # fence_vmware_soap -a 10.5.200.20 -l root -p "******"
                -z --ssl-insecure -4 -n laa-billing-backup -o reboot<br>
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:769:
                InsecureRequestWarning: Unverified HTTPS request is
                being made. Adding certificate verification is strongly
                advised. See: <a moz-do-not-send="true"
                  href="https://urllib3.readthedocs.org/en/latest/security.html"
                  target="_blank">https://urllib3.readthedocs.org/en/latest/security.html</a><br>
                  InsecureRequestWarning)<br>
                Failed: Timed out waiting to power OFF<br>
                <br>
                On the ESXi I get the following logs in
                /var/log/hostd.log:<br>
                <br>
                [LikewiseGetDomainJoinInfo:355] QueryInformation():
                ERROR_FILE_NOT_FOUND (2/0):<br>
                Accepted password for user root from 10.5.200.12<br>
                2016-07-01T08:49:50.911Z info hostd[34380B70]
                [Originator@6876 sub=Vimsvc.ha-eventmgr opID=47defdf1]
                Event 190 : User <a moz-do-not-send="true"
                  href="mailto:root@10.5.200.12" target="_blank">root@10.5.200.12</a>
                logged in as python-requests/2.6.0 CPython/2.7.5
                Linux/3.10.0-327.18.2.el7.x86_64<br>
                2016-07-01T08:49:50.998Z info hostd[32F80B70]
                [Originator@6876 sub=Vimsvc.TaskManager opID=47defdf4
                user=root] Task Created :
                haTask--vim.SearchIndex.findByUuid-2513<br>
                2016-07-01T08:49:50.999Z info hostd[32F80B70]
                [Originator@6876 sub=Vimsvc.TaskManager opID=47defdf4
                user=root] Task Completed :
                haTask--vim.SearchIndex.findByUuid-2513 Status success<br>
                2016-07-01T08:49:51.009Z info hostd[32F80B70]
                [Originator@6876 sub=Solo.Vmomi opID=47defdf6 user=root]
                Activation [N5Vmomi10ActivationE:0x34603c28] : Invoke
                done [powerOff] on [vim.VirtualMachine:3]<br>
                2016-07-01T08:49:51.009Z info hostd[32F80B70]
                [Originator@6876 sub=Solo.Vmomi opID=47defdf6 user=root]
                Throw vim.fault.RestrictedVersion<br>
                2016-07-01T08:49:51.009Z info hostd[32F80B70]
                [Originator@6876 sub=Solo.Vmomi opID=47defdf6 user=root]
                Result:<br>
                --> (vim.fault.RestrictedVersion) {<br>
                -->    faultCause = (vmodl.MethodFault) null,<br>
                -->    msg = ""<br>
                --> }<br>
                2016-07-01T08:49:51.027Z info hostd[34380B70]
                [Originator@6876 sub=Vimsvc.ha-eventmgr opID=47defdf7
                user=root] Event 191 : User <a moz-do-not-send="true"
                  href="mailto:root@10.5.200.12" target="_blank">root@10.5.200.12</a>
                logged out (login time: Friday, 01 July, 2016 08:49:50,
                number of API invocations: 0, user agent:
                python-requests/2.6.0 CPython/2.7.5
                Linux/3.10.0-327.18.2.el7.x86_64)<br>
                <br>
                <br>
                I am wondering if there is some kind of compatibility
                issue. I am using fence-agents-vmware-soap 4.0.11 on
                CentOS 7.2.1511 and ESXi 6.0.0 Build 2494585.<br>
                Any ideas about that issue?<br>
                <br>
                Best regards,<span class="HOEnZb"><font color="#888888"><br>
                    <pre cols="72">-- 
Kevin THIERRY
IT System Engineer

CIT Lao Ltd. – A.T.M.
PO Box 10082
Vientiane Capital – Lao P.D.R.
Cell : +856 (0)20 2221 8623
<a moz-do-not-send="true" href="mailto:kevin.thierry.citlao@gmail.com" target="_blank">kevin.thierry.citlao@gmail.com</a></pre>
                  </font></span></div>
              <br>
              _______________________________________________<br>
              Users mailing list: <a moz-do-not-send="true"
                href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
              <a moz-do-not-send="true"
                href="http://clusterlabs.org/mailman/listinfo/users"
                rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
              <br>
              Project Home: <a moz-do-not-send="true"
                href="http://www.clusterlabs.org" rel="noreferrer"
                target="_blank">http://www.clusterlabs.org</a><br>
              Getting started: <a moz-do-not-send="true"
                href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf"
                rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
              Bugs: <a moz-do-not-send="true"
                href="http://bugs.clusterlabs.org" rel="noreferrer"
                target="_blank">http://bugs.clusterlabs.org</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://clusterlabs.org/mailman/listinfo/users">http://clusterlabs.org/mailman/listinfo/users</a>

Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">
</pre>
  </body>
</html>