<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hello Alex,</span></div><div><br><span></span></div><div><span>Thank you for the reply. Below is my environment setup:</span></div><div><br><span></span></div><div><span>Ubuntu 10.04.3 LTS</span></div><div><span>libvirt-bin             0.7.5-5ubuntu27.20</span></div><div><span>libsys-virt-perl        0.2.3-1</span></div><div><span>perl                    5.10.1-8ubuntu2.1</span></div><div><br><span></span></div><div><span>Best regards,</span></div><div><span>Bogdan Katynski<br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman,
 new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Alex Jia <ajia@redhat.com><br> <b><span style="font-weight: bold;">To:</span></b> Bo Bo <bodziec81@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "libvirt-users@redhat.com" <libvirt-users@redhat.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, February 17, 2012 6:37 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [libvirt-users] Error deleting a volume<br> </font> </div> <br>
<div id="yiv1773369454">

  

    
  
  <div>
    On 02/16/2012 09:52 PM, Bo Bo wrote:
    <blockquote type="cite">
      <div style="color:rgb(0, 0, 0);background-color:rgb(255, 255,
        255);font-family:times new roman, new york, times, serif;font-size:12pt;">
        <div>Hello group.</div>
        <div><br>
        </div>
        <div>This is my first post here so first of all I'd like to
          greet everybody reading this group.</div>
        <div><br>
        </div>
        <div>Secondly, I have a problem with libvirt used from a perl
          script. I would like to undefine a domain and afterwards
          delete the volume that had been attached to the domain as a
          disk. The volume is a qcow2 file and is placed in a 'dir' type
          pool. I succeed in undefining the domain but trying to delete
          a volume using $vol->delete() crashes the libvirtd. The
          script catches an exception: <br>
        </div>
      </div>
    </blockquote>
    Hi Bogdan,<br>
    The libvirtd works well after using $vol->delete() to delete a
    volume for me,  so I want to know your<br>
    environment such as libvirt, perl-Sys-Virt version and os platform
    etc.<br>
    <br>
    Regards,<br>
    Alex<br>
    <blockquote type="cite">
      <div style="color:rgb(0, 0, 0);background-color:rgb(255, 255,
        255);font-family:times new roman, new york, times, serif;font-size:12pt;">
        <div><br>
        </div>
        <div>libvirt error code: 38, message: server closed connection <br>
        </div>
        <div><br>
        </div>
        <div>and the init process echoes an entry to the log:</div>
        <div><br>
        </div>
        <div>init: libvirt-bin main process (6999) killed by ABRT signal</div>
        <div><br>
        </div>
        <div>When I try to list volumes afterwards using virsh, I see
          that not only the volume, but also the pool are missing.
          Moreover the pool that holds a backing storage for the qcow2
          file is also missing. It seems that the delete operation
          actualy succeeds because the file gets deleted from disk as
          well. Fortunately the backing storage file is still present on
          the disk although its  pool in virsh disappears.</div>
        <div><br>
        </div>
        <div>Has anybody come across a similar problem before? Any help
          is highly appreciated.</div>
        <div><br>
        </div>
        <div>Best regards</div>
        <div>Bogdan Katynski</div>
      </div>
      <pre><fieldset class="yiv1773369454mimeAttachmentHeader"></fieldset>
_______________________________________________
libvirt-users mailing list
<a rel="nofollow" class="yiv1773369454moz-txt-link-abbreviated" ymailto="mailto:libvirt-users@redhat.com" target="_blank" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a rel="nofollow" class="yiv1773369454moz-txt-link-freetext" target="_blank" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
    </blockquote>
    <br>
  </div>

</div><br><br> </div> </div>  </div></body></html>