Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ImportError: No module name middleware

I am seeing the below traceback from nova-api and failure in Juno release. I searched for similar threads, and suggestion was a missing python module python-keystonemiddleware, but I have that module installed

[root@]# rpm -qa | grep key keyutils-libs-1.5.8-3.el7.x86_64 python-keystonemiddleware-1.2.0-2.el7ost.noarch gpg-pubkey-fd431d51-4ae0493b python-keystoneclient-0.11.1-1.el7ost.noarch gpg-pubkey-2fa658e0-45700c69 python-keyring-4.0-1.el7ost.noarch

Any suggestions on how to resolve this would be appreciated.

2015-07-14 08:51:19.914 1 CRITICAL nova [-] ImportError: No module named middleware
2015-07-14 08:51:19.914 1 TRACE nova Traceback (most recent call last):
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/bin/nova-api", line 10, in <module>
2015-07-14 08:51:19.914 1 TRACE nova     sys.exit(main())
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/nova/cmd/api.py", line 55, in main 
2015-07-14 08:51:19.914 1 TRACE nova     server = service.WSGIService(api, use_ssl=should_use_ssl)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/nova/service.py", line 333, in __init__
2015-07-14 08:51:19.914 1 TRACE nova     self.app = self.loader.load_app(name)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/nova/wsgi.py", line 521, in   load_app
2015-07-14 08:51:19.914 1 TRACE nova     return deploy.loadapp("config:%s" % self.config_path, name=name)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2015-07-14 08:51:19.914 1 TRACE nova     return loadobj(APP, uri, name=name, **kw)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2015-07-14 08:51:19.914 1 TRACE nova     return context.create()
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2 015-07-14 08:51:19.914 1 TRACE nova     return self.object_type.invoke(self)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2015-07-14 08:51:19.914 1 TRACE nova     **context.local_conf)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
2015-07-14 08:51:19.914 1 TRACE nova     val = callable(*args, **kw)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/nova/api/openstack/urlmap.py", line 159, in urlmap_factory
2015-07-14 08:51:19.914 1 TRACE nova     app = loader.get_app(app_name, global_conf=global_conf)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2015-07-14 08:51:19.914 1 TRACE nova     name=name, global_conf=global_conf).create()
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-07-14 08:51:19.914 1 TRACE nova     return self.object_type.invoke(self)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2015-07-14 08:51:19.914 1 TRACE nova     **context.local_conf)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
2015-07-14 08:51:19.914 1 TRACE nova     val = callable(*args, **kw)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/nova/api/auth.py", line 75, in pipeline_factory
2015-07-14 08:51:19.914 1 TRACE nova     return _load_pipeline(loader, pipeline)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/nova/api/auth.py", line 54, in _load_pipeline
2015-07-14 08:51:19.914 1 TRACE nova     filters = [loader.get_filter(n) for n in pipeline[:-1]]
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 354, in get_filter
2015-07-14 08:51:19.914 1 TRACE nova     name=name, global_conf=global_conf).create()
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 366, in filter_context
2015-07-14 08:51:19.914 1 TRACE nova     FILTER, name=name, global_conf=global_conf)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 458, in get_context
2015-07-14 08:51:19.914 1 TRACE nova     section)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
2015-07-14 08:51:19.914 1 TRACE nova     value = import_string(found_expr)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 22, in import_string
2015-07-14 08:51:19.914 1 TRACE nova     return pkg_resources.EntryPoint.parse("x=" + s).load(False)
2015-07-14 08:51:19.914 1 TRACE nova   File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
2015-07-14 08:51:19.914 1 TRACE nova     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
2015-07-14 08:51:19.914 1 TRACE nova ImportError: No module named middleware