问题描述
ALL好,openstack集成ldap报错,请问什么情况?2016-05-0821:50:48.347276DEBUGkeystone.common.manager[req-8664f226-4f58-4a13-a346-2c0b019acd41-----]Failedtoload'keystone.identity.backends.ldap.Identity'usingstevedore:No'keystone.identity'driverfound,lookingfor'keystone.identity.backends.ldap.Identity'load_driver/usr/lib/python2.7/site-packages/keystone/common/manager.py:772016-05-0821:50:48.362276WARNINGkeystone.common.manager[req-8664f226-4f58-4a13-a346-2c0b019acd41-----]Deprecated:Directimportofdriver'keystone.identity.backends.ldap.Identity'isdeprecatedasofLibertyinfavorofitsentrypointfrom'keystone.identity'andmayberemovedinN.2016-05-0821:50:48.362276DEBUGkeystone.notifications[req-8664f226-4f58-4a13-a346-2c0b019acd41-----]Callback:`keystone.identity.core.Manager._domain_deleted`subscribedtoevent`identity.domain.deleted`.register_event_callback/usr/lib/python2.7/site-packages/keystone/notifications.py:3092016-05-0821:50:48.363276DEBUGkeystone.common.manager[req-8664f226-4f58-4a13-a346-2c0b019acd41-----]Failedtoload'keystone.assignment.backends.sql.Assignment'usingstevedore:No'keystone.assignment'driverfound,lookingfor'keystone.assignment.backends.sql.Assignment'load_driver/usr/lib/python2.7/site-packages/keystone/common/manager.py:772016-05-0821:50:48.369276WARNINGkeystone.common.manager[req-8664f226-4f58-4a13-a346-2c0b019acd41-----]Deprecated:Directimportofdriver'keystone.assignment.backends.sql.Assignment'isdeprecatedasofLibertyinfavorofitsentrypointfrom'keystone.assignment'andmayberemovedinN.
解决方案
解决方案二:
我走读了源码,以上错误是正常的,最新日志如下:(重点看红色部分)2016-05-0902:06:50.102961DEBUGkeystone.common.ldap.core[req-831cf15f-b4a7-4be5-8ac1-493248b9b1b6-----]LDAPinit:url=ldap://10.113.187.118:389_common_ldap_initialization/usr/lib/python2.7/site-packages/keystone/common/ldap/core.py:5792016-05-0902:06:50.102961DEBUGkeystone.common.ldap.core[req-831cf15f-b4a7-4be5-8ac1-493248b9b1b6-----]LDAPinit:use_tls=Falsetls_cacertfile=Nonetls_cacertdir=Nonetls_req_cert=2tls_avail=1_common_ldap_initialization/usr/lib/python2.7/site-packages/keystone/common/ldap/core.py:5832016-05-0902:06:50.102961DEBUGkeystone.common.ldap.core[req-831cf15f-b4a7-4be5-8ac1-493248b9b1b6-----]LDAPbind:who=CN=linkageadmdev,CN=Users,DC=corp,DC=nhncorp,DC=comsimple_bind_s/usr/lib/python2.7/site-packages/keystone/common/ldap/core.py:9032016-05-0902:06:50.102961DEBUGkeystone.common.ldap.core[req-831cf15f-b4a7-4be5-8ac1-493248b9b1b6-----]LDAPsearch:base=OU=user,OU=NHN,DC=corp,DC=nhncorp,DC=comscope=2filterstr=(&(cn=KR13675)(&(objectClass=user)(cn=*))(objectClass=user))attrs=['','cn','enabled','mail','description']attrsonly=0search_s/usr/lib/python2.7/site-packages/keystone/common/ldap/core.py:9382016-05-0902:06:50.106961DEBUGkeystone.common.ldap.core[req-831cf15f-b4a7-4be5-8ac1-493248b9b1b6-----]LDAPunbindunbind_s/usr/lib/python2.7/site-packages/keystone/common/ldap/core.py:9112016-05-0902:06:50.107961DEBUGkeystone.common.ldap.core[req-831cf15f-b4a7-4be5-8ac1-493248b9b1b6-----]LDAPunbindunbind_s/usr/lib/python2.7/site-packages/keystone/common/ldap/core.py:9112016-05-0902:06:50.107961DEBUGkeystone.common.ldap.core[req-831cf15f-b4a7-4be5-8ac1-493248b9b1b6-----]LDAPinit:url=ldap://10.113.187.118:389_common_ldap_initialization/usr/lib/python2.7/site-packages/keystone/common/ldap/core.py:5792016-05-0902:06:50.107961DEBUGkeystone.common.ldap.core[req-831cf15f-b4a7-4be5-8ac1-493248b9b1b6-----]LDAPinit:use_tls=Falsetls_cacertfile=Nonetls_cacertdir=Nonetls_req_cert=2tls_avail=1_common_ldap_initialization/usr/lib/python2.7/site-packages/keystone/common/ldap/core.py:5832016-05-0902:06:50.107961DEBUGkeystone.common.ldap.core[req-831cf15f-b4a7-4be5-8ac1-493248b9b1b6-----]LDAPbind:who=CN=KR13675,OU=KR,OU=user,OU=NHN,DC=corp,DC=nhncorp,DC=comsimple_bind_s/usr/lib/python2.7/site-packages/keystone/common/ldap/core.py:9032016-05-0902:06:50.457961WARNINGkeystone.common.wsgi[req-831cf15f-b4a7-4be5-8ac1-493248b9b1b6-----]Authorizationfailed.Therequestyouhavemaderequiresauthentication.from192.168.11.128貌似已经从LDAP侧取出用户来了,但是Authorization为什么会失败呢?