yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #68807
[Bug 1481689] Re: xenapi: cached images should be cleaned up by time
Reviewed: https://review.openstack.org/465954
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=693ace79fbf856967684f11dfd7663d465dbe19a
Submitter: Zuul
Branch: master
commit 693ace79fbf856967684f11dfd7663d465dbe19a
Author: naichuans <naichuan.sun@xxxxxxxxxx>
Date: Thu May 18 13:01:06 2017 +0000
xenapi: cached images should be cleaned up by time
For xenapi driver, there needs to be some way to delete cached
images based on when they were created. add an optional arg to
control delete operation.
Change-Id: I24fc45e989aa951aab55a261fce77f7e3667d988
Closes-bug: 1481689
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1481689
Title:
xenapi: cached images should be cleaned up by time
Status in OpenStack Compute (nova):
Fix Released
Bug description:
For xenapi driver, there needs to be some way to delete cached images
based on when they were created.
Here is a use case:
Operators often change images frequently for updates etc, if an image has cache_in_nova flag set, xapi will cache it in the SR.
However, the cleanup method, can only handle cleanup of cache that are not used (which is fair enough) but a lot of the times we don't want to clean new images even when they are not used, so there needs to be a way to delete image based on when they were cached.
One approach, for example, could be that we set created timestamp on
the image, and be able to delete images depending on when they were
cached etc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1481689/+subscriptions
References