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

[Xen-devel] bug report of xm list and xm vcpu-list


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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


 


Rackspace

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