Exception messages don't get displayed correctly in test suite

Bug #860666 reported by Johannes Erdfelt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Johannes Erdfelt

Bug Description

During the test suite, exception messages aren't displayed as formatted correctly. As an example:

======================================================================
ERROR: test_namespace_servers (nova.tests.integrated.test_xml.XmlTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/workspace/nova/nova/tests/integrated/integrated_helpers.py", line 78, in setUp
    self._start_api_service()
  File "/home/jenkins/workspace/nova/nova/tests/integrated/integrated_helpers.py", line 83, in _start_api_service
    osapi = service.WSGIService("osapi")
  File "/home/jenkins/workspace/nova/nova/service.py", line 294, in __init__
    self.app = self.loader.load_app(name)
  File "/home/jenkins/workspace/nova/nova/wsgi.py", line 414, in load_app
    raise exception.PasteAppNotFound(name=name, path=self.config_path)
PasteAppNotFound: Could not load paste app '%(name)s' from %(path)s

Changed in nova:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
Changed in nova:
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : A change has been merged to openstack/nova

Reviewed: https://review.openstack.org/709
Committed: http://github.com/openstack/nova/commit/82bef282c93a574ee5cfb2b34e0d8c077c2a7efe
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 82bef282c93a574ee5cfb2b34e0d8c077c2a7efe
Author: Johannes Erdfelt <email address hidden>
Date: Wed Sep 28 15:01:27 2011 +0000

    Accept message as sole argument to NovaException

    Fixes bug 860666

    Python nose will sometimes recreate an exception to add captured log
    information to the string representation of the exception. It assumes
    that it can do this by reinstantiating the class of the originally
    triggered exception with one argument, a new string description.
    NovaException, and some child classes, didn't work well with this
    scheme and would result in a further exception during formatting, which
    would result in an unformatted string being displayed.

    Change-Id: I7152cb7809fa1deb3986c127370f670fb2da342d

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