]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
add cleanup-user.sh script
authorSage Weil <sage@newdream.net>
Thu, 28 Jun 2012 18:14:15 +0000 (11:14 -0700)
committerSage Weil <sage@newdream.net>
Thu, 28 Jun 2012 18:14:24 +0000 (11:14 -0700)
big hammer, use with care

cleanup-user.sh [new file with mode: 0755]

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