mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xend: Crash the domain if qemu-dm stops running
The comment about the lack of restart prevention is not accurate. Bump the minimum restart time to 60 seconds. Signed-off-by: John Levon <john.levon@sun.com>
This commit is contained in:
1 parent
43a12c170e
commit
d88a38225c
2 files changed
+2
-6
No files matched your search
@@ -96,7 +96,7 @@ SHUTDOWN_TIMEOUT = (60.0 * 5)
|
||||
ZOMBIE_PREFIX = 'Zombie-'
|
||||
|
||||
"""Minimum time between domain restarts in seconds."""
|
||||
MINIMUM_RESTART_TIME = 20
|
||||
MINIMUM_RESTART_TIME = 60
|
||||
|
||||
RESTART_IN_PROGRESS = 'xend/restart_in_progress'
|
||||
DUMPCORE_IN_PROGRESS = 'xend/dumpcore_in_progress'
|
||||
|
||||
@@ -487,11 +487,7 @@ class ImageHandler:
|
||||
|
||||
def _dmfailed(self, message):
|
||||
log.warning("domain %s: %s", self.vm.getName(), message)
|
||||
# ideally we would like to forcibly crash the domain with
|
||||
# something like
|
||||
# xc.domain_shutdown(self.vm.getDomid(), DOMAIN_CRASH)
|
||||
# but this can easily lead to very rapid restart loops against
|
||||
# which we currently have no protection
|
||||
xc.domain_shutdown(self.vm.getDomid(), DOMAIN_CRASH)
|
||||
|
||||
def recreate(self):
|
||||
if self.device_model is None:
|
||||
|
||||