Ask Your Question
0

nova-api: ImportError: <module 'nova.api.ec2' from '/usr/lib/python2.7/dist-packages/nova/api/ec2/__init__.pyc'> has no 'FaultWrapper' attribute

asked 2012-03-09 20:43:31 -0500

swoo gravatar image

My nova-api is crashing. The nova-api.log shows:

(nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "/usr/bin/nova-api", line 51, in <module> (nova): TRACE: servers.append(service.WSGIService(api)) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/service.py", line 294, in __init__ (nova): TRACE: self.app = self.loader.load_app(name) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/wsgi.py", line 411, in load_app (nova): TRACE: return deploy.loadapp("config:%s" % self.config_path, name=name) (nova): TRACE: File "/usr/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/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj (nova): TRACE: return context.create() (nova): TRACE: File "/usr/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/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke (nova): TRACE: *context.local_conf) (nova): TRACE: File "/usr/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/python2.7/dist-packages/paste/urlmap.py", line 25, in urlmap_factory (nova): TRACE: app = loader.get_app(app_name, global_conf=global_conf) (nova): TRACE: File "/usr/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/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/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context (nova): TRACE: global_additions=global_additions) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context (nova): TRACE: for name in pipeline[:-1]] (nova): TRACE: File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in get_context (nova): TRACE: section) (nova): TRACE: File "/usr/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/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/lib/python2.7/dist-packages/pkg_resources.py", line 1960, in load (nova): TRACE: raise ImportError("%r has no %r attribute" % (entry,attr)) (nova): TRACE: ImportError: <module 'nova.api.ec2'="" from="" '="" usr="" lib="" python2.7="" dist-packages="" nova="" api="" ec2="" __init__.pyc'=""> has no 'FaultWrapper' attribute (nova): TRACE:

Any help would be appreciated. Thanks --Shirley

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-03-10 00:51:18 -0500

vishvananda gravatar image

Is it possible you have two installs of nova on the same machine. As in you are running from source but you have an older version installed by some other means?

this looks suspicious:

/usr/lib/python2.7/dist-packages/nova/api/ec2/__init__.pyc'>

Vish

On Mar 9, 2012, at 12:45 PM, Shirley Woo wrote:

New question #190207 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+q...

My nova-api is crashing. The nova-api.log shows:

(nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "/usr/bin/nova-api", line 51, in <module> (nova): TRACE: servers.append(service.WSGIService(api)) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/service.py", line 294, in __init__ (nova): TRACE: self.app = self.loader.load_app(name) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/wsgi.py", line 411, in load_app (nova): TRACE: return deploy.loadapp("config:%s" % self.config_path, name=name) (nova): TRACE: File "/usr/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/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj (nova): TRACE: return context.create() (nova): TRACE: File "/usr/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/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke (nova): TRACE: *context.local_conf) (nova): TRACE: File "/usr/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/python2.7/dist-packages/paste/urlmap.py", line 25, in urlmap_factory (nova): TRACE: app = loader.get_app(app_name, global_conf=global_conf) (nova): TRACE: File "/usr/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/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/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context (nova): TRACE: global_additions=global_additions) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context (nova): TRACE: for name in pipeline[:-1]] (nova): TRACE: File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in get_context (nova): TRACE: section) (nova): TRACE: File "/usr/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/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/lib/python2.7/dist-packages/pkg_resources.py", line 1960, in load (nova): TRACE: raise ImportError("%r has no %r attribute" % (entry,attr)) (nova): TRACE: ImportError: <module 'nova.api.ec2'="" from="" '="" usr="" lib="" python2.7="" dist-packages="" nova="" api="" ec2="" __init__.pyc'=""> has no 'FaultWrapper' attribute (nova): TRACE:

Any help would be appreciated. Thanks --Shirley


You received this question notification ...

(more)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-03-09 20:43:31 -0500

Seen: 56 times

Last updated: Mar 10 '12