Exception messages don't get displayed correctly in test suite

Bug #860666 reported by Johannes Erdfelt on 2011-09-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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
  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

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

 status fixcommitted

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) on 2011-11-09
Changed in nova:
milestone: none → essex-1
Thierry Carrez (ttx) on 2011-11-17
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-1 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers