load_paste_app Doesn't provide a traceback

Bug #1004062 reported by Jason Kölker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Jason Kölker

Bug Description

  In quantum/common/config.py

  316 try:
  317 app = deploy.loadapp("config:%s" % conf_file, name=app_name)
  318 except (LookupError, ImportError), e:
  319 raise RuntimeError("Unable to load %(app_name)s from "
  320 "configuration file %(conf_file)s."
  321 "\nGot: %(e)r" % locals())
  322 return conf, app

Logging of 'e' in a string causes only the __str__ representation to be reported. This makes it almost impossible to track down where the issue is coming from. LOG.exception should be used so the traceback is logged.

Changed in quantum:
assignee: nobody → Jason Kölker (jason-koelker)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

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

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

Reviewed: https://review.openstack.org/7761
Committed: http://github.com/openstack/quantum/commit/686982198c146e7c982da175532eeabbd6379a60
Submitter: Jenkins
Branch: master

commit 686982198c146e7c982da175532eeabbd6379a60
Author: Jason Kölker <email address hidden>
Date: Thu May 24 12:17:21 2012 -0500

    Log the exception so app loading issues can be debuged

    * Fixes LP1004062

    Change-Id: Iae04f2789fe310a52550354463fe109c13e8ceeb

Changed in quantum:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (stable/essex)

Fix proposed to branch: stable/essex
Review: https://review.openstack.org/7969

Thierry Carrez (ttx)
Changed in quantum:
milestone: none → folsom-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-2 → 2012.2
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.