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-devel

[Xen-devel] [PATCH] Fix xm commands so that the Traceback does not occur

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix xm commands so that the Traceback does not occur
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Wed, 14 Jun 2006 11:42:49 +0900
Delivery-date: Tue, 13 Jun 2006 19:44:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

When we tested xm commands, the xm commands occurred the Traceback.
The following are the examples.

# xm sched-sedf domUtemp -s xx
Unexpected error: exceptions.ValueError

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in ?
    main.main(sys.argv)
  File "//usr/lib/python/xen/xm/main.py", line 1169, in main
    rc = cmd(args)
  File "//usr/lib/python/xen/xm/main.py", line 701, in xm_sched_sedf
    opts['slice'] = ms_to_ns(v)
  File "//usr/lib/python/xen/xm/main.py", line 665, in ms_to_ns
    return (float(val) / 0.000001)
ValueError: invalid literal for float(): xx

# xm vcpu-pin domUtemp x 1
Unexpected error: exceptions.ValueError

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in ?
    main.main(sys.argv)
  File "//usr/lib/python/xen/xm/main.py", line 1173, in main
    rc = cmd(args)
  File "//usr/lib/python/xen/xm/main.py", line 600, in xm_vcpu_pin
    vcpu = int(args[1])
ValueError: invalid literal for int(): x


The cause of the Traceback are entering wrong xm commands.
We suggest this patch so that the Traceback does not occur.

Signed-off-by: Hiroyuki Yamamoto <yamamoto.hiroyu@xxxxxxxxxxxxxx>
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: xm.patch
Description: Binary data

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