]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
nuke: cleanup stale OpenStack resources 723/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 27 Nov 2015 20:41:57 +0000 (21:41 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 1 Dec 2015 11:25:07 +0000 (12:25 +0100)
commit3ceeba21389da780951940edb3e5095b66491e14
tree3c346b5cbcda2bd88c9952c365eafbc07a38f338
parent4ad59b352a23db64983a7ed5c206f3d65f61bfea
nuke: cleanup stale OpenStack resources

Implement the --stale-openstack action to cleanup OpenStack resources
that are known to be stale because:

* instances or volumes have been created a long time ago
* instances or volumes with REMOVE-ME in the name
* nodes that are locked but did not get an instance

Only the instances and volumes known to belong to the teuthology cluster
because they have ownedby=IP in the name are considered, where IP is the
IP address of the machine running the teuthology clusters.

Signed-off-by: Loic Dachary <loic@dachary.org>
scripts/nuke.py
teuthology/nuke.py
teuthology/test/test_nuke.py [new file with mode: 0644]