Displaying 2 results from an estimated 2 matches for "dom_state_running".
2008 Feb 28
0
[PATCH] Fix error message of xm suspend for Domain-0
...e XendInvalidDomain(domname)
if dominfo.getDomid() == DOM0_ID:
- raise XendError("Cannot save privileged domain %s" % domname)
+ raise XendError("Cannot suspend privileged domain %s" % domname)
if dominfo._stateGet() != DOM_STATE_RUNNING:
raise VMBadState("Domain is not running",
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2011 Mar 03
6
[PATCH] Make explicit message when guest failed to suspend
...''suspend'' and reason != ''failed'':
sst = self.readDom(''xend/shutdown_start_time'')
now = time.time()
if sst:
@@ -2990,14 +2990,23 @@ class XendDomainInfo:
try:
while self._stateGet() in (DOM_STATE_RUNNING,DOM_STATE_PAUSED):
self.state_updated.wait(1.0)
- if state == "suspend":
- if nr_tries == 0:
- msg = (''Timeout waiting for domain %s to suspend''
- % self.domid)
-...