From: "Yoshinori Katase" Subject: bug report of xm list and xm vcpu-list Date: Thu, 22 Dec 2005 18:31:39 +0900 Message-ID: <20051222093107.7C0561C006@mail2-sv.soft.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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.