-
Committer:
Tarmac
-
Author(s):
Jason Kölker
-
Date:
2011-07-23 05:13:59 UTC
-
mfrom:
(139.4.46)
-
Revision ID:
git-v1:8e9b9e574f0871802153afa0adcc01177fff9b2a
Allow delaying the actual deletion of an image.
If glance-api.conf has delayed_delete set to False or not set at all (it defaults to False) immediatly delete the image. If delayed_delete is set to True glance-api sets the status to pending_delete but does not call the backend delete. From the user's point of view it is actually deleted, and future calls will 404.
A new daemon glance-scrubber is introduced which looks for pending_delete images that are older than a configurable interval and will actually delete from the backend the images.