<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>Thanks for the answer, I'll look at this clue.<br>But I think there is another problem, as I'm running Xen.<br><br>In fact, Opennebula try to move a file that does'nt exist, because the image file is not transferred back from the dom0.<br><br>Regards,<br><br>--- En date de : <b>Ven 23.3.12, Gmail <i><gubasanyi@gmail.com></i></b> a écrit :<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Gmail <gubasanyi@gmail.com><br>Objet: Re: [one-users] Bug with delete action and persistent storage<br>À: users@lists.opennebula.org<br>Date: Vendredi 23 mars 2012, 19h55<br><br><div id="yiv1060902680">
  

    
  <div>
    Hi this is a Permission issue. Usually the problem is that KVM run
    as root and take over permission on images. You can prevent this by
    the proper settings of KVM.<br>
    <br>
    qemu.conf<br>
    <br>
    # The user ID for QEMU processes run by the system instance.<br>
    user = "oneuser"<br>
    <br>
    # The group ID for QEMU processes run by the system instance.<br>
    group = "onegroup"<br>
    <br>
    # Whether libvirt should dynamically change file ownership<br>
    # to match the configured user/group above. Defaults to 1.<br>
    # Set to 0 to disable file ownership changes.<br>
    dynamic_ownership = 0<br>
    <br>
    And if you do that you need to add oneuser to the kvm group to allow
    acces to /dev/kvm... I hope it solves ur problem.<br>
    <br>
    2012-03-23 18:26 keltezéssel, Nicolas AGIUS írta:
    <blockquote type="cite">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="font: inherit;" valign="top">Hi,<br>
              I found a small bug in OpenNebula v3.2.1.<br>
              <br>
              When I try to delete a VM with a persistent image, the
              image switch in the ERROR state and the following trace
              appear in the log :<br>
              <br>
              ------<br>
              [ImM][I]: Moving disk /var/lib/one/64/disk.0 to repository
              image 15<br>
              [VMM][D]: Message received: LOG I 64 Driver command for 64
              cancelled<br>
              [ImG][D]: Message received: LOG I 15 Command execution
              fail: /var/lib/one/remotes/image/fs/mv
              /var/lib/one/64/disk.0
              /var/lib/one/images/5f4cc7519564396f02e99a59e5bd45c0 15 15<br>
              [ImM][I]: Command execution fail:
              /var/lib/one/remotes/image/fs/mv /var/lib/one/64/disk.0
              /var/lib/one/images/5f4cc7519564396f02e99a59e5bd45c0 15 15<br>
              [ImG][D]: Message received: LOG I 15 mv: Moving local
              image /var/lib/one/64/disk.0 to the image repository<br>
              [ImM][I]: mv: Moving local image /var/lib/one/64/disk.0 to
              the image repository<br>
              [ImG][D]: Message received: LOG E 15 mv: Command "mv -f
              /var/lib/one/64/disk.0
              /var/lib/one/images/5f4cc7519564396f02e99a59e5bd45c0"
              failed.<br>
              [ImM][E]: mv: Command "mv -f /var/lib/one/64/disk.0
              /var/lib/one/images/5f4cc7519564396f02e99a59e5bd45c0"
              failed.<br>
              [ImG][D]: Message received: LOG E 15 mv: mv: cannot stat
              `/var/lib/one/64/disk.0': No such file or directory<br>
              [ImM][E]: mv: mv: cannot stat `/var/lib/one/64/disk.0': No
              such file or directory<br>
              [ImG][D]: Message received: LOG E 15 Could not move
              /var/lib/one/64/disk.0 to
              /var/lib/one/images/5f4cc7519564396f02e99a59e5bd45c0<br>
              [ImM][E]: Could not move /var/lib/one/64/disk.0 to
              /var/lib/one/images/5f4cc7519564396f02e99a59e5bd45c0<br>
              [ImG][D]: Message received: LOG I 15 ExitCode: 1<br>
              [ImM][I]: ExitCode: 1<br>
              [ImG][D]: Message received: MV FAILURE 15 Could not move
              /var/lib/one/64/disk.0 to
              /var/lib/one/images/5f4cc7519564396f02e99a59e5bd45c0<br>
              [ImM][E]: Error saving image to the repository: Could not
              move /var/lib/one/64/disk.0 to
              /var/lib/one/images/5f4cc7519564396f02e99a59e5bd45c0<br>
              --------<br>
              <br>
              It seems that the delete action is doing the following
              steps :<br>
               - Move image to the repo<br>
               - Delete image on the host<br>
               - Destroy the vm<br>
              <br>
              But the image is not transferred and cause the error. I
              thinks steps should be :<br>
               - Destroy the vm<br>
               - Copy back the image from the host<br>
               - Move image to the repo<br>
               - Delete image on the host<br>
              <br>
              I've tried to fix it,  but I got lost somewhere between
              C++ and Ruby...<br>
              <br>
              Subsidiary question, why is the core written in C++ and
              not in Ruby ?<br>
              <br>
              Thanks,<br>
              Nicolas AGIUS<br>
              <br>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <fieldset class="yiv1060902680mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________<br>Users mailing list<br><a rel="nofollow" class="yiv1060902680moz-txt-link-abbreviated" ymailto="mailto:Users@lists.opennebula.org" target="_blank" href="/mc/compose?to=Users@lists.opennebula.org">Users@lists.opennebula.org</a><br><a rel="nofollow" class="yiv1060902680moz-txt-link-freetext" target="_blank" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br></pre>
    </blockquote>
    <br>
  </div>
</div><br>-----La pièce jointe associée suit-----<br><br><div class="plainMail">_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opennebula.org" href="/mc/compose?to=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></div></blockquote></td></tr></table>