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] bug report of xm list and xm vcpu-list

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] bug report of xm list and xm vcpu-list
From: "Yoshinori Katase" <y_katase@xxxxxxxxxxxxxxxx>
Date: Thu, 22 Dec 2005 18:31:39 +0900
Delivery-date: Thu, 22 Dec 2005 09:34:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
Thread-index: AcYG2oK+/1s3FyPGTz2EXvEtcj4OfQ==
Hi,

Xm list and xm vcpu-list show wrong DomID(name).
Under this situation,
# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      512     1 r-----  1064.6
test1                             13       64     1 r----- 83879.7

# xm list 1 13
Error: Domain '1' not found when running 'xm list'
# xm list 13 15
Error: Domain '13' not found when running 'xm list'

An error message shows always the first one of given DomIDs,
when xm list is given unexistant DomIDs.
This is serious, when many domains are running.

Vcpu-list is same. In addition, it shows an unnecessary header.
This is unnatural.

# xm vcpu-list 13 15
Name                              ID  VCPU  CPU  State  Time(s)  CPU
Affinity
Error: Domain '13' not found when running 'xm vcpu-list'

cause:
In tools/python/xen/xm/main.py, dom is always the first parameter of
non_option

def handle_xend_error(cmd, args, ex):
    non_option = filter(lambda x: x[0] != '-', args)
    dom = len(non_option) > 0 and non_option[0] or None
<---------look

    error = str(ex)
    if error == "Not found" and dom != None:
        err("Domain '%s' not found when running 'xm %s'" % (dom, cmd))
    else:
        err(error)

Thanks.



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

<Prev in Thread] Current Thread [Next in Thread>