** Changed in: keystone
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1363932
Title:
Internal error Enabling Federation Extension
Status in OpenStack Identity (Keystone):
Fix Released
Bug description:
Following steps here
http://docs.openstack.org/developer/keystone/extensions/federation.html
I've realized of a possible bug, but I'm not sure, let me explain
myself.
Step 3 of
http://docs.openstack.org/developer/keystone/extensions/federation.html
[pipeline:api_v3]
pipeline = access_log sizelimit url_normalize token_auth admin_token_auth
xml_body json_body ec2_extension s3_extension federation_extension service_v3
Ok, no problems. Restart keystone (under apache) and type keystone
tenant-list command and every is fine, no problems.
Now, modify again keystone-paste.ini file (by the way, on a fresh
keystone installation this file is called keystone-dist-paste.ini by
default) and put "federation_extenstion" at the end of the line, like:
[pipeline:api_v3]
pipeline = access_log sizelimit url_normalize token_auth admin_token_auth
xml_body json_body ec2_extension s3_extension service_v3 federation_extension
Restart keystone and when you type keystone tenant-list command,
keystone raises: Internal Server Error 500
This is the log information about this error:
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] mod_wsgi
(pid=24803): Target WSGI script '/var/www/cgi-bin/keystone/main' cannot be
loaded as Python module.
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] mod_wsgi
(pid=24803): Exception occurred processing WSGI script
'/var/www/cgi-bin/keystone/main'.
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] Traceback (most
recent call last):
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/var/www/cgi-bin/keystone/main", line 58, in <module>
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] name=name)
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 247, in
loadapp
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] return
loadobj(APP, uri, name=name, **kw)
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 272, in
loadobj
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] return
context.create()
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] return
self.object_type.invoke(self)
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164]
**context.local_conf)
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] val =
callable(*args, **kw)
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/urlmap.py", line 25, in urlmap_factory
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] app =
loader.get_app(app_name, global_conf=global_conf)
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 350, in
get_app
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] name=name,
global_conf=global_conf).create()
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 362, in
app_context
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] APP,
name=name, global_conf=global_conf)
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 450, in
get_context
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164]
global_additions=global_additions)
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 559, in
_pipeline_app_context
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] APP,
pipeline[-1], global_conf)
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 408, in
get_context
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] object_type,
name=name)
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] File
"/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 587, in
find_config_section
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164]
self.filename))
[Mon Sep 01 11:28:56 2014] [error] [client 128.142.145.164] LookupError: No
section 'federation_extension' (prefixed by 'app' or 'application' or
'composite' or 'composit' or 'pipeline' or 'filter-app') found in config
/usr/share/keystone/keystone-dist-paste.ini
My question is: Is the order of the middleware extensions really
important or this is a bug?
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1363932/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp