Comment 3 for bug 1210590

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

Client side:

REQ: curl -i http://localhost:35357/v3/projects/71c11ba9423e40b48bdffb8e649d4012/users/85973994c2c146d0bbc19849a6710c44/roles/9bb1083cf50a4589ac12776ffe586233 HEAD -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: ADMIN"
RESP: [500] CaseInsensitiveDict({'date': 'Mon, 12 Aug 2013 17:47:47 GMT', 'vary': 'X-Auth-Token', 'content-length': '183', 'content-type': 'application/json'})
RESP BODY:

No body was returned.
Request returned failure status: 500
Traceback (most recent call last):
  File "/Users/dolph/Environments/os/bin/keystone-workout", line 9, in <module>
    load_entry_point('keystone-workout==0.1.0', 'console_scripts', 'keystone-workout')()
  File "/Users/dolph/Projects/keystone-workout/keystoneworkout/cli/core.py", line 59, in cli
    args.func(args)
  File "/Users/dolph/Projects/keystone-workout/keystoneworkout/cli/subcommands.py", line 65, in __call__
    BootstrapAdmin()(args)
  File "/Users/dolph/Projects/keystone-workout/keystoneworkout/cli/subcommands.py", line 121, in __call__
    role=role)
  File "/Users/dolph/Projects/python-keystoneclient/keystoneclient/v3/roles.py", line 125, in check
    role_id=base.getid(role))
  File "/Users/dolph/Projects/python-keystoneclient/keystoneclient/base.py", line 73, in func
    return f(*args, **kwargs)
  File "/Users/dolph/Projects/python-keystoneclient/keystoneclient/base.py", line 254, in head
    return self._head(self.build_url(dict_args_in_out=kwargs))
  File "/Users/dolph/Projects/python-keystoneclient/keystoneclient/base.py", line 109, in _head
    resp, body = self.api.head(url)
  File "/Users/dolph/Projects/python-keystoneclient/keystoneclient/client.py", line 611, in head
    return self._cs_request(url, 'HEAD', **kwargs)
  File "/Users/dolph/Projects/python-keystoneclient/keystoneclient/client.py", line 604, in _cs_request
    **kwargs)
  File "/Users/dolph/Projects/python-keystoneclient/keystoneclient/client.py", line 576, in request
    raise exceptions.from_response(resp, body or resp.text)
keystoneclient.exceptions.ClientException: <attribute 'message' of 'exceptions.BaseException' objects> (HTTP 500)

service side:

2013-08-12 12:47:47 ERROR [keystone.common.wsgi] 'unicode' object has no attribute 'get'
Traceback (most recent call last):
  File "/Users/dolph/Projects/keystone/keystone/common/wsgi.py", line 240, in __call__
    result = method(context, **params)
  File "/Users/dolph/Projects/keystone/keystone/common/controller.py", line 106, in wrapper
    return f(self, context, *args, **kwargs)
  File "/Users/dolph/Projects/keystone/keystone/identity/controllers.py", line 798, in check_grant
    self._check_if_inherited(context))
  File "/Users/dolph/Projects/keystone/keystone/identity/core.py", line 173, in get_grant
    inherited_to_projects))
  File "/Users/dolph/Projects/keystone/keystone/common/manager.py", line 44, in _wrapper
    return f(*args, **kw)
  File "/Users/dolph/Projects/keystone/keystone/assignment/backends/sql.py", line 180, in get_grant
    metadata_ref.get('roles', []), inherited_to_projects))
  File "/Users/dolph/Projects/keystone/keystone/assignment/core.py", line 224, in _roles_from_role_dicts
    if ((not d.get('inherited_to') and not inherited) or
AttributeError: 'unicode' object has no attribute 'get'