← Back to team overview

registry team mailing list archive

[Bug 610035] [NEW] New admin create caused bug by using LDAP

 

Public bug reported:

When a admin user is created,  error is happened.

stdio showed this error:
Traceback (most recent call last):
  File "./nova-manage", line 268, in <module>
    fn(*argv)
  File "./nova-manage", line 125, in admin
    user = self.manager.create_user(name, access, secret, True)
  File "/usr/local/lib/python2.6/dist-packages/nova-0.3.0-py2.6.egg/nova/auth/users.py", line 534, in create_user
    conn.create_project(user, user, user)
  File "/usr/local/lib/python2.6/dist-packages/nova-0.3.0-py2.6.egg/nova/auth/users.py", line 730, in create_project
    if self.project_exists(name):
  File "/usr/local/lib/python2.6/dist-packages/nova-0.3.0-py2.6.egg/nova/auth/users.py", line 698, in project_exists
    return self.find_project(name) != None
  File "/usr/local/lib/python2.6/dist-packages/nova-0.3.0-py2.6.egg/nova/auth/users.py", line 688, in find_project
    attr = self.find_object(dn, '(objectclass=novaProject)')
  File "/usr/local/lib/python2.6/dist-packages/nova-0.3.0-py2.6.egg/nova/auth/users.py", line 621, in find_object
    objects = self.find_objects(dn, query)
  File "/usr/local/lib/python2.6/dist-packages/nova-0.3.0-py2.6.egg/nova/auth/users.py", line 637, in find_objects
    res = self.conn.search_s(dn, ldap.SCOPE_SUBTREE, query)
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 516, in search_s
    return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 509, in search_ext_s
    msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit)
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 505, in search_ext
    timeout,sizelimit,
  File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 96, in _ldap_call
    result = func(*args,**kwargs)
ldap.LDAPError: LDAP connection invalid


I read the auth/users.py.
I think Line.529(If statement) indentation level is not valid.
They needs  deep nesting.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
New admin create caused bug  by using LDAP
https://bugs.launchpad.net/bugs/610035
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.



Follow ups

References