<div dir="ltr">Hi,<div><br></div><div>Thanks for the info.</div><div><br></div><div>The hook for host error in OpenNebula 4.4 allows to define one, and only one, of the "-r" and "-d" flags:</div><div><br>


</div><div>   * -r will "delete --recreate" the VM in the failed host, this will go through the epilog_delete phase, and it should erase the sym links and launch the VM again. This is probably what you want, please come back if the problem does not go away</div>


<div> </div><div>  * -d will "delete" the VM in the failed host, but won't launch the VM again.</div><div><br></div><div>These two are mutually exclusive. </div><div><br></div><div>Regards,</div><div><br></div>


<div>-Tino</div><div><br></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 26 March 2014 17:48, Nuno Serro <span dir="ltr"><<a href="mailto:nserro@reitoria.ulisboa.pt" target="_blank">nserro@reitoria.ulisboa.pt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Hello Tino,<br>
      <br>
      We are using version 4.4.1. If you need any details on the
      configuration I can provide them.<div><br>
      <br>
      <br>
      <div>
        
        
        <div>
          <table border="0" cellpadding="0">
            <tbody>
              <tr>
                <td style="padding:.75pt .75pt .75pt .75pt">
                  <p style="line-height:11.0pt"><span style="font-size:9.0pt;color:#1f497d"> <img src="cid:part1.08080203.02020407@reitoria.ulisboa.pt" height="165" width="170"></span><span style="font-size:9.0pt;color:#1f497d"><u></u><u></u></span></p>



                </td>
                <td style="padding:.75pt .75pt .75pt .75pt" valign="top">
                  <p style="margin-top:24.75pt;line-height:11.0pt"><span>Nuno Serro</span><span><br>
                      Coordenador<br>
                      Núcleo de Infraestruturas e Telecomunicações<br>
                      Departamento de Informática <br>
                      <br>
                      Alameda da Universidade  -  Cidade Universitária<br>
                      1649-004 Lisboa    PORTUGAL<br>
                      T. <a href="tel:%2B351%20210%20443%20566" value="+351210443566" target="_blank">+351 210 443 566</a> - Ext. 19816<br>
                      E. <a href="mailto:nserro@reitoria.ulisboa.pt" target="_blank"><span style="color:windowtext">nserro@reitoria.ulisboa.pt</span></a>
                      <br>
                      <a href="http://www.ulisboa.pt/" target="_blank"><span style="color:windowtext">www.ulisboa.pt</span></a>
                    </span><span><u></u><u></u></span></p>
                </td>
              </tr>
            </tbody>
          </table>
          <p><u></u> <u></u></p>
          <p><u></u> <u></u></p>
        </div>
      </div></div><div><div>
      On 26-03-2014 16:44, Tino Vazquez wrote:<br>
    </div></div></div><div><div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi Nuno,
        <div><br>
        </div>
        <div>What version of OpenNebula are you using?</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 26 March 2014 17:29, Nuno Serro <span dir="ltr"><<a href="mailto:nserro@reitoria.ulisboa.pt" target="_blank">nserro@reitoria.ulisboa.pt</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> <tt>Hello,</tt><tt><br>
              </tt><tt><br>
              </tt><tt>We've started using a system datastore whith a
                shared storage in a clustered fs, so we could start
                testing the live migrate functionality. The live migrate
                is working as expected, but when testing the fault
                tolerance using the host_hook, we noticed the following
                error:</tt><tt><br>
              </tt><tt><br>
              </tt><tt>[TM][I]:  ln -s "/dev/vg-nebula/lv-one-144"
                "/var/lib/one/datastores/109/393/disk.0"" failed: ln:
                failed to create symbolic link
                `/var/lib/one/datastores/109/393/disk.0': File exists</tt><tt><br>
              </tt><tt>[TM][E]: Error linking /dev/vg-nebula/lv-one-144</tt><tt><br>
              </tt><tt><br>
              </tt><tt>I understand the error. When I kill one node and
                host_hook kicks in, being the storage shared between
                nodes, the symlinks to the images are already there.</tt><tt><br>
              </tt><tt><br>
              </tt><tt>My question is regarding the hook definition:</tt><tt><br>
              </tt><tt><br>
              </tt><tt>HOST_HOOK = [</tt><tt><br>
              </tt><tt>    name      = "error",</tt><tt><br>
              </tt><tt>    on        = "ERROR",</tt><tt><br>
              </tt><tt>    command   = "ft/host_error.rb",</tt><tt><br>
              </tt><tt>    arguments = "$ID -r",</tt><tt><br>
              </tt><tt>    remote    = "no" ]</tt><tt><br>
              </tt><tt><br>
                Is it possible to configure the hook to delete the VM,
                and afterwards creating it? We tried combining "-d" and
                "-r" flags but only one flag seems to be used.<br>
                <br>
                Thanks in advance.<br>
                <br>
                Regards,<br>
                <br>
              </tt>
              <div>-- <br>
                <div>
                  <table border="0" cellpadding="0">
                    <tbody>
                      <tr>
                        <td style="padding:.75pt .75pt .75pt .75pt">
                          <p style="line-height:11.0pt"><span style="font-size:9.0pt;color:#1f497d"> <img src="cid:part8.05010503.08060703@reitoria.ulisboa.pt" height="165" width="170"></span><span style="font-size:9.0pt;color:#1f497d"></span></p>



                        </td>
                        <td style="padding:.75pt .75pt .75pt .75pt" valign="top">
                          <p style="margin-top:24.75pt;line-height:11.0pt"><span>Nuno
                              Serro</span><span><br>
                              Coordenador<br>
                              Núcleo de Infraestruturas e
                              Telecomunicações<br>
                              Departamento de Informática <br>
                              <br>
                              Alameda da Universidade  -  Cidade
                              Universitária<br>
                              1649-004 Lisboa    PORTUGAL<br>
                              T. <a href="tel:%2B351%20210%20443%20566" value="+351210443566" target="_blank">+351
                                210 443 566</a> - Ext. 19816<br>
                              E. <a href="mailto:nserro@reitoria.ulisboa.pt" target="_blank"><span style="color:windowtext">nserro@reitoria.ulisboa.pt</span></a>
                              <br>
                              <a href="http://www.ulisboa.pt/" target="_blank"><span style="color:windowtext">www.ulisboa.pt</span></a>
                            </span><span></span></p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                  <p> </p>
                  <p> </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>
  </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></div>