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 7
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.
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
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
For questions or concerns with the SUSE Knowledgebase please contact: firstname.lastname@example.org