[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [xend] Fix xm trigger command for inactive managed domains
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1184147646 -3600 # Node ID c7b68954963b4afb9c0a56712d2a422c7aec94a4 # Parent 2099e4af5aed0d67f674caeefdf97f9f72cfbca9 [xend] Fix xm trigger command for inactive managed domains Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx> --- tools/python/xen/xend/XendDomain.py | 4 ++++ 1 files changed, 4 insertions(+) diff -r 2099e4af5aed -r c7b68954963b tools/python/xen/xend/XendDomain.py --- a/tools/python/xen/xend/XendDomain.py Wed Jul 11 10:53:32 2007 +0100 +++ b/tools/python/xen/xend/XendDomain.py Wed Jul 11 10:54:06 2007 +0100 @@ -1541,6 +1541,10 @@ class XendDomain: dominfo = self.domain_lookup_nr(domid) if not dominfo: raise XendInvalidDomain(str(domid)) + if dominfo._stateGet() not in (DOM_STATE_RUNNING, DOM_STATE_PAUSED): + raise VMBadState("Domain '%s' is not started" % domid, + POWER_STATE_NAMES[DOM_STATE_RUNNING], + POWER_STATE_NAMES[dominfo._stateGet()]) if trigger_name.lower() in TRIGGER_TYPE: trigger = TRIGGER_TYPE[trigger_name.lower()] else: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |