From 57768f2583fceedb7167f5b89d429b9409e55f4c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 19 Feb 2020 21:40:07 -0500 Subject: [PATCH] Remove an obsolete script --- node-daemon/pvcnoded/fixrbdlocks | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 node-daemon/pvcnoded/fixrbdlocks diff --git a/node-daemon/pvcnoded/fixrbdlocks b/node-daemon/pvcnoded/fixrbdlocks deleted file mode 100755 index ad9b9da5..00000000 --- a/node-daemon/pvcnoded/fixrbdlocks +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -for disk in $( sudo rbd list ${BLSE_STORAGE_POOL_VM} | grep "^${vm}" ); do - echo -e " Disk: $disk" - locks="$( sudo rbd lock list ${BLSE_STORAGE_POOL_VM}/${disk} | grep '^client' )" - echo "${locks}" - if [[ -n "${locks}" ]]; then - echo -e " LOCK FOUND! Clearing." - locker="$( awk '{ print $1 }' <<<"${locks}" )" - id="$( awk '{ print $2" "$3 }' <<<"${locks}" )" - sudo rbd lock remove ${BLSE_STORAGE_POOL_VM}/${disk} "${id}" "${locker}" - fi -done