keystone-manage role list failing: no attribute 'description'

Bug #912135 reported by Adam Gandelman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Dolph Mathews

Bug Description

Using keystone upstream tarball keystone-2012.1~e3~20120104.1490.tar.gz (04-Jan-2012 06:16)

Both keystone-manage role list + service list are failing if there are any items defined in each.

root@ip-10-252-0-251:~# keystone-manage role list
ERROR: 'Role' object has no attribute 'description'
Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 18, in <module>
    keystone.manage.main()
  File "/usr/lib/python2.7/dist-packages/keystone/manage/__init__.py", line 485, in main
    raise exc
AttributeError: 'Role' object has no attribute 'description'
root@ip-10-252-0-251:~# keystone-manage service add nova compute
SUCCESS: Service nova created successfully.
root@ip-10-252-0-251:~# keystone-manage service list
ERROR: 'Service' object has no attribute 'description'
Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 18, in <module>
    keystone.manage.main()
  File "/usr/lib/python2.7/dist-packages/keystone/manage/__init__.py", line 485, in main
    raise exc
AttributeError: 'Service' object has no attribute 'description'

A more complete log is attached.

Revision history for this message
Adam Gandelman (gandelman-a) wrote :
Changed in keystone:
assignee: nobody → Adam Gandelman (gandelman-a)
status: New → In Progress
Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Un-assigning as there is currently a good deal of refactoring going on in this area ATM

Changed in keystone:
assignee: Adam Gandelman (gandelman-a) → nobody
status: In Progress → New
Revision history for this message
Adam Gandelman (gandelman-a) wrote :

After commit eac98b07b30b46edcc12b7b2f0789e294cac539b "Initial keystone-manage rewrite (bp keystone-manage2)", this problem still exists. I've come up with a patch to fix but I'm having problems submitting to gerrit due to a launchpad bug. In the meantime, the changeset is available @ http://paste.ubuntu.com/795278/ if someone is willing to submit to gerrit on my behalf.

Revision history for this message
Dolph Mathews (dolph) wrote :

This was fixed during E3 as part of bp keystone-manage2 as expected above.

The old & new list service/role commands are supported in E3 side by side:
http://paste.openstack.org/show/4549/

Changed in keystone:
assignee: nobody → Dolph Mathews (dolph)
importance: Undecided → Medium
milestone: none → essex-3
status: New → 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

Bug attachments

Remote bug watches

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