real exceptions get eaten when processing api resources

Bug #942431 reported by Chris Behrens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Chris Behrens

Bug Description

2012-02-28 07:04:29 ERROR nova.api.openstack.wsgi [req-e67384e8-91c2-49ef-ad7b-18e4f84aa9d2 cbehrens openstack] 'NoneType' object is unsubscriptable
(nova.api.openstack.wsgi): TRACE: Traceback (most recent call last):
(nova.api.openstack.wsgi): TRACE: File "/usr/local/lib/python2.6/dist-packages/routes/middleware.py", line 52, in __call__
(nova.api.openstack.wsgi): TRACE: qs = environ['QUERY_STRING']
(nova.api.openstack.wsgi): TRACE: KeyError: 'QUERY_STRING'

Bugs in other areas of the API (like when getting exceptions in the view builder) cause exceptions like the above which are very cryptic and impossible to debug.

Chris Behrens (cbehrens)
Changed in nova:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Chris Behrens (cbehrens)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/4620
Committed: http://github.com/openstack/nova/commit/fab893f333fa80567ef12f6817d52459b28c84a4
Submitter: Jenkins
Branch: master

commit fab893f333fa80567ef12f6817d52459b28c84a4
Author: Chris Behrens <email address hidden>
Date: Tue Feb 28 07:34:08 2012 +0000

    TypeError API exceptions get logged incorrectly

    Fixes bug 942431

    LOG.exception() always logs sys.exc_info() which does not always
    represent the real exception we want to log. This changes the wsgi
    ResourceExceptionHandler context manager to LOG.error() the traeback
    info that's passed to __exit__()

    Change-Id: I0c3728a9ee740597feb828a513aea76e7849efc6

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-4
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-4 → 2012.1
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.