← Back to team overview

openstack team mailing list archive

nova-api crashes due to ImportError

 

Hi,

I am running the code from yesterday (lp:nova) on Ubuntu 11.04 (x64).
All nova-* programs except nova-api are starting OK.
That program terminates because it cannot import 'metadatarequesthandler'.
See the trackback attached.  How can I get nova-api working?

thanks,
Andy

2011-11-30 11:55:45,801 CRITICAL nova [-] No module named metadatarequesthandler
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE:   File "/usr/local/bin/nova-api", line 7, in <module>
(nova): TRACE:     execfile(__file__)
(nova): TRACE:   File "/home/user01/launchpad/nova/bin/nova-api", line 51, in <module>
(nova): TRACE:     servers.append(service.WSGIService(api))
(nova): TRACE:   File "/home/user01/launchpad/nova/nova/service.py", line 301, in __init__
(nova): TRACE:     self.app = self.loader.load_app(name)
(nova): TRACE:   File "/home/user01/launchpad/nova/nova/wsgi.py", line 411, in load_app
(nova): TRACE:     return deploy.loadapp("config:%s" % self.config_path, name=name)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
(nova): TRACE:     return loadobj(APP, uri, name=name, **kw)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
(nova): TRACE:     return context.create()
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
(nova): TRACE:     return self.object_type.invoke(self)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
(nova): TRACE:     **context.local_conf)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
(nova): TRACE:     val = callable(*args, **kw)
(nova): TRACE:   File "/usr/lib/pymodules/python2.7/paste/urlmap.py", line 25, in urlmap_factory
(nova): TRACE:     app = loader.get_app(app_name, global_conf=global_conf)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
(nova): TRACE:     name=name, global_conf=global_conf).create()
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 362, in app_context
(nova): TRACE:     APP, name=name, global_conf=global_conf)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
(nova): TRACE:     global_additions=global_additions)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 559, in _pipeline_app_context
(nova): TRACE:     APP, pipeline[-1], global_conf)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in get_context
(nova): TRACE:     section)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
(nova): TRACE:     value = import_string(found_expr)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 22, in import_string
(nova): TRACE:     return pkg_resources.EntryPoint.parse("x=" + s).load(False)
(nova): TRACE:   File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
(nova): TRACE:     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
(nova): TRACE: ImportError: No module named metadatarequesthandler
(nova): TRACE: 

Follow ups