Subject: | [perl-sys-virt bug]: "$vol->delete()" failed with "libvirt error code: 38, message: cannot unlink file '/var/lib/libvirt/images/c910f03fsp03v07.sda.qcow2':" |
Date: | Thu, 14 Apr 2016 13:44:24 +0800 |
To: | bug-Sys-Virt [...] rt.cpan.org |
From: | "Song BJ Yang" <yangsbj [...] cn.ibm.com> |
hi,
The volumes on my hypervisor is like:
root@c910f03fsp03v06:~# ssh node-32030901 "virsh vol-list default"
Name Path
------------------------------------------------------------------------------
c910f03fsp03v07.sda.qcow2
/var/lib/libvirt/images/c910f03fsp03v07.sda.qcow2
I encountered a problem on vol->delete(), my code slice is like:
...
eval { $vol->delete();};
if($@) {
my $error=$@;
print "$error\n";
}
...
the output is like:
libvirt error code: 38, message: cannot unlink file
'/var/lib/libvirt/images/c910f03fsp03v07.sda.qcow2':
would you please take a look why the delete method failed?
thanks
The release info:
Distribution name and version:
root@c910f03fsp03v06:~# dpkg-query -p libsys-virt-perl
Package: libsys-virt-perl
Priority: optional
Section: perl
Installed-Size: 843
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: ppc64el
Version: 1.2.1-1
Depends: libvirt-bin, perl (>= 5.18.2-2), perlapi-5.18.2, libc6 (>= 2.17),
libvirt0 (>= 1.2.1-0ubuntu9)
Size: 194010
Description: Perl module providing an extension for the libvirt library
The Sys::Virt module provides a Perl XS binding to the libvirt virtual
machine management APIs. This allows machines running within arbitrary
virtualization containers to be managed with a consistent API.
.
For further details on libvirt consult its website http://libvirt.org/
Original-Maintainer: Debian Perl Group
<pkg-perl-maintainers@lists.alioth.debian.org>
Homepage: https://metacpan.org/release/Sys-Virt/
Perl version (Find this by running the command perl -v):
root@c910f03fsp03v06:~# perl -v
This is perl 5, version 18, subversion 2 (v5.18.2) built for
powerpc64le-linux-gnu-thread-multi
(with 44 registered patches, see perl -V for more detail)
Copyright 1987-2013, Larry Wall
Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Operating System vendor and version (Find this by running the command
uname -a)
root@c910f03fsp03v06:~# uname -a
Linux c910f03fsp03v06 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24
21:17:43 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
------------------------------------------------------------------------------
YANG Song (杨嵩)
IBM China System Technology Laboratory
Tel: 86-10-82452903
Email: yangsbj@cn.ibm.com
Address: Building 28, ZhongGuanCun Software Park,
No.8, Dong Bei Wang West Road, Haidian District Beijing 100193,
PRC
北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193