From ba0fb3ed87b626e8e17d5929f5ac6fe3050db6a1 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 4 Apr 2012 13:56:10 -0700 Subject: [PATCH] cleanup-and-unlock.sh: helper to nuke and then unlock a set of nodes I usually do something like teuthology-lock --list-targets --owner scheduled_sage@metropolis > /tmp/b ./cleanup-and-unlock.sh /tmp/b scheduled_sage@metropolis It's a huge headache when some of the nodes are down, though. A better thing would be if nuke had an --unlock option, and would continue with the nodes that didn't error out. But, this is still useful as is. --- cleanup-and-unlock.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 cleanup-and-unlock.sh diff --git a/cleanup-and-unlock.sh b/cleanup-and-unlock.sh new file mode 100755 index 0000000000..7b30a2b024 --- /dev/null +++ b/cleanup-and-unlock.sh @@ -0,0 +1,4 @@ +#!/bin/sh -ex + +bin/teuthology-nuke -t $1 -r --owner $2 +bin/teuthology-lock --unlock -t $1 --owner $2 -- 2.39.5