Swift caching in auth_token.py throws error
Bug #905422 reported by
Liem Nguyen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Liem Nguyen |
Bug Description
In auth_token.py, there are 2 separate logics for caching (one for standard memcache clients and one for Swift memcache). In _cache_put, we use time.time() for expiry for Swift; in _cache_get we use datetime.now() for comparing the expiry, resulting in an error get getting from cache:
unsupported operand type(s) for -: 'datetime.datetime' and 'float'
Changed in keystone: | |
assignee: | nobody → Liem Nguyen (liemmn) |
Changed in keystone: | |
status: | New → In Progress |
Changed in keystone: | |
milestone: | none → essex-3 |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | essex-3 → 2012.1 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/2439 github. com/openstack/ keystone/ commit/ 8f63921f4ddb8fb bfc0edcd573f59c dcc3042da5
Committed: http://
Submitter: Jenkins
Branch: master
commit 8f63921f4ddb8fb bfc0edcd573f59c dcc3042da5
Author: Liem Nguyen <email address hidden>
Date: Fri Dec 16 10:59:55 2011 -0800
Fixed bug 905422.
Swift caching should work again. Also fixed a few other minor
syntactical stuff.
Change-Id: I76eb0ed283dd8d 2726179803e2fd8 b9eaa6d1642