https://github.com/quobyte/cleanup_nova_cache
python script for removing unused images from the OpenStack Nova image cache.
https://github.com/quobyte/cleanup_nova_cache
Last synced: about 1 month ago
JSON representation
python script for removing unused images from the OpenStack Nova image cache.
- Host: GitHub
- URL: https://github.com/quobyte/cleanup_nova_cache
- Owner: quobyte
- License: bsd-2-clause
- Created: 2017-05-02T13:18:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T09:40:25.000Z (over 7 years ago)
- Last Synced: 2025-02-25T03:31:26.766Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenStack Nova Image Cache Cleanup Script
This script can be run to remove old and unused images from the Nova base image
cache. This is helpful if Nova is configured with:
remove_unused_base_images = False
This is sometimes used if Nova ephemeral images are stored in a shared
filesystem, in order to prevent different Nova hosts from interfering with
each others base images. Usage:
usage: cleanup_nova_cache.py [-h] [-s STATEPATH] [-i INSTANCESNAME]
[-c CACHENAME] [-r] [-a AGE] [-v] [-d]
Lists and optionally removes unused and aged base images from Novas image
cache on a shared file system.
optional arguments:
-h, --help show this help message and exit
-s STATEPATH, --statepath STATEPATH
path of the Nova state
-i INSTANCESNAME, --instancesname INSTANCESNAME
name of the instances directory
-c CACHENAME, --cachename CACHENAME
name of the image cache directory
-r, --readconfig read path data from the nova.conf file
-a AGE, --age AGE minimum file age in seconds
-v, --verbose provide logging output during operation
-d, --delete explicitly delete unused images.