eventlet backdoor doesn't always play nicely with gettext
Bug #1010236 reported by
Johannes Erdfelt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Johannes Erdfelt |
Bug Description
When using the eventlet backdoor for troubleshooting, it can sometimes interfere with the global _ symbol that gettext installs. It can often manifest itself as an exception similar to this:
TypeError: 'dict' object is not callable
With the type varying.
The problem is the default sys.displayhook function. It will take the return value of the last expression, print it and then set it to __builtin__._, which is also the variable that gettext sets to allow _() to be used to internationalize strings.
An attempt to workaround the problem was implemented, but it does not always work.
The fix is to implement a new sys.displayhook that plays nicer with gettext.
Changed in nova: | |
assignee: | nobody → Johannes Erdfelt (johannes.erdfelt) |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → folsom-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-2 → 2012.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/8314
Review: https:/