c14d9c5c97
To fix tf-elastx_cleanup job which was failed with the following error: File "/usr/local/lib/python3.11/site-packages/keystoneauth1/identity/generic/password.py", line 16, in <module> from keystoneauth1.identity import v3 File "/usr/local/lib/python3.11/site-packages/keystoneauth1/identity/v3/__init__.py", line 27, in <module> from keystoneauth1.identity.v3.oauth2_mtls_client_credential import * # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/keystoneauth1/identity/v3/oauth2_mtls_client_credential.py", line 17, in <module> import six ModuleNotFoundError: No module named 'six' |
||
---|---|---|
.. | ||
.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