Image delete calls slow due to synchronous wait on backend store delete

Bug #1316234 reported by Nikhil Komawar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Won't Fix
Undecided
Jesse J. Cook

Bug Description

Issue:-
-----------
Currently, the image delete calls can be very slow if the image being delete is large (consisting of multiple chunks esp. in case of swift) or if the backend store has slow response time.

Solution:-
-----------------
Make image delete call asynchronous

Specifically, for v1, call on this line https://github.com/openstack/glance/blob/master/glance/api/v1/images.py#L1012

and for v2, waiting on a fix for the bug https://bugs.launchpad.net/glance/+bug/1316233 to enable asynchronous deletion of image data from the store.

Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :

IMO, for this case, end user should think about using delayed_delet function with scrubber service. It was just designed for this requirement.

Changed in glance:
assignee: nobody → Jesse J. Cook (jesse-j-cook)
Changed in glance:
status: New → In Progress
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/118459

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (master)

Change abandoned by Jesse J. Cook (<email address hidden>) on branch: master
Review: https://review.openstack.org/118459
Reason: https://review.openstack.org/#/c/125156/

Revision history for this message
Jesse J. Cook (jesse-j-cook) wrote :

"""
IMO, for this case, end user should think about using delayed_delet function with scrubber service. It was just designed for this requirement.
"""

The scrubber does handle asynchronous deletes. However, there are some enhancements that could be done to make it a more viable option: https://review.openstack.org/#/c/125156/

This should probably be marked won't fix.

Changed in glance:
status: In Progress → Won't Fix
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.