horizon is broken with AttributeError 'User' attribute '_meta'

Bug #1469284 reported by Harm Weites
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
Mark Duggan

Bug Description

Getting this with a fresh built horizon container:

[Fri Jun 26 19:21:40.302045 2015] [:error] [pid 28] Login successful for user "admin".
[Fri Jun 26 19:21:40.304869 2015] [:error] [pid 28] Internal Server Error: /auth/login/
[Fri Jun 26 19:21:40.304879 2015] [:error] [pid 28] Traceback (most recent call last):
[Fri Jun 26 19:21:40.304883 2015] [:error] [pid 28] File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
[Fri Jun 26 19:21:40.304886 2015] [:error] [pid 28] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Fri Jun 26 19:21:40.304889 2015] [:error] [pid 28] File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Fri Jun 26 19:21:40.304892 2015] [:error] [pid 28] return view(request, *args, **kwargs)
[Fri Jun 26 19:21:40.304895 2015] [:error] [pid 28] File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Fri Jun 26 19:21:40.304898 2015] [:error] [pid 28] response = view_func(request, *args, **kwargs)
[Fri Jun 26 19:21:40.304900 2015] [:error] [pid 28] File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Fri Jun 26 19:21:40.304903 2015] [:error] [pid 28] response = view_func(request, *args, **kwargs)
[Fri Jun 26 19:21:40.304906 2015] [:error] [pid 28] File "/usr/lib/python2.7/site-packages/openstack_auth/views.py", line 110, in login
[Fri Jun 26 19:21:40.304909 2015] [:error] [pid 28] **kwargs)
[Fri Jun 26 19:21:40.304911 2015] [:error] [pid 28] File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Fri Jun 26 19:21:40.304914 2015] [:error] [pid 28] return view(request, *args, **kwargs)
[Fri Jun 26 19:21:40.304917 2015] [:error] [pid 28] File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Fri Jun 26 19:21:40.304920 2015] [:error] [pid 28] response = view_func(request, *args, **kwargs)
[Fri Jun 26 19:21:40.304922 2015] [:error] [pid 28] File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Fri Jun 26 19:21:40.304925 2015] [:error] [pid 28] response = view_func(request, *args, **kwargs)
[Fri Jun 26 19:21:40.304928 2015] [:error] [pid 28] File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 51, in login
[Fri Jun 26 19:21:40.304930 2015] [:error] [pid 28] auth_login(request, form.get_user())
[Fri Jun 26 19:21:40.304933 2015] [:error] [pid 28] File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 111, in login
[Fri Jun 26 19:21:40.304936 2015] [:error] [pid 28] request.session[SESSION_KEY] = user._meta.pk.value_to_string(user)
[Fri Jun 26 19:21:40.304938 2015] [:error] [pid 28] AttributeError: 'User' object has no attribute '_meta'

Revision history for this message
Harm Weites (harmw) wrote :
Jeff Peeler (jpeeler-z)
Changed in kolla:
milestone: none → liberty-1
Revision history for this message
Steven Dake (sdake) wrote :

There is nothing we can do about broken upstream software. I assume the Horizon people will triage this bug soon and provide a resolution. Until that time comes, this will not be a blocker for Liberty-1 release.

Changed in kolla:
status: New → Confirmed
importance: Undecided → Medium
Steven Dake (sdake)
Changed in kolla:
importance: Medium → Critical
milestone: liberty-1 → liberty-2
Changed in kolla:
assignee: nobody → Mark Duggan (mark-duggan-t)
Revision history for this message
Harm Weites (harmw) wrote :

This is fixed in https://review.openstack.org/#/c/167981/10, need to wait for that to land though.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/201081

Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/201081
Committed: https://git.openstack.org/cgit/stackforge/kolla/commit/?id=a8cc61efcfd583d7aaae0fc69f5a69ab7b29107e
Submitter: Jenkins
Branch: master

commit a8cc61efcfd583d7aaae0fc69f5a69ab7b29107e
Author: Mark Duggan <email address hidden>
Date: Mon Jul 13 11:05:55 2015 +0000

    Fixes login failure to Horizon dashboard

    This is a temporary workaround to fix a Django error preventing
    the Kolla Horizon login, while waiting for a fix upstream.
    It is part of a patch created by Matthias Runge <email address hidden>
    https://review.openstack.org/gitweb?p=openstack%2Fdjango_openstack_auth.git;a=commitdiff;h=adfc494ec17ee43847d7c0c833dad9c178f29358

    I've just used the patch for openstack_auth/user.py

    Change-Id: I2c2ad0042f9c60a839d8ee9bca904465bee9361f
    Closes-bug: #1469284

Changed in kolla:
status: In Progress → Fix Committed
Sam Yaple (s8m)
Changed in kolla:
status: Fix Committed → 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.