HyperV driver does not implement Image cache ageing

Bug #1346857 reported by Sagar Ratnakara Nikam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Claudiu Belu

Bug Description

Nova.conf has the following options for image cache ageing
remove_unused_base_images
remove_unused_original_minimum_age_seconds.

If these conf values are enabled, older un-used images cached on the hypervisor hosts will be deleted by nova-compute.
The driver should implement the defn manage_image_cache
and this will be called by compute.manager._run_image_cache_manager_pass().

The HyperV driver does not implement manage_image_cache() which means older unused images (VHD/VHDFx) will never get deleted and occupy storage on the HyperV host, which otherwise can be used to spawn instances.

Tags: hyper-v
Revision history for this message
Alessandro Pilotti (alexpilotti) wrote :

We currently use a script to periodically delete unused base images: https://github.com/cloudbase/nova-images-cache-cleanup
but we definitely need to implement this feature in the driver.

Thanks

Changed in nova:
status: New → Triaged
Changed in nova:
importance: Undecided → Low
Sean Dague (sdague)
Changed in nova:
status: Triaged → Confirmed
importance: Low → Wishlist
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

This wishlist bug has been open a year without any activity. I'm going to move it to "Opinion / Wishlist", which is an easily-obtainable queue of older requests that have come on.

In case you want to work on that, consider writing a blueprints [1] and spec [2]. I'll recommend to read [3] if not yet done. The effort to implement the requested feature is then driven only by the blueprint (and spec).

References:
[1] https://blueprints.launchpad.net/nova/
[2] https://github.com/openstack/nova-specs
[3] https://wiki.openstack.org/wiki/Blueprints

Changed in nova:
status: Confirmed → Opinion
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

It seems that bp [1] intends to offer that functionality.

References:
[1] https://blueprints.launchpad.net/nova/+spec/hyper-v-imagecache-cleanup

Changed in nova:
assignee: nobody → Claudiu Belu (cbelu)
status: Opinion → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/192618
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=df499b55522ced1efd3006a394e80a7bf794c4e4
Submitter: Jenkins
Branch: master

commit df499b55522ced1efd3006a394e80a7bf794c4e4
Author: Adelina Tuvenie <email address hidden>
Date: Wed Jun 17 03:19:10 2015 -0700

    Adds Hyper-V imagecache cleanup

    At the moment the Hyper-V driver's imagecache only deals with caching
    the images in _base.

    This blueprint will deal with implementing imagecache management that will
    allow the aging and deletion of cached images that are no longer in use.

    Co-Authored-By: Claudiu Belu <email address hidden>

    Implements blueprint: hyper-v-imagecache-cleanup
    Closes-Bug: #1346857

    Change-Id: I94ee60ed301f18298ae14239190218b9ef54e575

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/nova 14.0.0.0b1

This issue was fixed in the openstack/nova 14.0.0.0b1 development milestone.

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.