← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1571068] Re: libvirtError: cannot unlink file '/var/lib/libvirt/images/xxx.qcow2': Success

 

in the bugzilla bug this is marked as fixed in 1.3.3 of libvirt, and
yakkety currently has 1.3.4, so I've marked fix-released in Ubuntu
(yakkety), and targetted xenial and wily for SRU.


** Also affects: libvirt (Ubuntu Wily)
   Importance: Undecided
       Status: New

** Also affects: libvirt (Ubuntu Xenial)
   Importance: Undecided
       Status: New

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

** Changed in: libvirt (Ubuntu Wily)
       Status: New => Confirmed

** Changed in: libvirt (Ubuntu Wily)
   Importance: Undecided => Medium

** Changed in: libvirt (Ubuntu Xenial)
       Status: New => Confirmed

** Changed in: libvirt (Ubuntu Xenial)
   Importance: Undecided => Medium

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

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

Status in libvirt:
  Unknown
Status in libvirt package in Ubuntu:
  Fix Released
Status in libvirt source package in Wily:
  Confirmed
Status in libvirt source package in Xenial:
  Confirmed

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/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 3359, in delete
      if ret == -1: raise libvirtError ('virStorageVolDelete() failed', vol=self)
  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 bytes

  Other info:

  I found an upstream bug that is related to this problem
  https://bugzilla.redhat.com/show_bug.cgi?id=1293804 , 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']
  mtime.conffile..etc.apparmor.d.usr.lib.libvirt.virt.aa.helper: 2016-03-14T13:22:07.751461

To manage notifications about this bug go to:
https://bugs.launchpad.net/libvirt/+bug/1571068/+subscriptions