Swift caching in auth_token.py throws error

Bug #905422 reported by Liem Nguyen
14
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'

Liem Nguyen (liemmn)
Changed in keystone:
assignee: nobody → Liem Nguyen (liemmn)
Liem Nguyen (liemmn)
Changed in keystone:
status: New → In Progress
Changed in keystone:
milestone: none → essex-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/2439
Committed: http://github.com/openstack/keystone/commit/8f63921f4ddb8fbbfc0edcd573f59cdcc3042da5
Submitter: Jenkins
Branch: master

commit 8f63921f4ddb8fbbfc0edcd573f59cdcc3042da5
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: I76eb0ed283dd8d2726179803e2fd8b9eaa6d1642

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-3 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.