xend: Add "dumpcore_in_progress" flag to xenstore information

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2008-04-03 11:37:23 +01:00
1 parent 48f0d952fa
commit 739fe1e943
2 files changed
+4

No files matched your search

+1
View File
@@ -96,6 +96,7 @@ ZOMBIE_PREFIX = 'Zombie-'
MINIMUM_RESTART_TIME = 20
RESTART_IN_PROGRESS = 'xend/restart_in_progress'
DUMPCORE_IN_PROGRESS = 'xend/dumpcore_in_progress'
LAST_SHUTDOWN_REASON = 'xend/last_shutdown_reason'
TRIGGER_NMI = 0
+3
View File
@@ -1792,10 +1792,13 @@ class XendDomainInfo:
raise XendError("Cannot dump core in a directory: %s" %
corefile)
self._writeVm(DUMPCORE_IN_PROGRESS, 'True')
xc.domain_dumpcore(self.domid, corefile)
self._removeVm(DUMPCORE_IN_PROGRESS)
except RuntimeError, ex:
corefile_incomp = corefile+'-incomplete'
os.rename(corefile, corefile_incomp)
self._removeVm(DUMPCORE_IN_PROGRESS)
log.exception("XendDomainInfo.dumpCore failed: id = %s name = %s",
self.domid, self.info['name_label'])
raise XendError("Failed to dump core: %s" % str(ex))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.