c12s-kubespray/scripts/openstack-cleanup
2020-06-26 00:03:39 -07:00
..
.gitignore Add automatic cleanup of OpenStack CI VMs (#5760) 2020-03-12 15:12:39 -07:00
main.py Cleanup OpenStack network things (#6283) 2020-06-26 00:03:39 -07:00
README.md Add documentation for scripts/openstack-cleanup (#5803) 2020-03-20 13:18:06 -07:00
requirements.txt Add automatic cleanup of OpenStack CI VMs (#5760) 2020-03-12 15:12:39 -07:00

openstack-cleanup

Tool to deletes openstack servers older than a specific age (default 4h).

Useful to cleanup orphan servers that are left behind when CI is manually cancelled or fails unexpectedly.

Installation

pip install -r requirements.txt
python main.py --help

Usage

$ python main.py
This will delete VMs... (ctrl+c to cancel)
Will delete server example1
Will delete server example2