[Pkg-libvirt-maintainers] Bug#695744: "libvirtError: An error occurred, but the cause is unknown" on virDomainDestroy()

Guido Günther agx at sigxcpu.org
Mon Feb 11 15:34:57 UTC 2013


Hi,
On Wed, Dec 12, 2012 at 10:36:23AM +0200, noxdafox wrote:
> Package: python-libvirt
> Version: 1.0.0-1
> Severity: normal
> Tags: upstream
> 
> I'm running several Virtual Machines on a single system with qemu-kvm; their
> lifecycle is short and the system is under pretty heavy load.

Could you recheck with 1.0.2? We had several bugs fixed in that area and
I'm not seeing this on any host. If it still happens please have a
closer look at the libvirt logs (running the daemon in debug mode).
Cheers,
 -- Guido

> 
> Occasionally, when shutting down an environment I get the following error:
> 
> File "/usr/lib/python2.7/dist-packages/libvirt.py", line 734, in destroy
>     if ret == -1: raise libvirtError ('virDomainDestroy() failed', dom=self)
> libvirtError: An error occurred, but the cause is unknown
> 
> Looking at the QEMU log everything seems fine to me:
> 
> 2012-12-11 16:16:55.259+0000: starting up
> LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> HOME=/root USER=root LOGNAME=root QEMU_AUDIO_DRV=none /usr/bin/kvm -name
> 27395167-d05a-45b0-b866-86c4d232da44 -S -M pc-1.1 -cpu qemu32 -enable-kvm -m
> 512 -smp 1,sockets=1,cores=1,threads=1 -uuid 27395167-d05a-
> 45b0-b866-86c4d232da44 -no-user-config -nodefaults -chardev
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/27395167-d05a-
> 45b0-b866-86c4d232da44.monitor,server,nowait -mon
> chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device
> piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/dev/shm/see/27395167
> -d05a-45b0-b866-86c4d232da44/27395167-d05a-
> 45b0-b866-86c4d232da44.qcow2,if=none,id=drive-ide0-0-0,format=qcow2 -device
> ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -netdev
> tap,fd=75,id=hostnet0 -device
> rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:d5:29:e1,bus=pci.0,addr=0x3 -vnc
> 127.0.0.1:12 -vga cirrus -device virtio-balloon-
> pci,id=balloon0,bus=pci.0,addr=0x4
> Domain id=11932 is tainted: custom-monitor
> qemu: terminating on signal 15 from pid 24005
> 2012-12-11 16:20:44.892+0000: shutting down
> 
> I'm running libvirt 1.0.0 at the moment but the problem seems to occur also
> with the 0.9.13 release.
> 
> Here the libvirt XML:
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> <domain type='kvm' id='1'>
>   <memory unit='KiB'>524288</memory>
>   <currentMemory unit='KiB'>524288</currentMemory>
>   <vcpu>1</vcpu>
>   <os>
>     <type arch='i686' machine='pc'>hvm</type>
>     <boot dev='hd'/>
>   </os>
>   <features>
>     <acpi/>
>     <apic/>
>     <pae/>
>   </features>
>   <clock offset='utc'/>
>   <on_poweroff>preserve</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>preserve</on_crash>
>   <devices>
>     <emulator>/usr/bin/kvm</emulator>
>     <disk type='file' device='disk'>
>       <driver name='qemu' type='qcow2'/>
>       <target dev='hda' bus='ide'/>
>     </disk>
>     <interface type='network'>
>       <source network='default'/>
>     </interface>
>     <graphics type='vnc' port='5900' autoport='yes'/>
>   </devices>
>   <seclabel type='dynamic' relabel='yes'/>
> </domain>
> 
> 
> 
> -- System Information:
> Debian Release: wheezy/sid
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 3.2.0-3-amd64 (SMP w/8 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages python-libvirt depends on:
> ii  libaudit0           1:1.7.18-1.1
> ii  libavahi-client3    0.6.31-1
> ii  libavahi-common3    0.6.31-1
> ii  libc6               2.13-37
> ii  libcap-ng0          0.6.6-2
> ii  libdbus-1-3         1.6.8-1
> ii  libdevmapper1.02.1  2:1.02.74-4
> ii  libgcrypt11         1.5.0-3
> ii  libgnutls26         2.12.20-2
> ii  libnl-3-200         3.2.7-4
> ii  libnl-route-3-200   3.2.7-4
> ii  libnuma1            2.0.8~rc4-1
> ii  libsasl2-2          2.1.25.dfsg1-6
> ii  libvirt0            1.0.0-1
> ii  libxml2             2.8.0+dfsg1-6
> ii  libyajl2            2.0.4-2
> ii  python              2.7.3~rc2-1
> 
> Versions of packages python-libvirt recommends:
> ii  libvirt-bin  1.0.0-1
> 
> python-libvirt suggests no packages.
> 
> -- no debconf information



More information about the Pkg-libvirt-maintainers mailing list