Deleted image stays in cache

Bug #1083070 reported by Unmesh Gurjar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Unmesh Gurjar
Grizzly
Fix Released
Medium
Unmesh Gurjar

Bug Description

Branch: master

Environment Details:
Glance paste deploy flavor: keystone+cachemanagement

Steps to repro:
1. Upload a large image (around 1G).
2. Once the image is active, simultaneously send GET and DELETE request for the image uploaded in #1 above.
3. Verify in the Glance image cache directory that the image is deleted.

Expected Behavior:
Image should be deleted from the cache.

Actual Behavior:
Image persists in the cache.

Side effect:
Admin user is able to download such deleted image (bug #1081941).

Tags: ntt
Changed in glance:
assignee: nobody → Unmesh Gurjar (unmesh-gurjar)
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/16887

Changed in glance:
status: New → In Progress
Changed in glance:
milestone: none → grizzly-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/16887
Committed: http://github.com/openstack/glance/commit/8eca4fd08b5c4071f66dedc44bf2ea54f17a1828
Submitter: Jenkins
Branch: master

commit 8eca4fd08b5c4071f66dedc44bf2ea54f17a1828
Author: Unmesh Gurjar <email address hidden>
Date: Mon Nov 26 03:14:00 2012 -0800

    Fixed image not getting deleted from cache.

    When an image is being added to cache and a DELETE request for same
    image arrives, the image remains in the 'cache' directory forever.
    Also, admin user is able to download such image. Cleaned up the
    deleted image from cache to resolve the issue permanently.

    Fixes LP: #1083070

    Change-Id: Id2b11d21b8ccecb1037eb6341ffd24a3c2e1833c

Changed in glance:
status: In Progress → Fix Committed
Changed in glance:
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
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.