mirror of
https://github.com/ceph/ceph
synced 2024-12-23 20:03:56 +00:00
50331e0478
Signed-off-by: Sage Weil <sage@inktank.com>
8 lines
310 B
Bash
Executable File
8 lines
310 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
owner=`teuthology-lock -a --list --desc-pattern /$1/ --status up | grep locked_by | head -1 | awk '{print $2}' | sed 's/"//g' | sed 's/,//'`
|
|
teuthology-lock --list-targets --desc-pattern /$1/ --status up --owner $owner > /tmp/$$
|
|
teuthology-nuke --unlock -t /tmp/$$ -r --owner $owner
|
|
rm /tmp/$$
|
|
|