[Pkg-libvirt-maintainers] Bug#804009: Bug#804009: libvirt-bin: exception when deleting a vm

Guido Günther agx at sigxcpu.org
Fri Nov 6 08:25:05 UTC 2015


Hi,
On Wed, Nov 04, 2015 at 01:43:44PM +0530, Ritesh Raj Sarraf wrote:
> Package: libvirt-bin
> Version: 1.2.20-1
> Severity: normal
> 
> When deleting the VM, along with its file image, I am shown the
> following error message in a pop-up.
> 
> 
> `
> Errors encountered while removing certain storage devices.
> 
> cannot unlink file '/var/lib/libvirt/images/debian8.qcow2': Success
> Traceback (most recent call last):
>   File "/usr/share/virt-manager/virtManager/delete.py", line 182, in _async_delete
>     self._async_delete_path(conn, path, meter)
>   File "/usr/share/virt-manager/virtManager/delete.py", line 228, in _async_delete_path
>     vol.delete(0)
>   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3361, in delete
>     if ret == -1: raise libvirtError ('virStorageVolDelete() failed', vol=self)
> libvirtError: cannot unlink file '/var/lib/libvirt/images/debian8.qcow2': Success

The "Success" means that virFileRemove failed to set a proper errno.

> At one end, it says "Success" but also reports error.
> Lookng at the datastore, the VM file is not deleted.
> 
> 
> 
> rrs at learner:~$ sudo ls /var/lib/libvirt/images/ -l
> [sudo] password for rrs: 
> total 3768528
> -rw------- 1 root root 8591507456 Nov  4 13:32 debian8.qcow2
> 2015-11-04 / 13:43:10 ♒♒♒  ☺


Assuming your're using qemu:///system

Can you provide a bit of config information:

  virsh pool-dumpxml default
  virsh vol-dumpxml --pool  default debian8.qcow2

Can you also try to delete via vol-delete:

  virsh vol-delete --pool  default debian8.qcow2

That should fail as well. If it does please do a:

  grep libvirtd /var/log/syslog
  journalctl -u libvirtd.service

Cheers,
 -- Guido



More information about the Pkg-libvirt-maintainers mailing list