[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xend: Improve error messages of xm sched-credit



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245317241 -3600
# Node ID 94bf7d4854eba731e5fcb6418a550f160467cc89
# Parent  8018f09ef0392cbcc10f5e41dd065f03bbd9ed0c
xend: Improve error messages of xm sched-credit

This patch improves error messages of xm sched-credit as with error
messages of CS:19468.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomain.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff -r 8018f09ef039 -r 94bf7d4854eb tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Thu Jun 18 10:26:28 2009 +0100
+++ b/tools/python/xen/xend/XendDomain.py       Thu Jun 18 10:27:21 2009 +0100
@@ -1583,14 +1583,17 @@ class XendDomain:
             if weight is None:
                 weight = int(0)
             elif weight < 1 or weight > 65535:
-                raise XendError("weight is out of range")
+                raise XendError("Cpu weight out of range, valid values are "
+                                "within range from 1 to 65535")
             else:
                 set_weight = True
 
             if cap is None:
                 cap = int(~0)
             elif cap < 0 or cap > dominfo.getVCpuCount() * 100:
-                raise XendError("cap is out of range")
+                raise XendError("Cpu cap out of range, valid range is "
+                                "from 0 to %s for specified number of vcpus" %
+                                (dominfo.getVCpuCount() * 100))
             else:
                 set_cap = True
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.