[XEND/XM] Improve error reporting in 'xm restore'.

From: Mats Petersson <Mats.Petersson@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-05-25 10:23:16 +01:00
1 parent cc32978664
commit 2320487314
2 files changed
+10 -4

No files matched your search

+3
View File
@@ -1088,6 +1088,9 @@ class XendDomain:
try:
return XendCheckpoint.restore(self, fd, paused=paused)
except XendError, e:
log.exception("Restore failed")
raise
except:
# I don't really want to log this exception here, but the error
# handling in the relocation-socket handling code (relocate.py) is
+7 -4
View File
@@ -732,10 +732,13 @@ def xm_restore(args):
err("xm restore: Unable to read file %s" % savefile)
sys.exit(1)
if serverType == SERVER_XEN_API:
server.xenapi.VM.restore(savefile, paused)
else:
server.xend.domain.restore(savefile, paused)
try:
if serverType == SERVER_XEN_API:
server.xenapi.VM.restore(savefile, paused)
else:
server.xend.domain.restore(savefile, paused)
except Exception, ex:
err("%s" % ex.faultString)
def datetime_to_secs(v):
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.