]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
cleanup-run.sh: <owner> <run name>
authorSage Weil <sage@inktank.com>
Mon, 18 Feb 2013 21:14:59 +0000 (13:14 -0800)
committerSage Weil <sage@inktank.com>
Mon, 18 Feb 2013 21:39:06 +0000 (13:39 -0800)
Sloppy... this assumes the run is in the description as the archive dir.

Signed-off-by: Sage Weil <sage@inktank.com>
cleanup-run.sh [new file with mode: 0755]

diff --git a/cleanup-run.sh b/cleanup-run.sh
new file mode 100755 (executable)
index 0000000..21bfded
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -ex
+
+teuthology-lock --list-targets --owner $1 --desc-pattern /$2/ --status up > /tmp/$$
+teuthology-nuke --unlock -t /tmp/$$ -r --owner $1
+rm /tmp/$$
+