WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: Improve error messages of xm sched-credit
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Jun 2009 00:56:58 -0700
Delivery-date: Fri, 19 Jun 2009 01:09:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend: Improve error messages of xm sched-credit, Xen patchbot-unstable <=