← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1451934] [NEW] DOA code fails on federated attribute of token

 

Public bug reported:

Seeing this problem with recent DOA, against keystone v2:

  File "/foo/current/.venv/lib/python2.7/site-packages/openstack_auth/utils.py", line 54, in middleware_get_user
    request._cached_user = get_user(request)
  File "/foo/.venv/lib/python2.7/site-packages/openstack_auth/utils.py", line 64, in get_user
    user = backend.get_user(user_id) or models.AnonymousUser()
  File "/foo/.venv/lib/python2.7/site-packages/openstack_auth/backend.py", line 78, in get_user
    endpoint, services_region)
  File "/foo/.venv/lib/python2.7/site-packages/openstack_auth/user.py", line 58, in create_user_from_token
    is_federated=token.is_federated,
AttributeError: 'Token' object has no attribute 'is_federated'

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1451934

Title:
  DOA code fails on federated attribute of token

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Seeing this problem with recent DOA, against keystone v2:

    File "/foo/current/.venv/lib/python2.7/site-packages/openstack_auth/utils.py", line 54, in middleware_get_user
      request._cached_user = get_user(request)
    File "/foo/.venv/lib/python2.7/site-packages/openstack_auth/utils.py", line 64, in get_user
      user = backend.get_user(user_id) or models.AnonymousUser()
    File "/foo/.venv/lib/python2.7/site-packages/openstack_auth/backend.py", line 78, in get_user
      endpoint, services_region)
    File "/foo/.venv/lib/python2.7/site-packages/openstack_auth/user.py", line 58, in create_user_from_token
      is_federated=token.is_federated,
  AttributeError: 'Token' object has no attribute 'is_federated'

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1451934/+subscriptions


Follow ups

References