xattr cache driver returns iso8601 format timestamps

Bug #1197360 reported by Paul Bourke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Paul Bourke

Bug Description

The xattr driver for the caching middleware is returning it's last_modified/last_accessed times in iso8601 format rather than a timestamp.

This is inconsistent with the sqlite driver and causing the glance-cache-manage command to fall over when using the xattr driver:

"""
ubuntu@devstack:/opt/stack/glance$ glance-cache-manage list-cached
Found 4 cached images...
ID Last Accessed (UTC) Last Modified (UTC) Size Hits
------------------------------------ ------------------- ------------------- -------------- ----------
Failed to show cached images. Got error:
a float is required
"""

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/35474

Changed in glance:
assignee: nobody → Paul Bourke (pauldbourke)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/35474
Committed: http://github.com/openstack/glance/commit/fd9b4cd43d5533dd8051cf68d1b27cf70cd2f3cd
Submitter: Jenkins
Branch: master

commit fd9b4cd43d5533dd8051cf68d1b27cf70cd2f3cd
Author: Paul Bourke <email address hidden>
Date: Tue Jul 2 18:21:17 2013 +0000

    Fix 'glance-cache-manage list-cached' for xattr

    The xattr driver for the caching middleware was returning it's
    last_modified/last_accessed times in iso8601 format rather than a
    timestamp.

    This was inconsistent with the sqlite driver and caused the
    glance-cache-manage command to fall over when using the xattr driver.

    Fixes bug 1197360

    Change-Id: Ie72dcd9f41f7a3b7405cda9fe28e1e468fcc1bef

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: havana-3 → 2013.2
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.