Andreas Florath
2009-Jul-12 20:47 UTC
[Pkg-xen-devel] Bug#536720: xen-utils-3.2-1: Missing import statement / Syntax Errors in XendPBD.py
Package: xen-utils-3.2-1
Severity: important
Hello!
When using xenapi.PBD.create() the following error occurs:
xen.xm.XenAPI.Failure: Internal error: global name 'genuuid' is not
defined.
(Attached you can find the logging of the remote host.)
This (and other syntax errors) are already fixed in the
xen-unstable.hg (see
http://xenbits.xensource.com/xen-unstable.hg?rev/7fd49c55c0b0).
The xenapi.PBD.create() is mostly one step to create a new
vm, so the XenAPI can currently not be used to create new VMs.
It would be great to add the patch to the lenny package.
Kind regards
Andreas Florath
--------------------------------------------------
Logging on the remote host:
[2009-07-10 16:37:21 3649] ERROR (xmlrpclib2:166) Internal error
handling PBD.create
Traceback (most recent call last):
File "/usr/lib/xen-3.2-1/lib/python/xen/util/xmlrpclib2.py", line
131,
in _marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.5/SimpleXMLRPCServer.py", line 415, in
_dispatch
return func(*params)
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendAPI.py", line 619,
in
<lambda>
wrapped_f = (lambda *args: new_f(f, *args))
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendAPI.py", line 642,
in
<lambda>
_ctor_event_dispatch(s, ctor, api_cls, session, args))
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendAPI.py", line 154,
in
_ctor_event_dispatch
result = ctor(xenapi, session, *args)
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendAPI.py", line 221,
in f
return func(self, *args, **kwargs)
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendAPI.py", line 256,
in
check_session
return func(self, session, *args, **kwargs)
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendAPI.py", line 600,
in
<lambda>
f(*args)))
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendPBD.py", line 68,
in
create
uuid = genuuid.createString()
NameError: global name \047genuuid\047 is not defined
