2013-12-26 03:52:53 |
Avishai Weissberg |
bug |
|
|
added bug |
2013-12-26 05:51:31 |
Avishai Weissberg |
description |
The openstack-identity cookbook contains a template called keystone.conf.erb with the following option:
[filter:access_log]
paste.filter_factory = keystone.contrib.access:AccessLogMiddleware.factory
This option trips up keystone-all, because it cannot load the keystone.contrib.access python module.
Looking at the python-keystone yum package (downloaded as a dependency of the openstack-keystone package), indeed it does NOT implement that module.
The error log from starting the keystone service:
$ HOME=/var/lib/keystone keystone-all --debug
Traceback (most recent call last):
File "/usr/bin/keystone-all", line 104, in <module>
int(CONF.admin_port)))
File "/usr/bin/keystone-all", line 34, in create_server
app = deploy.loadapp('config:%s' % conf, name=name)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 272, in loadobj
return context.create()
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 710, in create
return self.object_type.invoke(self)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 144, in invoke
**context.local_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/util.py", line 56, in fix_call
val = callable(*args, **kw)
File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 25, in urlmap_factory
app = loader.get_app(app_name, global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 350, in get_app
name=name, global_conf=global_conf).create()
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 362, in app_context
APP, name=name, global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 450, in get_context
global_additions=global_additions)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context
for name in pipeline[:-1]]
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 458, in get_context
section)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
value = import_string(found_expr)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 22, in import_string
return pkg_resources.EntryPoint.parse("x=" + s).load(False)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named access |
This bug happens on CentOS 6.4.
The openstack-identity cookbook contains a template called keystone.conf.erb with the following option:
[filter:access_log]
paste.filter_factory = keystone.contrib.access:AccessLogMiddleware.factory
This option trips up keystone-all, because it cannot load the keystone.contrib.access python module.
Looking at the python-keystone yum package (downloaded as a dependency of the openstack-keystone package), indeed it does NOT implement that module.
The error log from starting the keystone service:
$ HOME=/var/lib/keystone keystone-all --debug
Traceback (most recent call last):
File "/usr/bin/keystone-all", line 104, in <module>
int(CONF.admin_port)))
File "/usr/bin/keystone-all", line 34, in create_server
app = deploy.loadapp('config:%s' % conf, name=name)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 272, in loadobj
return context.create()
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 710, in create
return self.object_type.invoke(self)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 144, in invoke
**context.local_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/util.py", line 56, in fix_call
val = callable(*args, **kw)
File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 25, in urlmap_factory
app = loader.get_app(app_name, global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 350, in get_app
name=name, global_conf=global_conf).create()
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 362, in app_context
APP, name=name, global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 450, in get_context
global_additions=global_additions)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context
for name in pipeline[:-1]]
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 458, in get_context
section)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
value = import_string(found_expr)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 22, in import_string
return pkg_resources.EntryPoint.parse("x=" + s).load(False)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named access |
|
2013-12-26 06:20:24 |
Avishai Weissberg |
summary |
keystone service fails to start after running the openstack-identity:server recipe |
The openstack-identity cookbook is not compatible with RH-based distros |
|
2013-12-26 06:25:18 |
Avishai Weissberg |
description |
This bug happens on CentOS 6.4.
The openstack-identity cookbook contains a template called keystone.conf.erb with the following option:
[filter:access_log]
paste.filter_factory = keystone.contrib.access:AccessLogMiddleware.factory
This option trips up keystone-all, because it cannot load the keystone.contrib.access python module.
Looking at the python-keystone yum package (downloaded as a dependency of the openstack-keystone package), indeed it does NOT implement that module.
The error log from starting the keystone service:
$ HOME=/var/lib/keystone keystone-all --debug
Traceback (most recent call last):
File "/usr/bin/keystone-all", line 104, in <module>
int(CONF.admin_port)))
File "/usr/bin/keystone-all", line 34, in create_server
app = deploy.loadapp('config:%s' % conf, name=name)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 272, in loadobj
return context.create()
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 710, in create
return self.object_type.invoke(self)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 144, in invoke
**context.local_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/util.py", line 56, in fix_call
val = callable(*args, **kw)
File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 25, in urlmap_factory
app = loader.get_app(app_name, global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 350, in get_app
name=name, global_conf=global_conf).create()
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 362, in app_context
APP, name=name, global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 450, in get_context
global_additions=global_additions)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context
for name in pipeline[:-1]]
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 458, in get_context
section)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
value = import_string(found_expr)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 22, in import_string
return pkg_resources.EntryPoint.parse("x=" + s).load(False)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named access |
TLDR
--------
On Redhat-based distros, the python-keystone yum package installed with the openstack-identity:server recipe, is older than what is assumed by the keystone config file, and thus the Keystone service fails to start.
--------
This bug happens on CentOS 6.4.
The openstack-identity cookbook contains a template called keystone.conf.erb with the following option:
[filter:access_log]
paste.filter_factory = keystone.contrib.access:AccessLogMiddleware.factory
This option trips up keystone-all, because it cannot load the keystone.contrib.access python module.
Looking at the python-keystone yum package (downloaded as a dependency of the openstack-keystone package), indeed it does NOT implement that module.
The error log from starting the keystone service:
$ HOME=/var/lib/keystone keystone-all --debug
Traceback (most recent call last):
File "/usr/bin/keystone-all", line 104, in <module>
int(CONF.admin_port)))
File "/usr/bin/keystone-all", line 34, in create_server
app = deploy.loadapp('config:%s' % conf, name=name)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 272, in loadobj
return context.create()
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 710, in create
return self.object_type.invoke(self)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 144, in invoke
**context.local_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/util.py", line 56, in fix_call
val = callable(*args, **kw)
File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 25, in urlmap_factory
app = loader.get_app(app_name, global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 350, in get_app
name=name, global_conf=global_conf).create()
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 362, in app_context
APP, name=name, global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 450, in get_context
global_additions=global_additions)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context
for name in pipeline[:-1]]
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 458, in get_context
section)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
value = import_string(found_expr)
File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 22, in import_string
return pkg_resources.EntryPoint.parse("x=" + s).load(False)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named access |
|
2014-01-21 20:46:23 |
Justin Shepherd |
tags |
keystone openstack-identity python-keystone |
identity python-keystone |
|
2014-01-21 20:53:04 |
Justin Shepherd |
summary |
The openstack-identity cookbook is not compatible with RH-based distros |
[identity] cookbook is not compatible with RH-based distros |
|
2014-01-22 20:19:11 |
Justin Shepherd |
openstack-chef: status |
New |
Fix Committed |
|
2014-02-13 21:45:03 |
Justin Shepherd |
nominated for series |
|
openstack-chef/havana |
|
2014-02-13 21:45:03 |
Justin Shepherd |
bug task added |
|
openstack-chef/havana |
|
2014-02-13 21:48:21 |
Justin Shepherd |
openstack-chef/havana: milestone |
|
stable-havana |
|
2014-02-15 05:29:23 |
Justin Shepherd |
openstack-chef/havana: importance |
Undecided |
Medium |
|
2014-03-02 05:38:13 |
Justin Shepherd |
openstack-chef/havana: milestone |
havana-rc1 |
havana-stable |
|
2014-03-22 18:07:46 |
Justin Shepherd |
openstack-chef/havana: assignee |
|
Darren Birkett (darren-birkett) |
|
2014-03-27 15:12:00 |
Justin Shepherd |
bug task deleted |
openstack-chef/havana |
|
|
2014-03-27 15:12:35 |
Justin Shepherd |
openstack-chef: status |
Fix Committed |
Fix Released |
|