This bug was fixed in the package libvirt - 1.3.1-1ubuntu10.2

libvirt (1.3.1-1ubuntu10.2) xenial; urgency=medium

  * fix file removal in storage pools (LP: #1571068)
    - debian/patches/fix-vol-remove-vir-file-breakout.patch

 -- Ryan Harper <>  Thu, 30 Jun 2016 10:09:45

** Changed in: libvirt (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs

  libvirtError: cannot unlink file '/var/lib/libvirt/images/xxx.qcow2':

Status in libvirt:
Status in libvirt package in Ubuntu:
  Fix Released
Status in libvirt source package in Wily:
  Won't Fix
Status in libvirt source package in Xenial:
  Fix Released

Bug description:
  Steps to reproduce:

  1) Create VM using virt-install
  2) Delete the VM with its associated volume

  Expected results:

  The VM is removed and the volume is deleted

  Actual results:

  When trying to remove the volume the following error is printed:

  Errors encountered while removing certain storage devices.

  cannot unlink file '/var/lib/libvirt/images/bootstrap.qcow2': Success
  Traceback (most recent call last):
    File "/usr/share/virt-manager/virtManager/", line 182, in 
      self._async_delete_path(conn, path, meter)
    File "/usr/share/virt-manager/virtManager/", line 228, in 
    File "/usr/lib/python2.7/dist-packages/", line 3359, in delete
      if ret == -1: raise libvirtError ('virStorageVolDelete() failed', 
  libvirtError: cannot unlink file '/var/lib/libvirt/images/xxx.qcow2': Success

  And the volume is still there
  $ sudo virsh vol-list default
   Name                 Path
   bootstrap.qcow2      /var/lib/libvirt/images/bootstrap.qcow2
  $ sudo file /var/lib/libvirt/images/bootstrap.qcow2
  /var/lib/libvirt/images/bootstrap.qcow2: QEMU QCOW Image (v3), 21474836480 

  Other info:

  I found an upstream bug that is related to this problem , I tested the
  merged patch and it fixed the problem for me.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: libvirt-bin 1.2.16-2ubuntu11.15.10.3
  ProcVersionSignature: Ubuntu 4.2.0-34.39-generic 4.2.8-ckt4
  Uname: Linux 4.2.0-34-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.19.1-0ubuntu5
  Architecture: amd64
  Date: Fri Apr 15 17:05:34 2016
  InstallationDate: Installed on 2014-12-06 (495 days ago)
  InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
  SourcePackage: libvirt
  UpgradeStatus: Upgraded to wily on 2016-03-08 (38 days ago)
  modified.conffile..etc.apparmor.d.usr.lib.libvirt.virt.aa.helper: [modified]
  modified.conffile..etc.libvirt.qemu.conf: [inaccessible: [Errno 13] 
Permission denied: '/etc/libvirt/qemu.conf']
  modified.conffile..etc.libvirt.qemu.networks.default.xml: [inaccessible: 
[Errno 13] Permission denied: '/etc/libvirt/qemu/networks/default.xml']

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to