Public bug reported:

Libvirt is not robust against failures.

For some reason libvirt segfaulted on me (separate bug):
[12031.895269] libvirtd[1374]: segfault at 10 ip 00007f68357a4224 sp 
00007fff49a8aed0 error 4 in libpthread-2.11.1.so[7f683579b000+18000]

upstart tried to restarts it but fails:
Jan 21 14:40:05 rhea init: libvirt-bin main process (1374) killed by SEGV signal
Jan 21 14:40:05 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4886) terminated with 
status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4891) terminated with 
status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4896) terminated with 
status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4901) terminated with 
status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4906) terminated with 
status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4911) terminated with 
status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4916) terminated with 
status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4921) terminated with 
status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4926) terminated with 
status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4931) terminated with 
status 1
Jan 21 14:40:06 rhea init: libvirt-bin respawning too fast, stopped

only after I tried to manually start libvirtd I found out what the problem is:
r...@rhea:/var/log# sudo libvirtd
14:51:53.380: error : qemudWritePidFile:498 : Failed to open pid file 
'/var/run/libvirtd.pid' : File exists

r...@rhea:/var/log# cat /var/run/libvirtd.pid 
1374

Obviously libvirtd should have removed the stale pidfile (process not longer 
running), by itself on
subsequent restart. 
Furthermore an warning should have been emitted in some logfile, that the stale 
pidfile was removed.


Best regards,
Arnd

ProblemType: Bug
Architecture: amd64
Date: Thu Jan 21 14:48:15 2010
DistroRelease: Ubuntu 10.04
Package: libvirt-bin 0.7.2-4ubuntu6
ProcEnviron:
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-11.15-generic
SourcePackage: libvirt
Uname: Linux 2.6.32-11-generic x86_64

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug lucid

-- 
error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' 
: File exists
https://bugs.launchpad.net/bugs/510658
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to