Project

General

Profile

Feature #18481

Delayed image deletion

Added by Jason Dillaman 8 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
01/10/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
User Impact:
Affected Versions:
Release:
Needs Doc:
No

Description

Optionally support delaying an image's deletion for a configurable amount of time. This would involve renaming the image and listing it within a "pending deleted image" / recycle bin directory (to avoid throwing false EEXISTS errors if an image w/ the same name is recreated).

This technique could be used to permit the deletion of parent images that still have associated children until the last child is flattened or deleted. It would also be useful for rbd-mirror daemon to handle deletions of parent images where a non-replicated image is linked as a child.

History

#1 Updated by Ricardo Dias 8 months ago

  • Assignee set to Ricardo Dias

#2 Updated by Ricardo Dias 8 months ago

Jason Dillaman wrote:

This technique could be used to permit the deletion of parent images that still have associated children until the last child is flattened or deleted. It would also be useful for rbd-mirror daemon to handle deletions of parent images where a non-replicated image is linked as a child.

In the description the objective of this feature is to delay the deletion for an "amount of time", but in the case you mention above it looks that what you want is to delay the deletion of the parent until the last child disappears.
Should we support both cases, either delay by an amount of time or delay until the last child is removed?

Also, regarding the rbd-mirror daemon I can understand the necessity of this new operation, but in which other scenario one would try to delete the parent image before deleting the child images?

#3 Updated by Jason Dillaman 8 months ago

Yes, both case. In regards to deleting the parent, it's actually a common thing that people have developed a lot of workarounds to support. In OpenStack, for example, an attempt to delete a glance image or cinder volume results in flattening and renaming of image and all sorts of other workarounds.

#4 Updated by Ricardo Dias 8 months ago

Design document for this feature can be found in

http://pad.ceph.com/p/librd_image_deletion_delay

#5 Updated by Jason Dillaman 8 months ago

  • Status changed from New to In Progress

#6 Updated by Jason Dillaman 5 months ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF