<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      Thanks for the input. We were using "-r" when we tested again this
      morning, and paying closer attention to the log showed that the
      problem is in the delete phase. The delete command seems to be
      executed on the host that is unreachable (in this case bl05):<br>
      <br>
      Thu Mar 27 11:07:36 2014 [VMM][I]: fi" failed: ssh: connect to
      host bl05 port 22: Connection refused<br>
      Thu Mar 27 11:07:36 2014 [VMM][E]: Error deleting
      /var/lib/one/datastores/109/416/disk.0<br>
      Thu Mar 27 11:07:36 2014 [VMM][I]: ExitCode: 255<br>
      Thu Mar 27 11:07:36 2014 [VMM][I]: Failed to execute transfer
      manager driver operation: tm_delete.<br>
      Thu Mar 27 11:07:36 2014 [VMM][I]: Command execution fail:
      /var/lib/one/remotes/tm/shared/delete
      bl05:/var/lib/one//datastores/109/416 416 109<br>
      <br>
      I attached a log for the VM running on host bl05.<br>
      <br>
      Thanks for the help,<br>
      <br>
      Nuno<br>
      <br>
      <br>
      <br>
      <div class="moz-signature">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <style type="text/css">@media print{table{font: 6pt/7pt Times New Roman, serif !important;}span{font-size: 7pt !important;}img{width: 100px !important;}.pad{padding-top: 17px !important;}}</style>
        <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.07030101.01000608@reitoria.ulisboa.pt"
                        v:shapes="_x0000_i1025" height="165" width="170"></span><span
                      style="font-size:9.0pt;color:#1F497D"><o:p></o:p></span></p>
                </td>
                <td style="padding:.75pt .75pt .75pt .75pt" valign="top">
                  <p style="margin-top:24.75pt;line-height:11.0pt"><span
                      style="font-family:"Times New
                      Roman","serif"">Nuno Serro</span><span
                      style="font-size:9.0pt;font-family:"Times New
                      Roman","serif""><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. +351 210 443 566 - Ext. 19816<br>
                      E. <a href="mailto:nserro@reitoria.ulisboa.pt"><span
                          style="color:windowtext">nserro@reitoria.ulisboa.pt</span></a>
                      <br>
                      <a href="http://www.ulisboa.pt/"><span
                          style="color:windowtext">www.ulisboa.pt</span></a>
                    </span><span
                      style="font-size:9.0pt;font-family:"Times New
                      Roman","serif""><o:p></o:p></span></p>
                </td>
              </tr>
            </tbody>
          </table>
          <p><o:p> </o:p></p>
          <p><o:p> </o:p></p>
        </div>
      </div>
      On 26-03-2014 16:57, Tino Vazquez wrote:<br>
    </div>
    <blockquote
cite="mid:CAHfKwc2Nd6jbGmv9OMhx84t2vR9YUM3x_y6P7q7THcYRtvDDRQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <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 moz-do-not-send="true" href="http://www.c12g.com"
              target="_blank">www.c12g.com</a> | @C12G | <a
              moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 moz-do-not-send="true"
                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:part8.02040307.09070106@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 moz-do-not-send="true"
                                      href="tel:%2B351%20210%20443%20566"
                                      value="+351210443566"
                                      target="_blank">+351 210 443 566</a>
                                    - Ext. 19816<br>
                                    E. <a moz-do-not-send="true"
                                      href="mailto:nserro@reitoria.ulisboa.pt"
                                      target="_blank"><span
                                        style="color:windowtext">nserro@reitoria.ulisboa.pt</span></a>
                                    <br>
                                    <a moz-do-not-send="true"
                                      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>
                  <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 moz-do-not-send="true"
                            href="http://www.c12g.com" target="_blank">www.c12g.com</a>
                          | @C12G | <a moz-do-not-send="true"
                            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 moz-do-not-send="true"
                            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
                              moz-do-not-send="true"
                              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:part16.05020109.07090003@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
                                                moz-do-not-send="true"
                                                href="tel:%2B351%20210%20443%20566"
                                                value="+351210443566"
                                                target="_blank">+351 210
                                                443 566</a> - Ext. 19816<br>
                                              E. <a
                                                moz-do-not-send="true"
                                                href="mailto:nserro@reitoria.ulisboa.pt"
                                                target="_blank"><span
                                                  style="color:windowtext">nserro@reitoria.ulisboa.pt</span></a>
                                              <br>
                                              <a moz-do-not-send="true"
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 moz-do-not-send="true"
                              href="mailto:Users@lists.opennebula.org"
                              target="_blank">Users@lists.opennebula.org</a><br>
                            <a moz-do-not-send="true"
                              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 moz-do-not-send="true"
                href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
              <a moz-do-not-send="true"
                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>
    </blockquote>
    <br>
  </body>
</html>