Unhandled exception KeyError: 'e' appears when keystone fails to load config file.

Bug #863004 reported by Yasuto Nishii
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Dolph Mathews

Bug Description

When keyston is starting, KeyError: 'e' displays instead of the well formed error.

"keystone/common/config.py ": load_paste_app is trying to handle the exception but local value %(e) is not defined.
Then KeyError: 'e' occurs.

Just add 'e' after except works for me like this.
=> except (LookupError, ImportError), e:

-------------------------------------------------
except (LookupError, ImportError):
 raise RuntimeError("Unable to load %(app_name)s from "
                    "configuration file %(conf_file)s."
                    "\nGot: %(e)r" % locals())
-------------------------------------------------

Revision history for this message
Dolph Mathews (dolph) wrote :

Fixed in cc476c9d2a859aa8d541d5aa99752807f3fe443f

Changed in keystone:
importance: Undecided → Low
status: New → Fix Committed
assignee: nobody → Dolph Mathews (dolph)
Joe Savak (jsavak)
tags: added: diablo-backport
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → essex-1
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
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.