← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1353585] [NEW] object type has no len

 

Public bug reported:

During deploy of overcloud keystone stopped responding on the undercloud
and the following error was found in /var/log/upstart/keystone.log

2014-08-06 15:20:57.187 4878 ERROR keystone.common.wsgi [-] object of type 'NoneType' has no len()
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi Traceback (most recent call last):
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/common/wsgi.py", line 212, in __call__
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     result = method(context, **params)
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/token/controllers.py", line 99, in authenticate
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     context, auth)
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/token/controllers.py", line 293, in _authenticate_local
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     password=password)
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/notifications.py", line 260, in wrapper
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     result = f(wrapped_self, context, user_id, *args, **kwargs)
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/identity/core.py", line 182, in wrapper
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     return f(self, *args, **kwargs)
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/identity/core.py", line 193, in wrapper
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     return f(self, *args, **kwargs)
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/identity/core.py", line 528, in authenticate
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     ref = driver.authenticate(entity_id, password)
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/identity/backends/sql.py", line 99, in authenticate
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     user_ref = self._get_user(session, user_id)
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/identity/backends/sql.py", line 125, in _get_user
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     user_ref = session.query(User).get(user_id)
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 798, in get
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     if len(ident) != len(mapper.primary_key):
2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi TypeError: object of type 'NoneType' has no len()

It was found that keystone authentication locked up after this error.

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1353585

Title:
  object type has no len

Status in OpenStack Identity (Keystone):
  New

Bug description:
  During deploy of overcloud keystone stopped responding on the
  undercloud and the following error was found in
  /var/log/upstart/keystone.log

  2014-08-06 15:20:57.187 4878 ERROR keystone.common.wsgi [-] object of type 'NoneType' has no len()
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi Traceback (most recent call last):
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/common/wsgi.py", line 212, in __call__
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     result = method(context, **params)
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/token/controllers.py", line 99, in authenticate
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     context, auth)
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/token/controllers.py", line 293, in _authenticate_local
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     password=password)
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/notifications.py", line 260, in wrapper
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     result = f(wrapped_self, context, user_id, *args, **kwargs)
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/identity/core.py", line 182, in wrapper
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     return f(self, *args, **kwargs)
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/identity/core.py", line 193, in wrapper
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     return f(self, *args, **kwargs)
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/identity/core.py", line 528, in authenticate
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     ref = driver.authenticate(entity_id, password)
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/identity/backends/sql.py", line 99, in authenticate
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     user_ref = self._get_user(session, user_id)
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/identity/backends/sql.py", line 125, in _get_user
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     user_ref = session.query(User).get(user_id)
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 798, in get
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi     if len(ident) != len(mapper.primary_key):
  2014-08-06 15:20:57.187 4878 TRACE keystone.common.wsgi TypeError: object of type 'NoneType' has no len()

  It was found that keystone authentication locked up after this error.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1353585/+subscriptions


Follow ups

References