c0d1bb1a5c
The tf-elastx_cleanup test job was failed with error message: Port xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx cannot be deleted directly via the port API: has device owner network:router_interface. That means necessary to remove a subnet from the router before deleting the port. This adds a method to removes a subnet from the router automatically. |
||
---|---|---|
.. | ||
.gitignore | ||
README.md | ||
main.py | ||
requirements.txt |
README.md
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