[Openstack-operators] Nova problem with Keystone over Apache/SSL

Adam Huffman adam.huffman at gmail.com
Wed Jul 2 14:20:53 UTC 2014


I've been converting Icehouse services to go through Apache, with SSL,
because I need to install an external Keystone plugin with those
requirements.

Keystone is now working and I've started on Nova, using

http://andy.mc.it/2013/07/apache2-mod_wsgi-openstack-pt-2-nova-api-os-compute-nova-api-ec2/

as a guide.

However, Nova commands aren't working. The floating_ip_dns extension
isn't loading, which is possibly causing the whole mod_wsgi process to
fail, though the more serious error may be the rpc.py one at the end
here:

[Wed Jul 02 15:00:09 2014] [error] [client ] mod_wsgi (pid=16511):
Target WSGI script '/var/www/cgi-bin/nova/nova-api-os-compute' cannot
be loaded as Python module.
[Wed Jul 02 15:00:09 2014] [error] [client ] mod_wsgi (pid=16511):
Exception occurred processing WSGI script
'/var/www/cgi-bin/nova/nova-api-os-compute'.
[Wed Jul 02 15:00:09 2014] [error] [client ] Traceback (most recent call last):
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/var/www/cgi-bin/nova/nova-api-os-compute", line 16, in <module>
[Wed Jul 02 15:00:09 2014] [error] [client ]     application =
deploy.loadapp('config:%s' % conf, name=name)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 247,
in loadapp
[Wed Jul 02 15:00:09 2014] [error] [client ]     return loadobj(APP,
uri, name=name, **kw)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 272,
in loadobj
[Wed Jul 02 15:00:09 2014] [error] [client ]     return context.create()
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710,
in create
[Wed Jul 02 15:00:09 2014] [error] [client ]     return
self.object_type.invoke(self)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 144,
in invoke
[Wed Jul 02 15:00:09 2014] [error] [client ]     **context.local_conf)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/util.py", line 56, in
fix_call
[Wed Jul 02 15:00:09 2014] [error] [client ]     val = callable(*args, **kw)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/api/openstack/urlmap.py", line
158, in urlmap_factory
[Wed Jul 02 15:00:09 2014] [error] [client ]     app =
loader.get_app(app_name, global_conf=global_conf)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 350,
in get_app
[Wed Jul 02 15:00:09 2014] [error] [client ]     name=name,
global_conf=global_conf).create()
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710,
in create
[Wed Jul 02 15:00:09 2014] [error] [client ]     return
self.object_type.invoke(self)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 144,
in invoke
[Wed Jul 02 15:00:09 2014] [error] [client ]     **context.local_conf)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/util.py", line 56, in
fix_call
[Wed Jul 02 15:00:09 2014] [error] [client ]     val = callable(*args, **kw)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/api/auth.py", line 73, in
pipeline_factory
[Wed Jul 02 15:00:09 2014] [error] [client ]     return
_load_pipeline(loader, pipeline)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/api/auth.py", line 53, in
_load_pipeline
[Wed Jul 02 15:00:09 2014] [error] [client ]     app =
loader.get_app(pipeline[-1])
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 350,
in get_app
[Wed Jul 02 15:00:09 2014] [error] [client ]     name=name,
global_conf=global_conf).create()
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710,
in create
[Wed Jul 02 15:00:09 2014] [error] [client ]     return
self.object_type.invoke(self)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 146,
in invoke
[Wed Jul 02 15:00:09 2014] [error] [client ]     return
fix_call(context.object, context.global_conf, **context.local_conf)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/paste/deploy/util.py", line 56, in
fix_call
[Wed Jul 02 15:00:09 2014] [error] [client ]     val = callable(*args, **kw)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/api/openstack/__init__.py",
line 183, in factory
[Wed Jul 02 15:00:09 2014] [error] [client ]     return cls()
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/api/openstack/__init__.py",
line 194, in __init__
[Wed Jul 02 15:00:09 2014] [error] [client ]
self._setup_routes(mapper, ext_mgr, init_only)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/api/openstack/compute/__init__.py",
line 69, in _setup_routes
[Wed Jul 02 15:00:09 2014] [error] [client ]
self.resources['servers'] = servers.create_resource(ext_mgr)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/api/openstack/compute/servers.py",
line 1501, in create_resource
[Wed Jul 02 15:00:09 2014] [error] [client ]     return
wsgi.Resource(Controller(ext_mgr))
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/api/openstack/compute/servers.py",
line 504, in __init__
[Wed Jul 02 15:00:09 2014] [error] [client ]     self.compute_api =
compute.API()
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/compute/__init__.py", line 39,
in API
[Wed Jul 02 15:00:09 2014] [error] [client ]     return
importutils.import_object(class_name, *args, **kwargs)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py",
line 38, in import_object
[Wed Jul 02 15:00:09 2014] [error] [client ]     return
import_class(import_str)(*args, **kwargs)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/compute/api.py", line 248, in
__init__
[Wed Jul 02 15:00:09 2014] [error] [client ]     self.network_api =
network_api or network.API()
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/network/__init__.py", line 39,
in API
[Wed Jul 02 15:00:09 2014] [error] [client ]     return cls()
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/network/api.py", line 118, in
__init__
[Wed Jul 02 15:00:09 2014] [error] [client ]     self.network_rpcapi =
network_rpcapi.NetworkAPI()
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/network/rpcapi.py", line 92, in
__init__
[Wed Jul 02 15:00:09 2014] [error] [client ]     self.client =
rpc.get_client(target, version_cap, serializer)
[Wed Jul 02 15:00:09 2014] [error] [client ]   File
"/usr/lib/python2.6/site-packages/nova/rpc.py", line 125, in
get_client
[Wed Jul 02 15:00:09 2014] [error] [client ]     assert TRANSPORT is not None
[Wed Jul 02 15:00:09 2014] [error] [client ] AssertionError

I haven't been able to find anything useful about this error at the end so far.

I'd welcome any suggestions...

Cheers,
Adam



More information about the OpenStack-operators mailing list