<div dir="ltr">Hi,<div><br></div><div>The template that is being passed to the "pre" script in your tests corresponds to VM with ID 15 (you can decode it and check, it is encoded Base64), and is lacking a lot of attributes. </div>

<div><br></div><div>Can you let us know the output of "onevm show -x 15", or alternatively, send us the relevant lines in the oned.log of the failure of VM 20?</div><div><br></div><div>Best,</div><div><br></div>

<div>-Tino</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>--<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><br>--<br>Constantino Vázquez Blanco, PhD, MSc<br>Senior Infrastructure Architect at C12G Labs<br>

<a href="http://www.c12g.com" target="_blank">www.c12g.com</a> | @C12G | <a href="http://es.linkedin.com/in/tinova" target="_blank">es.linkedin.com/in/tinova</a><br><br>--<br>Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the "To" and "cc" box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at <a href="mailto:abuse@c12g.com" target="_blank">abuse@c12g.com</a> and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation.</div>


<br><br><div class="gmail_quote">On 7 May 2014 14:15, Jose Manuel Martínez <span dir="ltr"><<a href="mailto:jose.martinez@fcsc.es" target="_blank">jose.martinez@fcsc.es</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">
    <div>Hello again. <br>
      <br>
      More info. I have placed many "print" lines in "VMware.rb" like
      this:<br>
      <br>
      <i><small>[...]<br>
                  vm_id =  @vm['ID']<br>
                  host = @vm['HISTORY_RECORDS/HISTORY/HOSTNAME']<br>
          <br>
          print "\n"<br>
          print host<br>
          tmp1 = @vm['ID']<br>
          print "\n"<br>
          print tmp1<br>
          tmp2 = @vm['UID']<br>
          print "\n"<br>
          print tmp2<br>
          tmp3 = @vm['GID']<br>
          print "\n"<br>
          print tmp3<br>
          tmp4 = @vm['STIME']<br>
          print "\n"<br>
          print tmp4<br>
          tmp5 = @vm['LAST_POLL']<br>
          print "\n"<br>
          print tmp5<br>
          print "\n"<br>
          [...]</small></i><br>
      <br>
      <br>
      ...trying ti see if other values are propertly returned, and here
      is the output:<br>
      <br>
      <i><small>[...]</small></i><br>
      <i>/var/lib/one/remotes/vnm/vmware/pre </i><small><big><i><small><i>PFZNPjxJRD4xNTwvSUQ+PERFUExPWV9JRC8+PFRFTVBMQVRFPjxOSUM+PEJSSURHRT48IVtDREFUQVt2U3dpdGNoMF1dPjwvQlJJREdFPjxDTFVTVEVSX0lEPjwhW0NEQVRBWzEwMV1dPjwvQ0xVU1RFUl9JRD48SVA+PCFbQ0RBVEFbMi4zLjQuNl1dPjwvSVA+PElQNl9MSU5LPjwhW0NEQVRBW2ZlODA6OjQwMDoyZmY6ZmUwMzo0MDZdXT48L0lQNl9MSU5LPjxNQUM+PCFbQ0RBVEFbMDI6MDA6MDI6MDM6MDQ6MDZdXT48L01BQz48TkVUV09SSz48IVtDREFUQVtyZWRlY2lsbGExXV0+PC9ORVRXT1JLPjxORVRXT1JLX0lEPjwhW0NEQVRBWzVdXT48L05FVFdPUktfSUQ+PE5FVFdPUktfVU5BTUU+PCFbQ0RBVEFbb25lYWRtaW5dXT48L05FVFdPUktfVU5BTUU+PE5JQ19JRD48IVtDREFUQVswXV0+PC9OSUNfSUQ+PFZMQU4+PCFbQ0RBVEFbWUVTXV0+PC9WTEFOPjxWTEFOX0lEPjwhW0NEQVRBWzEyM11dPjwvVkxBTl9JRD48L05JQz48L1RFTVBMQVRFPjwvVk0+</i><i><br>


              </i></small></i></big><i><br>
        </i><b><i>nil</i></b><b><i><br>
          </i></b><b><i>11</i></b><b><i><br>
          </i></b><b><i>nil</i></b><b><i><br>
          </i></b><b><i>nil</i></b><b><i><br>
          </i></b><b><i>nil</i></b><b><i><br>
          </i></b><b><i>nil</i></b><i><br>
        </i><i>ERROR: pre: Error executing: ((esxcfg-vswitch vSwitch0
          -l|grep one-pg-4) || /sbin/esxcfg-vswitch vSwitch0 --add-pg
          one-pg-4); /sbin/esxcfg-vswitch vSwitch0 -p one-pg-4 --vlan=41
          on host:  err: Pseudo-terminal will not be allocated because
          stdin is not a terminal.</i><i><br>
        </i><i>ssh: Could not resolve hostname ((esxcfg-vswitch vSwitch0
          -l|grep one-pg-4) || /sbin/esxcfg-vswitch vSwitch0 --add-pg
          one-pg-4); /sb: Name or service not known</i><i><br>
        </i><i>ExitCode: 255</i><i><br>
        </i><i> out: </i></small><br>
      <i><small>[...]</small></i><br>
      <br>
      It looks like only the <ID> tag is correctly defined or
      returned.<br>
      <br>
      Regards.<br>
      <br>
      <br>
      <br>
      El 07/05/14 13:11, Jose Manuel Martínez escribió:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      
      <div>Hello Tino,<br>
        <br>
        Here is the output of the command over 2 VMs:<br>
            ID 20 is from a failed machine deployed with dynamic VMWare
        network mode.<br>
            ID 21 is from a runnig machine deployed in dummy mode.<br>
        <br>
        The hostname tag looks to be ok in both cases.<br>
        <br>
        <br>
        <small><b><i>[oneadmin@one1 vmware]$ onevm show -x 20</i></b><i><br>
          </i><i><VM></i><i><br>
          </i><i>  <ID>20</ID></i><i><br>
          </i><i>  <UID>0</UID></i><i><br>
          </i><i>  <GID>0</GID></i><i><br>
          </i><i>  <UNAME>oneadmin</UNAME></i><i><br>
          </i><i>  <GNAME>oneadmin</GNAME></i><i><br>
          </i><i>  <NAME>Copy of ttylinux-20</NAME></i><i><br>
          </i><i>  <PERMISSIONS></i><i><br>
          </i><i>    <OWNER_U>1</OWNER_U></i><i><br>
          </i><i>    <OWNER_M>1</OWNER_M></i><i><br>
          </i><i>    <OWNER_A>0</OWNER_A></i><i><br>
          </i><i>    <GROUP_U>0</GROUP_U></i><i><br>
          </i><i>    <GROUP_M>0</GROUP_M></i><i><br>
          </i><i>    <GROUP_A>0</GROUP_A></i><i><br>
          </i><i>    <OTHER_U>0</OTHER_U></i><i><br>
          </i><i>    <OTHER_M>0</OTHER_M></i><i><br>
          </i><i>    <OTHER_A>0</OTHER_A></i><i><br>
          </i><i>  </PERMISSIONS></i><i><br>
          </i><i>  <LAST_POLL>1399460031</LAST_POLL></i><i><br>
          </i><i>  <STATE>7</STATE></i><i><br>
          </i><i>  <LCM_STATE>0</LCM_STATE></i><i><br>
          </i><i>  <RESCHED>0</RESCHED></i><i><br>
          </i><i>  <STIME>1399460007</STIME></i><i><br>
          </i><i>  <ETIME>1399460031</ETIME></i><i><br>
          </i><i>  <DEPLOY_ID/></i><i><br>
          </i><i>  <MEMORY>0</MEMORY></i><i><br>
          </i><i>  <CPU>0</CPU></i><i><br>
          </i><i>  <NET_TX>0</NET_TX></i><i><br>
          </i><i>  <NET_RX>0</NET_RX></i><i><br>
          </i><i>  <TEMPLATE></i><i><br>
          </i><i>   
            <AUTOMATIC_REQUIREMENTS><![CDATA[CLUSTER_ID = 101
            & !(PUBLIC_CLOUD =
            YES)]]></AUTOMATIC_REQUIREMENTS></i><i><br>
          </i><i>    <CONTEXT></i><i><br>
          </i><i>     
            <DISK_ID><![CDATA[1]]></DISK_ID></i><i><br>
          </i><i>     
            <ETH0_IP><![CDATA[2.3.4.6]]></ETH0_IP></i><i><br>
          </i><i>     
            <ETH0_MAC><![CDATA[02:00:02:03:04:06]]></ETH0_MAC></i><i><br>
          </i><i>     
            <NETWORK><![CDATA[YES]]></NETWORK></i><i><br>
          </i><i>     
            <TARGET><![CDATA[hdb]]></TARGET></i><i><br>
          </i><i>    </CONTEXT></i><i><br>
          </i><i>    <CPU><![CDATA[1]]></CPU></i><i><br>
          </i><i>    <DISK></i><i><br>
          </i><i>      <CLONE><![CDATA[YES]]></CLONE></i><i><br>
          </i><i>     
            <CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET></i><i><br>
          </i><i>     
            <CLUSTER_ID><![CDATA[101]]></CLUSTER_ID></i><i><br>
          </i><i>     
            <DATASTORE><![CDATA[default]]></DATASTORE></i><i><br>
          </i><i>     
            <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID></i><i><br>
          </i><i>     
            <DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX></i><i><br>
          </i><i>     
            <DISK_ID><![CDATA[0]]></DISK_ID></i><i><br>
          </i><i>      <IMAGE><![CDATA[ttylinux -
            VMware_file0]]></IMAGE></i><i><br>
          </i><i>     
            <IMAGE_ID><![CDATA[0]]></IMAGE_ID></i><i><br>
          </i><i>     
            <IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME></i><i><br>
          </i><i>     
            <LN_TARGET><![CDATA[NONE]]></LN_TARGET></i><i><br>
          </i><i>     
            <READONLY><![CDATA[NO]]></READONLY></i><i><br>
          </i><i>      <SAVE><![CDATA[NO]]></SAVE></i><i><br>
          </i><i>      <SIZE><![CDATA[103]]></SIZE></i><i><br>
          </i><i>     
<SOURCE><![CDATA[/vmfs/volumes/1/4117302ca359b7013acfdabe66c9b093]]></SOURCE></i><i><br>
          </i><i>     
            <TARGET><![CDATA[hda]]></TARGET></i><i><br>
          </i><i>     
            <TM_MAD><![CDATA[vmfs]]></TM_MAD></i><i><br>
          </i><i>      <TYPE><![CDATA[FILE]]></TYPE></i><i><br>
          </i><i>    </DISK></i><i><br>
          </i><i>    <GRAPHICS></i><i><br>
          </i><i>     
            <LISTEN><![CDATA[0.0.0.0]]></LISTEN></i><i><br>
          </i><i>      <PORT><![CDATA[5920]]></PORT></i><i><br>
          </i><i>      <TYPE><![CDATA[VNC]]></TYPE></i><i><br>
          </i><i>    </GRAPHICS></i><i><br>
          </i><i>    <MEMORY><![CDATA[256]]></MEMORY></i><i><br>
          </i><i>    <NIC></i><i><br>
          </i><i>     
            <BRIDGE><![CDATA[vSwitch0]]></BRIDGE></i><i><br>
          </i><i>     
            <CLUSTER_ID><![CDATA[101]]></CLUSTER_ID></i><i><br>
          </i><i>      <IP><![CDATA[2.3.4.6]]></IP></i><i><br>
          </i><i>     
<IP6_LINK><![CDATA[fe80::400:2ff:fe03:406]]></IP6_LINK></i><i><br>
          </i><i>     
            <MAC><![CDATA[02:00:02:03:04:06]]></MAC></i><i><br>
          </i><i>     
            <NETWORK><![CDATA[redecilla1]]></NETWORK></i><i><br>
          </i><i>     
            <NETWORK_ID><![CDATA[5]]></NETWORK_ID></i><i><br>
          </i><i>     
            <NETWORK_UNAME><![CDATA[oneadmin]]></NETWORK_UNAME></i><i><br>
          </i><i>      <NIC_ID><![CDATA[0]]></NIC_ID></i><i><br>
          </i><i>      <VLAN><![CDATA[YES]]></VLAN></i><i><br>
          </i><i>     
            <VLAN_ID><![CDATA[123]]></VLAN_ID></i><i><br>
          </i><i>    </NIC></i><i><br>
          </i><i>   
            <TEMPLATE_ID><![CDATA[1]]></TEMPLATE_ID></i><i><br>
          </i><i>    <VMID><![CDATA[20]]></VMID></i><i><br>
          </i><i>  </TEMPLATE></i><i><br>
          </i><i>  <USER_TEMPLATE></i><i><br>
          </i><i>   
            <DESCRIPTION><![CDATA[ttylinux]]></DESCRIPTION></i><i><br>
          </i><i>  </USER_TEMPLATE></i><i><br>
          </i><i>  <HISTORY_RECORDS></i><i><br>
          </i><i>    <HISTORY></i><i><br>
          </i><i>      <OID>20</OID></i><i><br>
          </i><i>      <SEQ>0</SEQ></i><i><br>
          </i><i>      <HOSTNAME>esxi1</HOSTNAME></i><i><br>
          </i><i>      <HID>2</HID></i><i><br>
          </i><i>      <CID>101</CID></i><i><br>
          </i><i>      <STIME>1399460028</STIME></i><i><br>
          </i><i>      <ETIME>1399460031</ETIME></i><i><br>
          </i><i>      <VMMMAD>vmware</VMMMAD></i><i><br>
          </i><i>      <VNMMAD>vmware</VNMMAD></i><i><br>
          </i><i>      <TMMAD>vmfs</TMMAD></i><i><br>
          </i><i>     
            <DS_LOCATION>/vmfs/volumes</DS_LOCATION></i><i><br>
          </i><i>      <DS_ID>101</DS_ID></i><i><br>
          </i><i>      <PSTIME>1399460028</PSTIME></i><i><br>
          </i><i>      <PETIME>1399460031</PETIME></i><i><br>
          </i><i>      <RSTIME>1399460031</RSTIME></i><i><br>
          </i><i>      <RETIME>1399460031</RETIME></i><i><br>
          </i><i>      <ESTIME>0</ESTIME></i><i><br>
          </i><i>      <EETIME>0</EETIME></i><i><br>
          </i><i>      <REASON>1</REASON></i><i><br>
          </i><i>      <ACTION>0</ACTION></i><i><br>
          </i><i>    </HISTORY></i><i><br>
          </i><i>  </HISTORY_RECORDS></i><i><br>
          </i><i></VM></i></small><br>
        <br>
        <br>
        <i><small><b>[oneadmin@one1 vmware]$ onevm show -x 21</b><br>
            <VM><br>
              <ID>21</ID><br>
              <UID>0</UID><br>
              <GID>0</GID><br>
              <UNAME>oneadmin</UNAME><br>
              <GNAME>oneadmin</GNAME><br>
              <NAME>ttylinux-21</NAME><br>
              <PERMISSIONS><br>
                <OWNER_U>1</OWNER_U><br>
                <OWNER_M>1</OWNER_M><br>
                <OWNER_A>0</OWNER_A><br>
                <GROUP_U>0</GROUP_U><br>
                <GROUP_M>0</GROUP_M><br>
                <GROUP_A>0</GROUP_A><br>
                <OTHER_U>0</OTHER_U><br>
                <OTHER_M>0</OTHER_M><br>
                <OTHER_A>0</OTHER_A><br>
              </PERMISSIONS><br>
              <LAST_POLL>1399460266</LAST_POLL><br>
              <STATE>3</STATE><br>
              <LCM_STATE>3</LCM_STATE><br>
              <RESCHED>0</RESCHED><br>
              <STIME>1399460007</STIME><br>
              <ETIME>0</ETIME><br>
              <DEPLOY_ID>one-21</DEPLOY_ID><br>
              <MEMORY>75776</MEMORY><br>
              <CPU>0</CPU><br>
              <NET_TX>0</NET_TX><br>
              <NET_RX>0</NET_RX><br>
              <TEMPLATE><br>
                <AUTOMATIC_REQUIREMENTS><![CDATA[CLUSTER_ID =
            101 & !(PUBLIC_CLOUD =
            YES)]]></AUTOMATIC_REQUIREMENTS><br>
                <CONTEXT><br>
                  <DISK_ID><![CDATA[1]]></DISK_ID><br>
                  <NETWORK><![CDATA[YES]]></NETWORK><br>
                  <TARGET><![CDATA[hdb]]></TARGET><br>
                </CONTEXT><br>
                <CPU><![CDATA[1]]></CPU><br>
                <DISK><br>
                  <CLONE><![CDATA[YES]]></CLONE><br>
                 
            <CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET><br>
                 
            <CLUSTER_ID><![CDATA[101]]></CLUSTER_ID><br>
                 
            <DATASTORE><![CDATA[default]]></DATASTORE><br>
                 
            <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID><br>
                 
            <DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX><br>
                  <DISK_ID><![CDATA[0]]></DISK_ID><br>
                  <IMAGE><![CDATA[ttylinux -
            VMware_file0]]></IMAGE><br>
                  <IMAGE_ID><![CDATA[0]]></IMAGE_ID><br>
                 
            <IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME><br>
                 
            <LN_TARGET><![CDATA[NONE]]></LN_TARGET><br>
                  <READONLY><![CDATA[NO]]></READONLY><br>
                  <SAVE><![CDATA[NO]]></SAVE><br>
                  <SIZE><![CDATA[103]]></SIZE><br>
                 
<SOURCE><![CDATA[/vmfs/volumes/1/4117302ca359b7013acfdabe66c9b093]]></SOURCE><br>
                  <TARGET><![CDATA[hda]]></TARGET><br>
                  <TM_MAD><![CDATA[vmfs]]></TM_MAD><br>
                  <TYPE><![CDATA[FILE]]></TYPE><br>
                </DISK><br>
                <MEMORY><![CDATA[256]]></MEMORY><br>
               
            <TEMPLATE_ID><![CDATA[0]]></TEMPLATE_ID><br>
                <VMID><![CDATA[21]]></VMID><br>
              </TEMPLATE><br>
              <USER_TEMPLATE><br>
               
            <DESCRIPTION><![CDATA[ttylinux]]></DESCRIPTION><br>
              </USER_TEMPLATE><br>
              <HISTORY_RECORDS><br>
                <HISTORY><br>
                  <OID>21</OID><br>
                  <SEQ>0</SEQ><br>
                  <HOSTNAME>esxi1</HOSTNAME><br>
                  <HID>2</HID><br>
                  <CID>101</CID><br>
                  <STIME>1399460058</STIME><br>
                  <ETIME>0</ETIME><br>
                  <VMMMAD>vmware</VMMMAD><br>
                  <VNMMAD>vmware</VNMMAD><br>
                  <TMMAD>vmfs</TMMAD><br>
                  <DS_LOCATION>/vmfs/volumes</DS_LOCATION><br>
                  <DS_ID>101</DS_ID><br>
                  <PSTIME>1399460058</PSTIME><br>
                  <PETIME>1399460061</PETIME><br>
                  <RSTIME>1399460061</RSTIME><br>
                  <RETIME>0</RETIME><br>
                  <ESTIME>0</ESTIME><br>
                  <EETIME>0</EETIME><br>
                  <REASON>0</REASON><br>
                  <ACTION>0</ACTION><br>
                </HISTORY><br>
              </HISTORY_RECORDS><br>
            </VM></small></i><br>
        <br>
        <br>
        Regards.<br>
        JoseM<br>
        <br>
        <br>
        <br>
        El 07/05/14 12:45, Tino Vazquez escribió:<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">Hi José Manuel,
          <div><br>
          </div>
          <div>It looks indeed like the driver is not capable of retieve
            the hostname of the ESX correctly. This information is
            pulled from the VM template:</div>
          <div><br>
          </div>
          <div>        host = @vm['HISTORY_RECORDS/HISTORY/HOSTNAME']<br>
          </div>
          <div><br>
          </div>
          <div>Let's first check that this information is there. Could
            you send us the output of:</div>
          <div><br>
          </div>
          <div> $ onevm show -x 15       # I think 15 is the ID of the
            VM that is failing to be launched, but I may be wrong</div>
          <div><br>
          </div>
          <div>Regards,</div>
          <div><br>
          </div>
          <div>-Tino</div>
        </div>
        <div class="gmail_extra"><br clear="all">
          <div>--<br>
            OpenNebula - Flexible Enterprise Cloud Made Simple<br>
            <br>
            --<br>
            Constantino Vázquez Blanco, PhD, MSc<br>
            Senior Infrastructure Architect at C12G Labs<br>
            <a href="http://www.c12g.com" target="_blank">www.c12g.com</a> | @C12G | <a href="http://es.linkedin.com/in/tinova" target="_blank">es.linkedin.com/in/tinova</a><br>
            <br>
            --<br>
            Confidentiality Warning: The information contained in this
            e-mail and any accompanying documents, unless otherwise
            expressly indicated, is confidential and privileged, and is
            intended solely for the person and/or entity to whom it is
            addressed (i.e. those identified in the "To" and "cc" box).
            They are the property of C12G Labs S.L.. Unauthorized
            distribution, review, use, disclosure, or copying of this
            communication, or any part thereof, is strictly prohibited
            and may be unlawful. If you have received this e-mail in
            error, please notify us immediately by e-mail at <a href="mailto:abuse@c12g.com" target="_blank">abuse@c12g.com</a> and delete the e-mail
            and attachments and any copy from your system. C12G thanks
            you for your cooperation.</div>
          <br>
          <br>
          <div class="gmail_quote">On 7 May 2014 12:11, Jose Manuel
            Martínez <span dir="ltr"><<a href="mailto:jose.martinez@fcsc.es" target="_blank">jose.martinez@fcsc.es</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 everybody.<br>
                <br>
                I'm trying to setup a testing cluster with ONE4.6 and
                only one ESXi5.5 compute host.<br>
                The ESXi host has been added using dynamic "vmware"
                network mode (onehost create esxi1 -i vmware -v vmware
                -n vmware). This is my first time trying to use native
                vmware network mode. I'm been deploying VMs over this
                testbed without problems with dummy network mode. The
                only change now is network from "dummy" to "vmware"
                (from predefined to dynamic).<br>
                <br>
                When I try to deploy a VM with a VMWare tagged virtual
                network, I get the next error:<br>
                <br>
                <b><i>/var/log/one/oned.log</i></b><br>
                <small><i>[...]</i></small><br>
                <small><i>Wed May  7 11:37:18 2014 [ReM][D]: Req:8800
                    UID:0 AclInfo result SUCCESS,
                    "<ACL_POOL><ACL><ID>0..."</i><i><br>
                  </i><i>Wed May  7 11:37:18 2014 [ReM][D]: Req:6576
                    UID:0 VirtualMachineDeploy invoked, 15, 2, false,
                    101</i><i><br>
                  </i><i>Wed May  7 11:37:18 2014 [DiM][D]: Deploying VM
                    15</i><i><br>
                  </i><i>Wed May  7 11:37:18 2014 [ReM][D]: Req:6576
                    UID:0 VirtualMachineDeploy result SUCCESS, 15</i><i><br>
                  </i><i>Wed May  7 11:37:18 2014 [ReM][D]: Req:9584
                    UID:0 VirtualMachineInfo invoked, 15</i><i><br>
                  </i><i>Wed May  7 11:37:18 2014 [ReM][D]: Req:9584
                    UID:0 VirtualMachineInfo result SUCCESS,
                    "<VM><ID>15</ID><UID>..."</i><i><br>
                  </i><i>Wed May  7 11:37:23 2014 [TM][D]: Message
                    received: TRANSFER SUCCESS 15 -</i><i><br>
                  </i><i><br>
                  </i><i>Wed May  7 11:37:23 2014 [VMM][D]: Message
                    received: LOG I 15 <b>Command execution fail:
                      /var/lib/one/remotes/vnm/vmware/pr</b><b>e</b>
PFZNPjxJRD4xNTwvSUQ+PERFUExPWV9JRC8+PFRFTVBMQVRFPjxOSUM+PEJSSURHRT48IVtDREFUQVt2U3dpdGNoMF1dPjwvQlJJREdFPjxDTFVTVEVSX0lEPjwhW0NEQVRBWzEwMV1dPjwvQ0xVU1RFUl9JRD48SVA+PCFbQ0RBVEFbMi4zLjQuNl1dPjwvSVA+PElQNl9MSU5LPjwhW0NEQVRBW2ZlODA6OjQwMDoyZmY6ZmUwMzo0MDZdXT48L0lQNl9MSU5LPjxNQUM+PCFbQ0RBVEFbMDI6MDA6MDI6MDM6MDQ6MDZdXT48L01BQz48TkVUV09SSz48IVtDREFUQVtyZWRlY2lsbGExXV0+PC9ORVRXT1JLPjxORVRXT1JLX0lEPjwhW0NEQVRBWzVdXT48L05FVFdPUktfSUQ+PE5FVFdPUktfVU5BTUU+PCFbQ0RBVEFbb25lYWRtaW5dXT48L05FVFdPUktfVU5BTUU+PE5JQ19JRD48IVtDREFUQVswXV0+PC9OSUNfSUQ+PFZMQU4+PCFbQ0RBVEFbWUVTXV0+PC9WTEFOPjxWTEFOX0lEPjwhW0NEQVRBWzEyM11dPjwvVkxBTl9JRD48L05JQz48L1RFTVBMQVRFPjwvVk0+</i><i><br>


                  </i><i><br>
                  </i><i>Wed May  7 11:37:23 2014 [VMM][D]: Message
                    received: LOG E 15 pre: Error executing:
                    ((esxcfg-vswitch vSwitch0 -l|grep one-pg-5) ||
                    /sbin/esxcfg-vswitch vSwitch0 --add-pg one-pg-5);
                    /sbin/esxcfg-vswitch vSwitch0 -p one-pg-5 --vlan=123
                    on host:  err: Pseudo-terminal will not be allocated
                    because stdin is not a terminal.</i><i><br>
                  </i><i><br>
                  </i><i>Wed May  7 11:37:23 2014 [VMM][D]: Message
                    received: LOG I 15 ssh: <b>Could not resolve
                      hostname ((esxcfg-vswitch vSwitch0 -l|grep
                      one-pg-5) || /sbin/esxcfg-vswitch vSwitch0
                      --add-pg one-pg-5); /sb: Name or service not known</b></i><i><br>
                  </i><i><br>
                  </i><i>Wed May  7 11:37:23 2014 [VMM][D]: Message
                    received: LOG I 15 ExitCode: 255</i><i><br>
                  </i><i><br>
                  </i><i>Wed May  7 11:37:23 2014 [VMM][D]: Message
                    received: LOG I 15 out:</i><i><br>
                  </i><i><br>
                  </i><i>Wed May  7 11:37:23 2014 [VMM][D]: Message
                    received: LOG I 15 ExitCode: 0</i><i><br>
                  </i><i><br>
                  </i><i>Wed May  7 11:37:23 2014 [VMM][D]: Message
                    received: LOG I 15 Failed to execute network driver
                    operation: pre.</i><i><br>
                  </i><i><br>
                  </i><i>Wed May  7 11:37:23 2014 [VMM][D]: Message
                    received: DEPLOY FAILURE 15 -</i><i><br>
                  </i><i><br>
                  </i><i>Wed May  7 11:37:45 2014 [InM][D]: Monitoring
                    host esxi1 (2)</i><i><br>
                  </i><i>Wed May  7 11:37:46 2014 [ImM][D]: Datastore
                    system (0) successfully monitored.</i><i><br>
                  </i><i>Wed May  7 11:37:46 2014 [ImM][D]: Datastore
                    VMS (101) successfully monitored.</i><i><br>
                  </i><i>[...]</i></small><br>
                <br>
                It looks like if the script "pre" is not getting the
                hostname of the esxi where it has to execute the
                command. The hostname should be "esxi1". Trying to debug
                the issue I have placed some "print host" lines over the
                ruby scripts (pre and VMWare.rb) and they always return
                "nil".<br>
                <br>
                The host, datastores and virtual network are merged into
                the same cluster, and this is the virtual network
                definition:<br>
                <br>
                <small><b><i>[oneadmin@one1 vmware]$ onevnet list</i></b><i><br>
                  </i><i>  ID USER         GROUP        NAME           
                    CLUSTER      TYPE BRIDGE   LEASES</i><i><br>
                  </i><i>   5 oneadmin     oneadmin     redecilla1     
                    clustercil      F vSwitch0      2<br>
                    <br>
                  </i><b><i>[oneadmin@one1 vmware]$ onevnet show 5</i></b><i><br>
                  </i><i>VIRTUAL NETWORK 5
                    INFORMATION                                                  
                  </i><i><br>
                  </i><i>ID             : 5                   </i><i><br>
                  </i><i>NAME           : red1          </i><i><br>
                  </i><i>USER           : oneadmin            </i><i><br>
                  </i><i>GROUP          : oneadmin            </i><i><br>
                  </i><i>CLUSTER        : cluster1       </i><i><br>
                  </i><i>TYPE           : FIXED               </i><i><br>
                  </i><i>BRIDGE         : vSwitch0            </i><i><br>
                  </i><i>VLAN           : Yes                 </i><i><br>
                  </i><i>VLAN ID        : 123                 </i><i><br>
                  </i><i>USED LEASES    : 2                   </i><i><br>
                  </i><i><br>
                  </i><i>PERMISSIONS                                                                    


                  </i><i><br>
                  </i><i>OWNER          : um-                 </i><i><br>
                  </i><i>GROUP          : ---                 </i><i><br>
                  </i><i>OTHER          : ---                 </i><i><br>
                  </i><i><br>
                  </i><i>VIRTUAL NETWORK
                    TEMPLATE                                                       
                  </i><i><br>
                  </i><i>BRIDGE="vSwitch0"</i><i><br>
                  </i><i>DESCRIPTION=""</i><i><br>
                  </i><i>PHYDEV=""</i><i><br>
                  </i><i>VLAN="YES"</i><i><br>
                  </i><i>VLAN_ID="123"</i><i><br>
                  </i><i><br>
                  </i><i>USED
                    LEASES                                                                    


                  </i><i><br>
                  </i><i>LEASE=[ MAC="02:00:02:03:04:05", IP="2.3.4.5",
                    IP6_LINK="fe80::400:2ff:fe03:405", USED="1",
                    VID="14" ]</i><i><br>
                  </i><i>LEASE=[ MAC="02:00:02:03:04:06", IP="2.3.4.6",
                    IP6_LINK="fe80::400:2ff:fe03:406", USED="1",
                    VID="15" ]</i><i><br>
                  </i><i><br>
                  </i><i>FREE
                    LEASES                                                                    


                  </i><i><br>
                  </i><i>LEASE=[ MAC="02:00:02:03:04:07", IP="2.3.4.7",
                    IP6_LINK="fe80::400:2ff:fe03:407", USED="0",
                    VID="-1" ]</i><i><br>
                  </i><i><br>
                  </i><i>VIRTUAL MACHINES</i><i><br>
                  </i><i><br>
                  </i><i>    ID USER     GROUP    NAME            STAT
                    UCPU    UMEM HOST             TIME</i><i><br>
                  </i><i>    14 oneadmin oneadmin bghy           
                    fail    0      0K              0d 00h00</i><i><br>
                  </i><i>    15 oneadmin oneadmin aragt3 gre     
                    fail    0      0K              0d 00h00</i><i><br>
                  </i></small><br>
                Can you help me?.<br>
                Regards.<br>
                <div>-- <br>
                  <div>
                    <p class="MsoNormal"> </p>
                    <table style="border-collapse:collapse;border:none" cellpadding="0" cellspacing="0" border="1">
                      <tbody>
                        <tr>
                          <td style="width:317.25pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="423">
                            <p class="MsoNormal"><b><span>---<br>
                                  Jose Manuel Martínez García</span></b></p>
                            <p class="MsoNormal"><b><span>Coordinador de
                                  Sistemas</span></b></p>
                            <p class="MsoNormal"><span> </span></p>
                            <p class="MsoNormal"><span>T: +34-987-29 31
                                74 / e-mail: <a href="mailto:jose.martinez@fcsc.es" target="_blank">jose.martinez@fcsc.es</a></span></p>
                            <p class="MsoNormal"><span><a href="http://www.fcsc.es" target="_blank">www.fcsc.es</a></span><span></span></p>
                            <p class="MsoNormal"><span>Edificio
                                CRAI-TIC.<span>  </span>Campus de
                                Vegazana, s/n. Universidad de León</span></p>
                            <p class="MsoNormal"><span>24071 León</span></p>
                            <p class="MsoNormal"><span> </span></p>
                          </td>
                          <td style="width:154.2pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="206">
                            <p class="MsoNormal"><span> </span></p>
                            <p class="MsoNormal" style="margin-left:1.7pt;text-align:center" align="center"><span><img src="cid:part7.04020607.01020506@fcsc.es" alt="Identificador Junta color" height="75" width="121"></span><span></span></p>


                          </td>
                          <td style="width:235.75pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="314">
                            <p class="MsoNormal" style="margin-bottom:6.0pt;text-align:center" align="center"><span> </span></p>
                            <p class="MsoNormal" style="text-align:center" align="center"><span><img src="cid:part8.01060100.08020700@fcsc.es" alt="SUPERCOMPUTACION_new_logo" height="66" width="193"></span><span></span></p>


                          </td>
                        </tr>
                        <tr>
                          <td colspan="3" style="width:707.2pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="943">
                            <p class="MsoNormal"><span>Este mensaje se
                                dirige exclusivamente a su destinatario
                                y puede contener información
                                privilegiada o confidencial. Si Vd. no
                                es el destinatario indicado, queda
                                notificado de que la lectura,
                                utilización, divulgación y/o copia sin
                                autorización está prohibida en virtud de
                                la legislación vigente.<span>   </span>Si
                                ha recibido este mensaje por error, le
                                rogamos que nos lo comunique
                                inmediatamente por esta misma vía y
                                proceda a su destrucción. El correo
                                electrónico vía Internet no permite
                                asegurar la confidencialidad de los
                                mensajes que se transmiten ni su
                                integridad o correcta recepción. La
                                Fundación Centro de Supercomputación de
                                Castilla y León no asume ninguna
                                responsabilidad por estas
                                circunstancias.</span></p>
                            <p class="MsoNormal"><span> </span></p>
                            <p class="MsoNormal"><span lang="EN-US">This
                                message is intended exclusively for its
                                addressee and may contain information
                                that is CONFIDENTIAL and protected by a
                                professional privilege or whose
                                disclosure is prohibited by law. If you
                                are not the intended recipient you are
                                hereby notified that any read,
                                dissemination, copy or disclosure of
                                this communication is strictly
                                prohibited by law.</span></p>
                            <p class="MsoNormal"><span lang="EN-US">If
                                this message has been received in error,
                                please immediately notify us via e-mail
                                and delete it. Internet e-mail neither
                                guarantees the confidentiality nor the
                                integrity or proper receipt of the
                                messages sent. </span><span>Fundación
                                Centro de Supercomputación de Castilla y
                                León does not assume any liability for
                                those circumstances.</span></p>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                    <p class="MsoNormal"> </p>
                    <p class="MsoNormal"> </p>
                  </div>
                </div>
              </div>
              <br>
              _______________________________________________<br>
              Users mailing list<br>
              <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
              <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </blockquote>
      <br>
      <br>
      <div>-- <br>
        
        
        
        
        
        
        
        
        
        
        
        <div>
          <p class="MsoNormal"><u></u> <u></u></p>
          <table style="border-collapse:collapse;border:none" cellpadding="0" cellspacing="0" border="1">
            <tbody>
              <tr>
                <td style="width:317.25pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="423">
                  <p class="MsoNormal"><b><span>---<br>
                        Jose Manuel Martínez García<u></u><u></u></span></b></p>
                  <p class="MsoNormal"><b><span>Coordinador
                        de Sistemas<u></u><u></u></span></b></p>
                  <p class="MsoNormal"><span><u></u> <u></u></span></p>
                  <p class="MsoNormal"><span>T: +34-987-29
                      31 74 / e-mail: <a href="mailto:jose.martinez@fcsc.es" target="_blank">jose.martinez@fcsc.es</a><u></u><u></u></span></p>
                  <p class="MsoNormal"><span><a href="http://www.fcsc.es" target="_blank">www.fcsc.es</a></span><span><u></u><u></u></span></p>
                  <p class="MsoNormal"><span>Edificio
                      CRAI-TIC.<span>  </span>Campus

                      de Vegazana, s/n. Universidad de León<u></u><u></u></span></p>
                  <p class="MsoNormal"><span>24071 León<u></u><u></u></span></p>
                  <p class="MsoNormal"><span><u></u> <u></u></span></p>
                </td>
                <td style="width:154.2pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="206">
                  <p class="MsoNormal"><span><u></u> <u></u></span></p>
                  <p class="MsoNormal" style="margin-left:1.7pt;text-align:center" align="center"><span><img src="cid:part13.02010803.01010501@fcsc.es" alt="Identificador Junta color" height="75" width="121"></span><span><u></u><u></u></span></p>


                </td>
                <td style="width:235.75pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="314">
                  <p class="MsoNormal" style="margin-bottom:6.0pt;text-align:center" align="center"><span><u></u> <u></u></span></p>
                  <p class="MsoNormal" style="text-align:center" align="center"><span><img src="cid:part14.01070100.00010907@fcsc.es" alt="SUPERCOMPUTACION_new_logo" height="66" width="193"></span><span><u></u><u></u></span></p>


                </td>
              </tr>
              <tr>
                <td colspan="3" style="width:707.2pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="943">
                  <p class="MsoNormal"><span>Este mensaje se
                      dirige exclusivamente a su destinatario y puede
                      contener información privilegiada o confidencial.
                      Si Vd. no es el destinatario indicado, queda
                      notificado de que la lectura, utilización,
                      divulgación y/o copia sin autorización está
                      prohibida en virtud de la legislación vigente.<span>   </span>Si ha
                      recibido este mensaje por error, le rogamos que
                      nos lo comunique inmediatamente por esta misma vía
                      y proceda a su destrucción. El correo electrónico
                      vía Internet no permite asegurar la
                      confidencialidad de los mensajes que se transmiten
                      ni su integridad o correcta recepción. La
                      Fundación Centro de Supercomputación de Castilla y
                      León no asume ninguna responsabilidad por estas
                      circunstancias.<u></u><u></u></span></p>
                  <p class="MsoNormal"><span><u></u> <u></u></span></p>
                  <p class="MsoNormal"><span lang="EN-US">This message is intended exclusively
                      for its addressee and may contain information that
                      is CONFIDENTIAL and protected by a professional
                      privilege or whose disclosure is prohibited by
                      law. If you are not the intended recipient you are
                      hereby notified that any read, dissemination, copy
                      or disclosure of this communication is strictly
                      prohibited by law.<u></u><u></u></span></p>
                  <p class="MsoNormal"><span lang="EN-US">If this message has been received in
                      error, please immediately notify us via e-mail and
                      delete it. Internet e-mail neither guarantees the
                      confidentiality nor the integrity or proper
                      receipt of the messages sent. </span><span>Fundación
                      Centro de Supercomputación de Castilla y León does
                      not assume any liability for those circumstances.<u></u><u></u></span></p>
                </td>
              </tr>
            </tbody>
          </table>
          <p class="MsoNormal"><u></u> <u></u></p>
          <p class="MsoNormal"><u></u> <u></u></p>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <div>-- <br>
      
      
      
      
      
      
      
      
      
      
      
      <div>
        <p class="MsoNormal"><u></u> <u></u></p>
        <table style="border-collapse:collapse;border:none" cellpadding="0" cellspacing="0" border="1">
          <tbody>
            <tr>
              <td style="width:317.25pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="423">
                <p class="MsoNormal"><b><span>---<br>
                      Jose Manuel Martínez García<u></u><u></u></span></b></p>
                <p class="MsoNormal"><b><span>Coordinador de
                      Sistemas<u></u><u></u></span></b></p>
                <p class="MsoNormal"><span><u></u> <u></u></span></p>
                <p class="MsoNormal"><span>T: +34-987-29 31
                    74 / e-mail: <a href="mailto:jose.martinez@fcsc.es" target="_blank">jose.martinez@fcsc.es</a><u></u><u></u></span></p>
                <p class="MsoNormal"><span><a href="http://www.fcsc.es" target="_blank">www.fcsc.es</a></span><span><u></u><u></u></span></p>
                <p class="MsoNormal"><span>Edificio
                    CRAI-TIC.<span>  </span>Campus
                    de Vegazana, s/n. Universidad de León<u></u><u></u></span></p>
                <p class="MsoNormal"><span>24071 León<u></u><u></u></span></p>
                <p class="MsoNormal"><span><u></u> <u></u></span></p>
              </td>
              <td style="width:154.2pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="206">
                <p class="MsoNormal"><span><u></u> <u></u></span></p>
                <p class="MsoNormal" style="margin-left:1.7pt;text-align:center" align="center"><span><img src="cid:part15.05080806.01060308@fcsc.es" alt="Identificador Junta color" height="75" width="121"></span><span><u></u><u></u></span></p>


              </td>
              <td style="width:235.75pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="314">
                <p class="MsoNormal" style="margin-bottom:6.0pt;text-align:center" align="center"><span><u></u> <u></u></span></p>
                <p class="MsoNormal" style="text-align:center" align="center"><span><img src="cid:part16.05020904.05050000@fcsc.es" alt="SUPERCOMPUTACION_new_logo" height="66" width="193"></span><span><u></u><u></u></span></p>


              </td>
            </tr>
            <tr>
              <td colspan="3" style="width:707.2pt;border:none;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="943">
                <p class="MsoNormal"><span>Este mensaje se
                    dirige exclusivamente a su destinatario y puede
                    contener información privilegiada o confidencial. Si
                    Vd. no es el destinatario indicado, queda notificado
                    de que la lectura, utilización, divulgación y/o
                    copia sin autorización está prohibida en virtud de
                    la legislación vigente.<span>   </span>Si ha recibido
                    este mensaje por error, le rogamos que nos lo
                    comunique inmediatamente por esta misma vía y
                    proceda a su destrucción. El correo electrónico vía
                    Internet no permite asegurar la confidencialidad de
                    los mensajes que se transmiten ni su integridad o
                    correcta recepción. La Fundación Centro de
                    Supercomputación de Castilla y León no asume ninguna
                    responsabilidad por estas circunstancias.<u></u><u></u></span></p>
                <p class="MsoNormal"><span><u></u> <u></u></span></p>
                <p class="MsoNormal"><span lang="EN-US">This message is intended exclusively
                    for its addressee and may contain information that
                    is CONFIDENTIAL and protected by a professional
                    privilege or whose disclosure is prohibited by law.
                    If you are not the intended recipient you are hereby
                    notified that any read, dissemination, copy or
                    disclosure of this communication is strictly
                    prohibited by law.<u></u><u></u></span></p>
                <p class="MsoNormal"><span lang="EN-US">If this message has been received in
                    error, please immediately notify us via e-mail and
                    delete it. Internet e-mail neither guarantees the
                    confidentiality nor the integrity or proper receipt
                    of the messages sent. </span><span>Fundación Centro
                    de Supercomputación de Castilla y León does not
                    assume any liability for those circumstances.<u></u><u></u></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><u></u> <u></u></p>
        <p class="MsoNormal"><u></u> <u></u></p>
      </div>
    </div>
  </div></div></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>