Public bug reported: 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 ** Affects: horizon Importance: Undecided Assignee: Michal Arbet (michalarbet) Status: In Progress ** Changed in: horizon Assignee: (unassigned) => Michal Arbet (michalarbet) ** Changed in: horizon Status: New => In Progress -- 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): In Progress 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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

