|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xm migrate: Better error report when atte
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1211272982 -3600
# Node ID 7c8e2a2c006ef5953ef9c50e1b5918c342ac8890
# Parent 13dda75739f2ac18a4b33bc32432f0add9450557
xm migrate: Better error report when attempt to migrate non-running domain.
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
tools/python/xen/xend/XendDomain.py | 4 ++++
1 files changed, 4 insertions(+)
diff -r 13dda75739f2 -r 7c8e2a2c006e tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py Tue May 20 09:41:52 2008 +0100
+++ b/tools/python/xen/xend/XendDomain.py Tue May 20 09:43:02 2008 +0100
@@ -1282,6 +1282,10 @@ class XendDomain:
if dominfo.getDomid() == DOM0_ID:
raise XendError("Cannot migrate privileged domain %s" % domid)
+ if dominfo._stateGet() != DOM_STATE_RUNNING:
+ raise VMBadState("Domain is not running",
+ POWER_STATE_NAMES[DOM_STATE_RUNNING],
+ POWER_STATE_NAMES[dominfo._stateGet()])
""" The following call may raise a XendError exception """
dominfo.testMigrateDevices(True, dst)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] xm migrate: Better error report when attempt to migrate non-running domain.,
Xen patchbot-unstable <=
|
|
|
|
|