GET user roles throws stack trace

Bug #997231 reported by Adam Young
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Expired
Undecided
Unassigned

Bug Description

[ayoung@ayoungstack devstack]$ curl -H "X-Auth-Token:3fe4d4433a9d4fcf9ae717845a5f1135" http://10.16.184.54:35357/v2.0/users/a56c1e8001de4835a248153b0ab8d523
{"user": {"name": "nova", "enabled": true, "email": "<email address hidden>", "id": "a56c1e8001de4835a248153b0ab8d523", "tenantId": "0d44435dedd94caea265f829fa3f6e5e"}}[ayoung@ayoungstack devstack]$

But

curl -H "X-Auth-Token:3fe4d4433a9d4fcf9ae717845a5f1135" http://10.16.184.54:35357/v2.0/users/a56c1e8001de4835a248153b0ab8d523/roles
...

  File "/usr/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/dec.py", line 208, in call_func
    return self.func(req, *args, **kwargs)
  File "/opt/stack/keystone/keystone/common/wsgi.py", line 178, in __call__
    method = getattr(self, action)
AttributeError: 'UserController' object has no attribute 'get_user_roles'

Using the SQL Backend.

Revision history for this message
Joseph Heck (heckj) wrote :

Hey adam,

I think a commit just went in that fixed this bug. Would you mind rechecking against master to see if this still exists?

Changed in keystone:
status: New → Incomplete
Revision history for this message
Alan Pevec (apevec) wrote :

> rechecking against master to see if this still exists?

Fixed on master, response is:

{"error": {"message": "User roles not supported: tenant ID required", "code": 501, "title": "Not Implemented"}}

Hey Joe, which commit was that, it looks like a candidate for the stable/essex ?

tags: added: essex-backport
Revision history for this message
Vincent Untz (vuntz) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Keystone because there has been no activity for 60 days.]

Changed in keystone:
status: Incomplete → Expired
Revision history for this message
Chris Johnson (wchrisjohnson) wrote :

I am working on the ruby fog binding and am seeing this error in my tests. I would appreciate clarification on whether this bug is to be fixed, or any workarounds.

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.