Unhelpful error message: 'NoneType' object has no attribute 'id'

Bug #900495 reported by Lorin Hochstein
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Dolph Mathews

Bug Description

In the following case, I don't get a proper traceback in the keystone log about what the failure is, I only get the string associated with the exception.

The only output that appears in keystone.log is:
2011-12-05 16:30:23 ERROR [root] 'NoneType' object has no attribute 'id'

Here's the command that triggered this:

# sudo keystone-manage role grant KeystoneServiceAdmin lorin
ERROR: 'NoneType' object has no attribute 'id'
Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 16, in <module>
    keystone.manage.main()
  File "/usr/lib/python2.6/site-packages/keystone/manage/__init__.py", line 293, in main
    raise exc
AttributeError: 'NoneType' object has no attribute 'id'

Revision history for this message
Ziad Sawalha (ziad-sawalha) wrote :

This will be handled in the refactor of keystone-manage

Changed in keystone:
milestone: none → essex-3
assignee: nobody → Dolph Mathews (dolph)
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
Dolph Mathews (dolph) wrote :

A more explicit error is now provided along with the rewrite of keystone-manage2. The output would now end with:

    [...]
    KeyError: 'User ID not found: lorin'

Changed in keystone:
importance: Undecided → Low
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-3 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.