yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #76810
[Bug 1811261] Re: Osprofiler not working with Redis in Horizon
Reviewed: https://review.openstack.org/630372
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=96aded3c3429318e63acf9b21dc8ac8a186b0f00
Submitter: Zuul
Branch: master
commit 96aded3c3429318e63acf9b21dc8ac8a186b0f00
Author: Michal Arbet <michal.arbet@xxxxxxxxxx>
Date: Fri Jan 11 17:55:40 2019 +0100
Fix osprofiler support in horizon
Change-Id: I3c0d8e449bd78097a68bd40741977392ea14d6dd
Closes-Bug: #1811261
** Changed in: horizon
Status: In Progress => Fix Released
--
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/1811261
Title:
Osprofiler not working with Redis in Horizon
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
Hi,
I wanted to have osprofiler support in horizon ( openstack-dashboard ) with redis driver.
I found several issues >>
1. Horizon UnicodeDecodeError :
UnicodeDecodeError at /auth/login/
'ascii' codec can't decode byte 0xe2 in position 63097: ordinal not in range(128)
Request Method: GET
Request URL: http://openstack-controller/auth/login/?next=/
Django Version: 1.10.7
Exception Type: UnicodeDecodeError
Exception Value:
'ascii' codec can't decode byte 0xe2 in position 63097: ordinal not in range(128)
Exception Location: /usr/lib/python3.5/encodings/ascii.py in decode, line 26
Python Executable: /usr/bin/python3
Python Version: 3.5.3
Python Path:
['/usr/share/openstack-dashboard',
'/usr/lib/python35.zip',
'/usr/lib/python3.5',
'/usr/lib/python3.5/plat-x86_64-linux-gnu',
'/usr/lib/python3.5/lib-dynload',
'/usr/local/lib/python3.5/dist-packages',
'/usr/lib/python3/dist-packages',
'/usr/share/openstack-dashboard/',
'/usr/share/openstack-dashboard/openstack_dashboard']
Server time: Thu, 10 Jan 2019 16:38:25 +0000
Error during template rendering
In template /usr/lib/python3/dist-packages/horizon/templates/auth/login.html, error at line 0
Above error is causing three dot in >>
openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html: <p translate>One fine body…</p>
openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html: <p translate>One small body…</p>
openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html: <p translate>One tiny body…</p>
openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html: <p translate>One large body…</p>
openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html: <p translate>One super large body…</p>
2. Horizon missing fields in list_traces function , bad calling
engine.list_traces:
-fields = ['base_id', 'timestamp', 'info.request.path']
+fields = ['base_id', 'timestamp', 'info.request.path', 'info']
-traces = engine.list_traces(query, fields)
+traces = engine.list_traces(fields)
3. Horizon python3 binary issue :
TypeError at /project/
b'eyJobWFjX2tleSI6ICJzZWNyZXQiLCAicGFyZW50X2lkIjogIjQ2MzlmNDQzLTk5ODgtNDUwNy1hODkzLWZkZGI2NGU5MGM2YiIsICJiYXNlX2lkIjogImVkYTgyMDFlLWQxYzctNGYyNS04YTQ5LTMxN2QxNGE3ZGNlNSJ9' is not JSON serializable
Osprofiler bug report >>
https://bugs.launchpad.net/osprofiler/+bug/1811260
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1811261/+subscriptions
References