User token may not have a tenant

Bug #956973 reported by Julien Danjou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Unassigned

Bug Description

GET /tenants on admin port fails with the following:

[...]
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line 180, in __call__
    result = method(context, **params)
  File "/usr/lib/python2.7/dist-packages/keystone/identity/core.py", line 248, in get_all_tenants
    self.assert_admin(context)
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line 211, in assert_admin
    creds['tenant_id'] = user_token_ref['tenant'].get('id')
AttributeError: 'NoneType' object has no attribute 'get'

This is because the token provided is not related to a tenant.

Revision history for this message
Julien Danjou (jdanjou) wrote :

Ok, this is actually fixed with commit d2c6e88200bb33708a0861da4d1a10c0f7984895

Changed in keystone:
status: New → Invalid
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.