xend: Pass information to user when failing migrate due to PCI dev.

When failing a migration / save due to the domain owning a PCI device
make sure that we tell the user what went wrong!

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
This commit is contained in:
Keir Fraser committed 2007-07-01 22:10:38 +01:00
1 parent 450f5b5b9e
commit c32cff27ba
2 files changed
+5 -1

No files matched your search

+2
View File
@@ -148,6 +148,8 @@ def save(fd, dominfo, network, live, dst, checkpoint=False):
except:
log.exception("Failed to reset the migrating domain's name")
raise exn
def restore(xd, fd, dominfo = None, paused = False):
signature = read_exact(fd, len(SIGNATURE),
+3 -1
View File
@@ -1262,8 +1262,10 @@ class XendDomain:
try:
XendCheckpoint.save(fd, dominfo, False, False, dst,
checkpoint=checkpoint)
finally:
except Exception, e:
os.close(fd)
raise e
os.close(fd)
except OSError, ex:
raise XendError("can't write guest state file %s: %s" %
(dst, ex[1]))
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.