Red Hat Bugzilla – Bug 981974
Libvirt daemon no longer respawns after crash
Last modified: 2013-07-31 18:58:55 EDT
Description of problem:
Libvirt daemon does not respawn after crash as it used to.
Currently it does not respawn on fedora 18 and does respawn on rhel 6.4.
It should respawn after crashes as it always had,
it is important, we have seen it crash due to bugs before.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Libvirt re spawns on rhel, but not on fedora
Libvirt should re spawns on both
Libvirt has never been set to respawn on crash, by default, in either RHEL or Fedora. The behaviour you describe in RHEL must be the custom handling that VDSM sets up with upstart.
That said, I've no objection to configuring the systemd unit to make it restart in Fedora.
Patch proposed upstream, although it will have to wait until after the 1.1.1 release as we are in freeze and it represents a new feature.
Second patch submitted upstream:
Now applied. will be in 1.1.2.
Author: Mooli Tayer <email@example.com>
Date: Tue Jul 30 15:32:59 2013 +0300
Configuring systemd to restart libvirt on failure
This will create a respawn behaviour in case libvirt
process exits due to nonzero exit code, is terminated
by a signal, an operation times out or the configured
watchdog timeout is triggered.
Signed-off-by: Eric Blake <firstname.lastname@example.org>
This bug was originally filed against upstream; if this is needed in Fedora 19, we can reopen and move the bug there to get this patch backported.