[nailgun] Unreadable traceback on 500 Internal Error

Bug #1399192 reported by deactivateduser
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Nikolay Markov
6.0.x
Invalid
Undecided
Unassigned

Bug Description

After application fails with 500 Internal Error during unit tests execution an unreadable traceback is shown. It contains a text with hypertext markup which is hard to explore.
Expecting to get something readable like:

<type 'exceptions.AttributeError'> at /settings/
type object 'MagicMock' has no attribute 'settings'
Python /home/stack/fuel-web/nailgun/nailgun/objects/serializers/base.py in serialize, line 32

Actual result(last lines omitted):

E AppError: Bad response: 500 Internal Server Error (not 200 OK or 3xx redirect for http://localhost/api/settings/)
E '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html lang="en">\n<head>\n <meta http-equiv="content-type" content="text/html; charset=utf-8" />\n <meta name="robots" content="NONE,NOARCHIVE" />\n <title>&lt;type &#39;exceptions.AttributeError&#39;&gt; at /settings/</title>\n <style type="text/css">\n html * { padding:0; margin:0; }\n body * { padding:10px 20px; }\n body * * { padding:0; }\n body { font:small sans-serif; }\n body>div { border-bottom:1px solid #ddd; }\n h1 { font-weight:normal; }\n h2 { margin-bottom:.8em; }\n h2 span { font-size:80%; color:#666; font-weight:normal; }\n h3 { margin:1em 0 .5em 0; }\n h4 { margin:0 0 .5em 0; font-weight: normal; }\n table { \n border:1px solid #ccc; border-collapse: collapse; background:white; }\n tbody td, tbody th { vertical-align:top; padding:2px 3px; }\n thead th { \n padding:1px 6px 1px 3px; background:#fefefe; text-align:left; \n font-weight:normal; font-size:11px; border:1px solid #ddd; }\n tbody th { text-align:right; color:#666; padding-right:.5em; }\n table.vars { margin:5px 0 2px 40px; }\n table.vars td, table.req td { font-family:monospace; }\n table td.code { width:100%;}\n table td.code div { overflow:hidden; }\n table.source th { color:#666; }\n table.source td { \n font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }\n ul.traceback { list-style-type:none; }\n'

summary: - [nailgun] Unreadable traceback when 500 Internal Error occurs
+ [nailgun] Unreadable traceback on 500 Internal Error
Changed in fuel:
status: New → Confirmed
Revision history for this message
Nikolay Markov (nmarkov) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Nikolay Markov (nmarkov)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/153608
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=505ae0cf446393d6e642040c4919d33c89fff0ab
Submitter: Jenkins
Branch: master

commit 505ae0cf446393d6e642040c4919d33c89fff0ab
Author: Nikolay Markov <email address hidden>
Date: Fri Feb 6 18:52:48 2015 +0300

    Non-default exceptions are now text, not big HTML

    Closes-Bug: #1399192

    Change-Id: I7c6c6164e926043a331bb250ff938a4f405e9538

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
no longer affects: fuel/5.1.x
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.