AttributeError: 'User' object has no attribute '_meta'

Bug #1428011 reported by Matthias Runge
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
django-openstack-auth
Fix Released
Undecided
Unassigned

Bug Description

Internal Server Error: /auth/login/
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
    return view(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/home/mrunge/work/django_openstack_auth/openstack_auth/views.py", line 96, in login
    **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
    return view(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 51, in login
    auth_login(request, form.get_user())
  File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 111, in login
    request.session[SESSION_KEY] = user._meta.pk.value_to_string(user)
AttributeError: 'User' object has no attribute '_meta'
[03/Mar/2015 13:44:33]"POST /auth/login/ HTTP/1.1" 500 176713

Revision history for this message
Matthias Runge (mrunge) wrote :
Revision history for this message
Steven Dake (sdake) wrote :

can we get this bug in the triaged state? It affects downstream Kolla making Horizon unusable. We are not going to block Kolla in Liberty 1 further for this issue, but I'd really like to say our Horizon feature is working.

Revision history for this message
Matthias Runge (mrunge) wrote :

Steven, upstream django-openstack-auth doesn't support django-1.8 yet.

The patch: https://review.openstack.org/167981 fixes this issue, as you see, it's not merged yet.

Revision history for this message
David Lyle (david-lyle) wrote :

why is kolla using django 1.8? That's not supported in openstack/requirements yet.

Changed in django-openstack-auth:
status: New → Incomplete
Revision history for this message
Shaun Smekel (shaun-smekel) wrote :

The patch https://review.openstack.org/167981 has been merged.

David Lyle (david-lyle)
Changed in django-openstack-auth:
status: Incomplete → Fix Released
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.