Internal file cache breaks with unicode keys
Bug #1492205 reported by
Florian Fuchs
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-ironicclient |
Fix Released
|
Undecided
|
SHIGEMATSU Mitsuhiro |
Bug Description
ironicclient uses an internal file cache (dogpile.cache), with bdm as backend -- which in py2 uses the bsddb package from the standardlib. However, bsddb doesn't accept unicode as keys and raises a TypeError. For example if the ironic_url argument passed to client.get_client is a unicode string, which is then used as part of the cache key).
Proposed fix:
dogpile.cache provides a "key_mangler" config param to use in combination with the bsddb backend which solves this issue.
Changed in python-ironicclient: | |
assignee: | nobody → Florian Fuchs (flo-fuchs) |
assignee: | Florian Fuchs (flo-fuchs) → nobody |
assignee: | nobody → Florian Fuchs (flo-fuchs) |
status: | New → In Progress |
description: | updated |
Changed in python-ironicclient: | |
assignee: | Florian Fuchs (flo-fuchs) → SHIGEMATSU Mitsuhiro (pshige) |
Changed in python-ironicclient: | |
milestone: | none → 0.8.1 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/220475
Review: https:/