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

[Xen-devel] Who gives exeption routine in main.py 'Not found' in ex ?



Hi, Ewan.
I investigated at your suggestion.

When un-existant domain name(id)s is given xm,
exeption routine in main.py is carried 'Not found' in ex.

932:        except xen.xend.XendError.XendError, ex:
933:            if len(args) > 0:
934:                handle_xend_error(argv[1], args, ex)

But in xend.trace, XendEroor shows error DomID.

|      43         if not dom:
|      44             raise XendError('No such domain ' + str(x))
|    |> XendError.py:__init__
|    |  21         self.value = value
|    |< XendError.py:__init__
|    ! Exception:
Traceback (most recent call last):
  File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 44, in domain
    raise XendError('No such domain ' + str(x))
XendError: No such domain 100
|    ! Exception:
Traceback (most recent call last):
  File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 52, in get
    return self.domain(x)
  File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 44, in domain
    raise XendError('No such domain ' + str(x))
XendError: No such domain 100
|    |> XendError.py:__str__
|    |  24         return self.value
|    |< XendError.py:__str__

Who changes xend's error massage ?

Best Regards,
Yoshinori Katase


-----Original Message-----
From: Ewan Mellor [mailto:ewan@xxxxxxxxxxxxx] 
Sent: Friday, December 23, 2005 12:40 AM
To: Yoshinori Katase
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] bug report of xm list and xm vcpu-list

On Thu, Dec 22, 2005 at 06:31:39PM +0900, Yoshinori Katase wrote:

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

This is a problem with the exception reporting from Xend (the daemon) to xm
(the client tool).  The exception does not carry enough information to allow
xm to diagnose the problem correctly.  Please feel free to fix this (no-one
else is working on it at the moment).

Ewan.



_______________________________________________
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®.