libvirtError: cannot unlink file '/var/lib/libvirt/images/xxx.qcow2': Success
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt |
Fix Released
|
Undecided
|
|||
libvirt (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Wily |
Won't Fix
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
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/
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
vol.delete(0)
File "/usr/lib/
if ret == -1: raise libvirtError ('virStorageVol
libvirtError: cannot unlink file '/var/lib/
And the volume is still there
$ sudo virsh vol-list default
Name Path
-------
bootstrap.qcow2 /var/lib/
$ sudo file /var/lib/
/var/lib/
Other info:
I found an upstream bug that is related to this problem https:/
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: libvirt-bin 1.2.16-
ProcVersionSign
Uname: Linux 4.2.0-34-generic x86_64
NonfreeKernelMo
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.
modified.
modified.
mtime.conffile.
Changed in libvirt: | |
importance: | Unknown → Undecided |
status: | Unknown → Fix Released |
Thanks - so libvirt commit adefc561 should be applied. We should SRU
this as soon as 16.04 is released.