Mailing List Archive

Error occurring when using the Xen-API
An error occurring due to the recent changes in the Xen-API.
The 'domid=None' seems to be the problem.

Cheers,
Stefan



[2007-02-14 12:15:46 7605] DEBUG (XendDomainInfo:1605)
XendDomainInfo.destroy: domid=None
[2007-02-14 12:15:46 7605] ERROR (xmlrpclib2:225) Internal error handling
VM.start
Traceback (most recent call last):
File "//usr/lib/python/xen/util/xmlrpclib2.py", line 201, in
_marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
return func(*params)
File "//usr/lib/python/xen/xend/XendAPI.py", line 108, in f
return func(self, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendAPI.py", line 139, in check_session
return func(self, session, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendAPI.py", line 195, in <lambda>
'VM_HANDLE_INVALID', func, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendAPI.py", line 151, in _check_ref
return func(api, session, ref, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendAPI.py", line 1497, in VM_start
start_paused = start_paused)
File "//usr/lib/python/xen/xend/XendTask.py", line 213, in log_progress
retval = func(*args, **kwds)
File "//usr/lib/python/xen/xend/XendAPI.py", line 352, in do_vm_func
xendom.do_legacy_api_with_uuid(fn, vm_ref, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendDomain.py", line 660, in
do_legacy_api_with_uuid
fn(dom, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendDomain.py", line 954, in
domain_start
dominfo.start(is_managed = True)
File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 406, in start
self.destroy()
File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 1607, in
destroy
paths = self._prepare_phantom_paths()
File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 1577, in
_prepare_phantom_paths
t = xstransact("%s/device/vbd" % GetDomainPath(self.domid))
File "//usr/lib/python/xen/xend/xenstore/xsutil.py", line 26, in
GetDomainPath
return xshandle().get_domain_path(domid)
TypeError: an integer is required
[2007-02-14 12:15:47 7605] DEBUG (XendDomainInfo:1605)
XendDomainInfo.destroy: domid=None
[2007-02-14 12:15:47 7605] ERROR (xmlrpclib2:225) Internal error handling
VM.hard_shutdown
Traceback (most recent call last):
File "//usr/lib/python/xen/util/xmlrpclib2.py", line 201, in
_marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
return func(*params)
File "//usr/lib/python/xen/xend/XendAPI.py", line 108, in f
return func(self, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendAPI.py", line 139, in check_session
return func(self, session, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendAPI.py", line 195, in <lambda>
'VM_HANDLE_INVALID', func, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendAPI.py", line 151, in _check_ref
return func(api, session, ref, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendAPI.py", line 1484, in
VM_hard_shutdown
"domain_destroy", vm_ref)
File "//usr/lib/python/xen/xend/XendTask.py", line 213, in log_progress
retval = func(*args, **kwds)
File "//usr/lib/python/xen/xend/XendAPI.py", line 352, in do_vm_func
xendom.do_legacy_api_with_uuid(fn, vm_ref, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendDomain.py", line 660, in
do_legacy_api_with_uuid
fn(dom, *args, **kwargs)
File "//usr/lib/python/xen/xend/XendDomain.py", line 1132, in
domain_destroy
val = dominfo.destroy()
File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 1607, in
destroy
paths = self._prepare_phantom_paths()
File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 1577, in
_prepare_phantom_paths
t = xstransact("%s/device/vbd" % GetDomainPath(self.domid))
File "//usr/lib/python/xen/xend/xenstore/xsutil.py", line 26, in
GetDomainPath
return xshandle().get_domain_path(domid)
TypeError: an integer is required
[2007-02-14 12:15:47 7605] INFO (XendDomain:987) Domain
07_security-acm_xapi-1171473346 (b25be510-9dd4-7caf-cd5b-f49840a40ed6)
deleted.
Re: Error occurring when using the Xen-API [ In reply to ]
On Wed, Feb 14, 2007 at 12:44:01PM -0500, Stefan Berger wrote:

> An error occurring due to the recent changes in the Xen-API.
> The 'domid=None' seems to be the problem.

This should be fixed by this changeset:

changeset: 13949:82f66bc01da2cb14062c0651a63dbf7286cfd1e7
user: Wim Colgate <wim@xensource.com>
date: Wed Feb 14 12:18:32 2007 -0800
files: tools/python/xen/xend/XendDomainInfo.py
description:
Protect self.domid from being empty

Cheers,

Ewan.

_______________________________________________
xen-api mailing list
xen-api@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api