Keystone container 14.0-107 results in error for LDAP authentication in Red Hat OpenStack Platform 14
Issue
Keystone container 14.0-107 results in error for LDAP authentication in Red Hat OpenStack Platform 14
Attempts to login using the domain linked to an ldap configuration results in the following error in the keystone log:
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi [req-9282fff0-a19f-414a-947a-2d3775c1da79 - - - - -] initialize() got an unexpected keyword argument 'bytes_mode': TypeError: initialize() got an unexpected keyword argument 'bytes_mode'
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi Traceback (most recent call last):
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/common/wsgi.py", line 148, in __call__
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi result = method(req, **params)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/auth/controllers.py", line 67, in authenticate_for_to
ken
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi self.authenticate(request, auth_info, auth_context)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/auth/controllers.py", line 236, in authenticate
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi auth_info.get_method_data(method_name))
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/auth/plugins/password.py", line 31, in authenticate
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi user_info = auth_plugins.UserAuthInfo.create(auth_payload, METHOD_NAME)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/auth/plugins/core.py", line 102, in create
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi user_auth_info._validate_and_normalize_auth_data(auth_payload)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/auth/plugins/core.py", line 189, in _validate_and_normalize_auth_data
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi auth_payload)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/auth/plugins/core.py", line 166, in _validate_and_normalize_auth_data
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi user_name, domain_ref['id'])
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/common/manager.py", line 116, in wrapped
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi __ret_val = __f(*args, **kwargs)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/core.py", line 416, in wrapper
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi return f(self, *args, **kwargs)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/core.py", line 426, in wrapper
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi return f(self, *args, **kwargs)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/dogpile/cache/region.py", line 1220, in decorate
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi should_cache_fn)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/dogpile/cache/region.py", line 825, in get_or_create
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi async_creator) as value:
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/dogpile/lock.py", line 154, in __enter__
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi return self._enter()
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/dogpile/lock.py", line 94, in _enter
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi generated = self._enter_create(createdtime)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/dogpile/lock.py", line 145, in _enter_create
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi created = self.creator()
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/dogpile/cache/region.py", line 1216, in creator
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi return fn(*arg, **kw)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/core.py", line 983, in get_user_by_name
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi ref = driver.get_user_by_name(user_name, domain_id)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/backends/ldap/core.py", line 97, in get_user_by_name
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi return self.user.filter_attributes(self.user.get_by_name(user_name))
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/backends/ldap/common.py", line 1555, in get_by_name
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi res = self.get_all(query)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/backends/ldap/core.py", line 319, in get_all
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi hints=hints)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/backends/ldap/common.py", line 1862, in get_all
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi return super(EnabledEmuMixIn, self).get_all(ldap_filter, hints)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/backends/ldap/common.py", line 1564, in get_all
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi for x in self._ldap_get_all(hints, ldap_filter)]
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/common/driver_hints.py", line 42, in wrapper
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi return f(self, hints, *args, **kwargs)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/backends/ldap/common.py", line 1512, in _ldap_get_all
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi with self.get_connection() as conn:
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/backends/ldap/common.py", line 1250, in get_connection
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi pool_conn_lifetime=pool_conn_lifetime)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/backends/ldap/common.py", line 907, in connect
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi pool_conn_lifetime=pool_conn_lifetime)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/identity/backends/ldap/common.py", line 523, in connect
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi self.conn = ldap.initialize(url, bytes_mode=False)
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi TypeError: initialize() got an unexpected keyword argument 'bytes_mode'
2019-07-03 20:15:22.831 29 ERROR keystone.common.wsgi
Environment
Red Hat OpenStack Platform 14
Keystone container https://access.redhat.com/containers/?tab=security#/registry.access.redhat.com/rhosp14/openstack-keystone/images/14.0-107
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.