xenapi: cached images should be cleaned up by time
Bug #1481689 reported by
Sulochan Acharya
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Wishlist
|
Stephen Finucane |
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.
Changed in nova: | |
assignee: | nobody → Sulochan Acharya (sulochan-acharya) |
Changed in nova: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
tags: | added: xenserver |
Changed in nova: | |
assignee: | nobody → Jianghua Wang (wjh-fresh) |
status: | Confirmed → In Progress |
Changed in nova: | |
assignee: | Jianghua Wang (wjh-fresh) → Naichuan Sun (naichuans) |
no longer affects: | os-xenapi |
Changed in nova: | |
assignee: | Naichuan Sun (naichuans) → Jianghua Wang (wjh-fresh) |
Changed in nova: | |
assignee: | Jianghua Wang (wjh-fresh) → Naichuan Sun (naichuans) |
Changed in nova: | |
assignee: | Naichuan Sun (naichuans) → Stephen Finucane (stephenfinucane) |
To post a comment you must log in.
It's been a while since this bug was assigned and no patch was submitted. Moving it to unassigned.
Sulochan Acharya, please reassign yourself if you are working on this.