[libvirt] libvirtd hang while saving domain ??

Hi, if i save a kvm domain, libvirt will not answer to any command (e.g. virsh list). While saving, the dd process works ... after finishing, it possible to execute virsh commands. Why does libvirtd blocks ? Is there a way to process the requests in concurrency ? 25766 ? S 0:00 sh -c dd of='/tmp/storage11.POOL401-w2-VM323.suspendRAM' oflag=append conv=notrunc 2>/dev/null 25767 ? D 0:03 dd of /tmp/storage11.suspendRAM oflag append conv notrunc regards Danny

On Fri, Jan 30, 2009 at 09:17:14PM +0100, Daniel Schwager wrote:
Hi,
if i save a kvm domain, libvirt will not answer to any command (e.g. virsh list). While saving, the dd process works ... after finishing, it possible to execute virsh commands. Why does libvirtd blocks ? Is there a way to process the requests in concurrency ?
Please re-try with latest CVS build. I fixed this deadlock with the changes I committed yesterday. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Hi, I used - libvirt CVS-checkout 20090131-10:05 (GMT+1), (sh autogen.sh, make rpm) - kvm-83 @ FC9 and creating a kvm-domain hangs (means the virsh command will not return). Can I help to debug ? regards Danny [root@kvm11 /srv]$ LIBVIRT_DEBUG=SPAM virsh create /srv/solidcam-kvm-file.xml 10:43:04.384: debug : virInitialize:287 : register drivers 10:43:04.385: debug : virRegisterDriver:660 : registering Test as driver 0 .... 10:43:04.390: debug : call:6310 : Doing call 10 (nil) 10:43:04.390: debug : call:6380 : We have the buck 10 0x12f6c40 0x12f6c40 libvir: Remote error : server closed connection error: Failed to create domain from /srv/solidcam-kvm-file.xml 10:43:04.408: debug : virConnectClose:1100 : conn=0x12eb6e0 10:43:04.408: debug : call:6310 : Doing call 2 0x12f6c40 10:43:04.408: debug : call:6335 : Going to sleep 2 0x12f6c40 0x12f4c30 ^C [root@kvm11 /srv]$ [root@kvm11 /srv]$ [root@kvm11 /srv]$ virsh list libvir: Remote error : no call waiting for reply with serial 3 error: failed to connect to the hypervisor [root@kvm11 /srv]$ virsh list Id Name State ---------------------------------- [root@kvm11 /srv]$ [root@kvm11 /srv]$ ps -ax ... 29897 ? Sl 0:00 /usr/kvm/bin/qemu-system-x86_64 -S -M pc -m 500 -smp 1 -name solidcam -uuid c65ca149-31aa-0 29939 pts/2 R+ 0:00 ps -ax [root@kvm11 /srv]$

On Sat, Jan 31, 2009 at 10:52:05AM +0100, Daniel Schwager wrote:
Hi,
I used - libvirt CVS-checkout 20090131-10:05 (GMT+1), (sh autogen.sh, make rpm) - kvm-83 @ FC9
and creating a kvm-domain hangs (means the virsh command will not return). Can I help to debug ?
One thing you can do first is upgrade to libvirt-0.6.0-1.fc9 package I just built in kodji, also install the debuginfo package, and if you can reproduce the hang, then attach gdb to the libvirtd process to get hint of where it's coming from. Oh don't forget to restart libvirtd service after the update. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

One thing you can do first is upgrade to libvirt-0.6.0-1.fc9 package
I just built in kodji, also install the debuginfo package, and if you
can reproduce the hang, then attach gdb to the libvirtd process to get
hint of where it's coming from.
Hi, ** missing rpm-dependency ? [root@kvm11 ~/libvirt/0.6.0-1]$ rpm -i libvirt-debuginfo-0.6.0-1.fc9.x86_64.rpm warning: libvirt-debuginfo-0.6.0-1.fc9.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID de95bc1f error: Failed dependencies: libvirtmod.so()(64bit) is needed by libvirt-debuginfo-0.6.0-1.fc9.x86_64 This missing file depends on libvirt-python - maybe you have adjust the rpm-spec for this (-: ** debugging I'm not familiar with this debugging.. [root@kvm11 /usr/lib/debug/usr/sbin]$ rpm -qa |grep libvirt libvirt-python-0.6.0-1.fc9.x86_64 libvirt-debuginfo-0.6.0-1.fc9.x86_64 libvirt-0.6.0-1.fc9.x86_64 [root@kvm11 /usr/lib/debug/usr/sbin]$ /usr/lib/debug/usr/sbin/libvirtd.debug -bash: /usr/lib/debug/usr/sbin/libvirtd.debug: : bad ELF interpreter: No such file or directory It's a x86_64 bit fc9-system. [root@kvm11 /usr/lib/debug/usr/sbin]$ rpm -qa |grep elf elfutils-libelf-0.137-3.fc9.x86_64 elfutils-0.137-3.fc9.x86_64 elfutils-libs-0.137-3.fc9.x86_64 elfinfo-1.1-4.fc9.x86_64 Is there a document describing the installation and debugging process of libvirt ? regards Danny
participants (3)
-
Daniel P. Berrange
-
Daniel Schwager
-
Daniel Veillard