Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Horizon: django issue?

I have a error in kilo horizon. In juno all works fine:

[Tue Jul 14 14:23:18.820391 2015] [:error] [pid 3542] Login successful for user "demo".
[Tue Jul 14 14:23:18.821302 2015] [:error] [pid 3542] Internal Server Error: /dashboard/auth/login/
[Tue Jul 14 14:23:18.821315 2015] [:error] [pid 3542] Traceback (most recent call last):
[Tue Jul 14 14:23:18.821319 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
[Tue Jul 14 14:23:18.821323 2015] [:error] [pid 3542]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Tue Jul 14 14:23:18.821326 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Tue Jul 14 14:23:18.821330 2015] [:error] [pid 3542]     return view(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821333 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Tue Jul 14 14:23:18.821337 2015] [:error] [pid 3542]     response = view_func(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821340 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Tue Jul 14 14:23:18.821343 2015] [:error] [pid 3542]     response = view_func(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821347 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/openstack_auth/views.py", line 111, in login
[Tue Jul 14 14:23:18.821350 2015] [:error] [pid 3542]     **kwargs)
[Tue Jul 14 14:23:18.821353 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Tue Jul 14 14:23:18.821356 2015] [:error] [pid 3542]     return view(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821359 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Tue Jul 14 14:23:18.821363 2015] [:error] [pid 3542]     response = view_func(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821366 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Tue Jul 14 14:23:18.821369 2015] [:error] [pid 3542]     response = view_func(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821372 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 51, in login
[Tue Jul 14 14:23:18.821375 2015] [:error] [pid 3542]     auth_login(request, form.get_user())
[Tue Jul 14 14:23:18.821378 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 102, in login
[Tue Jul 14 14:23:18.821381 2015] [:error] [pid 3542]     if _get_user_session_key(request) != user.pk or (
[Tue Jul 14 14:23:18.821384 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 59, in _get_user_session_key
[Tue Jul 14 14:23:18.821402 2015] [:error] [pid 3542]     return get_user_model()._meta.pk.to_python(request.session[SESSION_KEY])
[Tue Jul 14 14:23:18.821406 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 969, in to_python
[Tue Jul 14 14:23:18.821408 2015] [:error] [pid 3542]     params={'value': value},
[Tue Jul 14 14:23:18.821411 2015] [:error] [pid 3542] ValidationError: [u"\\u0417\\u043d\\u0430\\u0447\\u0435\\u043d\\u0438\\u0435 '7d1ea74085f54077a0a20425c7a70f23' \\u0434\\u043e\\u043b\\u0436\\u043d\\u043e \\u0431\\u044b\\u0442\\u044c \\u0446\\u0435\\u043b\\u044b\\u043c \\u0447\\u0438\\u0441\\u043b\\u043e\\u043c."]

The error reproduce (I deploy my stend by PXE and Puppet)

Horizon: django issue?

I have a error in kilo horizon. In juno all works fine:

[Tue Jul 14 14:23:18.820391 2015] [:error] [pid 3542] Login successful for user "demo".
[Tue Jul 14 14:23:18.821302 2015] [:error] [pid 3542] Internal Server Error: /dashboard/auth/login/
[Tue Jul 14 14:23:18.821315 2015] [:error] [pid 3542] Traceback (most recent call last):
[Tue Jul 14 14:23:18.821319 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
[Tue Jul 14 14:23:18.821323 2015] [:error] [pid 3542]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Tue Jul 14 14:23:18.821326 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Tue Jul 14 14:23:18.821330 2015] [:error] [pid 3542]     return view(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821333 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Tue Jul 14 14:23:18.821337 2015] [:error] [pid 3542]     response = view_func(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821340 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Tue Jul 14 14:23:18.821343 2015] [:error] [pid 3542]     response = view_func(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821347 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/openstack_auth/views.py", line 111, in login
[Tue Jul 14 14:23:18.821350 2015] [:error] [pid 3542]     **kwargs)
[Tue Jul 14 14:23:18.821353 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Tue Jul 14 14:23:18.821356 2015] [:error] [pid 3542]     return view(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821359 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Tue Jul 14 14:23:18.821363 2015] [:error] [pid 3542]     response = view_func(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821366 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Tue Jul 14 14:23:18.821369 2015] [:error] [pid 3542]     response = view_func(request, *args, **kwargs)
[Tue Jul 14 14:23:18.821372 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 51, in login
[Tue Jul 14 14:23:18.821375 2015] [:error] [pid 3542]     auth_login(request, form.get_user())
[Tue Jul 14 14:23:18.821378 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 102, in login
[Tue Jul 14 14:23:18.821381 2015] [:error] [pid 3542]     if _get_user_session_key(request) != user.pk or (
[Tue Jul 14 14:23:18.821384 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 59, in _get_user_session_key
[Tue Jul 14 14:23:18.821402 2015] [:error] [pid 3542]     return get_user_model()._meta.pk.to_python(request.session[SESSION_KEY])
[Tue Jul 14 14:23:18.821406 2015] [:error] [pid 3542]   File "/usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 969, in to_python
[Tue Jul 14 14:23:18.821408 2015] [:error] [pid 3542]     params={'value': value},
[Tue Jul 14 14:23:18.821411 2015] [:error] [pid 3542] ValidationError: [u"\\u0417\\u043d\\u0430\\u0447\\u0435\\u043d\\u0438\\u0435 '7d1ea74085f54077a0a20425c7a70f23' \\u0434\\u043e\\u043b\\u0436\\u043d\\u043e \\u0431\\u044b\\u0442\\u044c \\u0446\\u0435\\u043b\\u044b\\u043c \\u0447\\u0438\\u0441\\u043b\\u043e\\u043c."]

The error reproduce (I deploy my stend by PXE and Puppet)

UPDATE

I updated rpms for latest version:

openstack-dashboard-2015.1.0-7.el7.noarch.rpm python-django-horizon-2015.1.0-7.el7.noarch.rpm

And problems with dashboard did'nt solved. For example:

Wed Jul 15 13:04:03.527943 2015] [:error] [pid 2230] Login successful for user "admin".
[Wed Jul 15 13:10:12.213248 2015] [:error] [pid 2230] Internal Server Error: /dashboard/project/instances/
[Wed Jul 15 13:10:12.224092 2015] [:error] [pid 2230] Traceback (most recent call last):
[Wed Jul 15 13:10:12.224113 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
[Wed Jul 15 13:10:12.224121 2015] [:error] [pid 2230]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Wed Jul 15 13:10:12.224128 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
[Wed Jul 15 13:10:12.224136 2015] [:error] [pid 2230]     return view_func(request, *args, **kwargs)
[Wed Jul 15 13:10:12.224142 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
[Wed Jul 15 13:10:12.224148 2015] [:error] [pid 2230]     return view_func(request, *args, **kwargs)
[Wed Jul 15 13:10:12.224154 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
[Wed Jul 15 13:10:12.224162 2015] [:error] [pid 2230]     return view_func(request, *args, **kwargs)
[Wed Jul 15 13:10:12.224169 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec
[Wed Jul 15 13:10:12.224175 2015] [:error] [pid 2230]     return view_func(request, *args, **kwargs)
[Wed Jul 15 13:10:12.224182 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
[Wed Jul 15 13:10:12.224189 2015] [:error] [pid 2230]     return self.dispatch(request, *args, **kwargs)
[Wed Jul 15 13:10:12.224196 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
[Wed Jul 15 13:10:12.224202 2015] [:error] [pid 2230]     return handler(request, *args, **kwargs)
[Wed Jul 15 13:10:12.224224 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 223, in post
[Wed Jul 15 13:10:12.224229 2015] [:error] [pid 2230]     return self.get(request, *args, **kwargs)
[Wed Jul 15 13:10:12.224232 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 159, in get
[Wed Jul 15 13:10:12.224235 2015] [:error] [pid 2230]     handled = self.construct_tables()
[Wed Jul 15 13:10:12.224238 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 150, in construct_tables
[Wed Jul 15 13:10:12.224241 2015] [:error] [pid 2230]     handled = self.handle_table(table)
[Wed Jul 15 13:10:12.224244 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 125, in handle_table
[Wed Jul 15 13:10:12.224247 2015] [:error] [pid 2230]     handled = self._tables[name].maybe_handle()
[Wed Jul 15 13:10:12.224250 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1640, in maybe_handle
[Wed Jul 15 13:10:12.224253 2015] [:error] [pid 2230]     return self.take_action(action_name, obj_id)
[Wed Jul 15 13:10:12.224255 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1482, in take_action
[Wed Jul 15 13:10:12.224259 2015] [:error] [pid 2230]     response = action.multiple(self, self.request, obj_ids)
[Wed Jul 15 13:10:12.224262 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 302, in multiple
[Wed Jul 15 13:10:12.224264 2015] [:error] [pid 2230]     return self.handle(data_table, request, object_ids)
[Wed Jul 15 13:10:12.224267 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 827, in handle
[Wed Jul 15 13:10:12.224270 2015] [:error] [pid 2230]     exceptions.handle(request, ignore=ignore)
[Wed Jul 15 13:10:12.224273 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle
[Wed Jul 15 13:10:12.224276 2015] [:error] [pid 2230]     six.reraise(exc_type, exc_value, exc_traceback)
[Wed Jul 15 13:10:12.224279 2015] [:error] [pid 2230]   File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 817, in handle
[Wed Jul 15 13:10:12.224281 2015] [:error] [pid 2230]     (self._get_action_name(past=True), datum_display))
[Wed Jul 15 13:10:12.224284 2015] [:error] [pid 2230] UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

It was a attept of delete instance (and instance was deleted)