python-ldap is missing from the keystone containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
High
|
Kevin Carter | ||
Juno |
Fix Released
|
High
|
Christopher H. Laco | ||
Kilo |
Fix Released
|
High
|
Kevin Carter | ||
Trunk |
Fix Released
|
High
|
Kevin Carter |
Bug Description
the pip package python-ldap is missing from the keystone containers which makes running keystone using ldap in impossible. While we can certainly install this package by hand the package should be added to the default pip package list.
Without this package present keystone starts up with the following error:
2015-09-20 03:27:02.064 2184 ERROR keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
2015-09-20 03:27:02.064 2184 TRACE keystone.
Fix:
pip install python-ldap
Effects:
* kilo
* master
To add to this issue, once the package `python-ldap` is installed keystone throws the following error:
==> /openstack/ log/aio1_ keystone_ container- 0465f2ad/ keystone. log <== common. wsgi [-] {'desc': "Can't contact LDAP server"} common. wsgi Traceback (most recent call last): common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ keystone/ common/ wsgi.py" , line 238, in __call__ common. wsgi result = method(context, **params) common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ keystone/ token/controlle rs.py", line 101, in authenticate common. wsgi context, auth) common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ keystone/ token/controlle rs.py", line 293, in _authenticate_local common. wsgi username, CONF.identity. default_ domain_ id) common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ keystone/ identity/ core.py" , line 342, in wrapper common. wsgi return f(self, *args, **kwargs) common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ keystone/ identity/ core.py" , line 353, in wrapper common. wsgi return f(self, *args, **kwargs) common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ dogpile/ cache/region. py", line 1040, in decorate common. wsgi should_cache_fn) common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ dogpile/ cache/region. py", line 651, in get_or_create common. wsgi async_creator) as value: common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ dogpile/ core/dogpile. py", line 158, in __enter__ common. wsgi return self._enter() common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ dogpile/ core/dogpile. py", line 98, in _enter common. wsgi generated = self._enter_ create( createdtime) common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ dogpile/ core/dogpile. py", line 149, in _enter_create common. wsgi created = self.creator() common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ dogpile/ cache/region. py", line 619, in gen_value common. wsgi created_value = creator() common. wsgi File "/usr/local/ lib/python2. 7/dist- packages/ dogpile/ cache/region. py", line 1036, in creator
2015-09-20 03:37:01.427 3155 ERROR keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 03:37:01.427 3155 TRACE keystone.
2015-09-20 ...