kubespray/scripts/openstack-cleanup
Max Gautier a1ec88e290
openstack-cleanup: delete old keypairs as well (#12833)
* openstack-cleanup: format and logging

* openstack-cleanup: delete old keypairs as well
2026-01-05 17:42:37 +05:30
..

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