kubespray/scripts/openstack-cleanup
k8s-infra-cherrypick-robot bd80766aca
fix openstack cleanup (#11410)
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
Co-authored-by: Kay Yan <kay.yan@daocloud.io>
2024-08-09 02:21:44 -07:00
..
2024-08-09 02:21:44 -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