|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.2-testing] xm migrate: Better error report when a
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1211537380 -3600
# Node ID 08e8f5f7b0b56bafb7450bf578bfdd341c5df388
# Parent 98e7af9f5a4219d05ba26d2327bcd0db487c7de5
xm migrate: Better error report when attempt to migrate non-running domain.
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
xen-unstable changeset: 17657:7c8e2a2c006ef5953ef9c50e1b5918c342ac8890
xen-unstable date: Tue May 20 09:43:02 2008 +0100
---
tools/python/xen/xend/XendDomain.py | 4 ++++
1 files changed, 4 insertions(+)
diff -r 98e7af9f5a42 -r 08e8f5f7b0b5 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py Fri May 23 11:09:05 2008 +0100
+++ b/tools/python/xen/xend/XendDomain.py Fri May 23 11:09:40 2008 +0100
@@ -1278,6 +1278,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-3.2-testing] xm migrate: Better error report when attempt to migrate non-running domain.,
Xen patchbot-3.2-testing <=
|
|
|
|
|