OpenStack automatic Nova image cache cleanup after instance deletion

This document (7022911) is provided subject to the disclaimer at the end of this document.


SUSE OpenStack Cloud 6
SUSE OpenStack Cloud 7


When booting an instance directly from image, the image will be copied over from storage back-end onto a compute node
under /var/lib/nova/instances/_base. But after deleting the instance image is not deleted from compute node, which can cause
compute node to run out of disk space.


Create the following file on all compute and controller nodes:

root@d52-54-00-60-61-91:~ # cat /etc/nova/nova.conf.d/500-nova.conf 
remove_unused_base_images = True
image_cache_manager_interval = 10
remove_unused_original_minimum_age_seconds = 10
remove_unused_resized_minimum_age_seconds = 10

In this example, Nova checks every 10 seconds if there's an image  that hasn't been accessed in 10 seconds and deletes it.
More information about custom configuration files:

On admin node run 'crowbarctl proposal list nova' to get name of Nova proposal. By default its name is "default". Then apply Nova barclamp with 'crowbarctl proposal commit nova default' or if you prefer crowbar UI, go to crowbar dashboard -> Barclamps -> OpenStack -> Nova -> Apply


Nova saves a copy of the image in /var/lib/nova/instances/_base on a compute node. By default these base images are not being removed.


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7022911
  • Creation Date: 02-May-2018
  • Modified Date:03-Mar-2020
    • SUSE Open Stack Cloud

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact:

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center