Bug 491766
| Summary: | libvirtd fails to start if pid file exists but init script still says it started OK | ||
|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Pasi Karkkainen <pasik> |
| Component: | libvirt | Assignee: | Daniel Veillard <veillard> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | berrange, clalance, crobinso, markmc, veillard, virt-maint, xen-maint |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-11-26 15:15:10 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Pasi Karkkainen
2009-03-23 22:22:19 UTC
I just tested libvirtd 0.6.1 and the issue still remains there. Moving to libvirt upstream bugzilla
Okay, here's what's happening:
1) /etc/rc.d/init.d/functions:daemon() will happily start the daemon if
there is a pid file, but the pid listed isn't running
2) libvirtd refuses to start if there is a pid file
3) it only does this after it has daemonized, so the error code is never
seen by the init script
Suggest the following changes:
-) Don't refuse to start if a pidfile exists
-) Write the pidfile from the parent process after the daemon process
has been spawned; if it fails, kill the daemon and return an error
code
I believe this patch should address the issue - it ensures we exit with an error status if pidfile can't be acquired, and I believe it also avoids unlinking the other apps pidfile upon failure http://www.redhat.com/archives/libvir-list/2009-October/msg00654.html Fixed in 0.7.4 release |