]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-helpers: Delete remaining subvolumes on destroy_osd()
authorErwan Velu <erwan@redhat.com>
Thu, 25 Feb 2016 15:01:24 +0000 (16:01 +0100)
committerErwan Velu <erwan@redhat.com>
Thu, 25 Feb 2016 15:46:49 +0000 (16:46 +0100)
Before deleting $dir/$id, we have to delete the associated subvolumes unless the
rm will fail.

Signed-off-by: Erwan Velu <erwan@redhat.com>
qa/workunits/ceph-helpers.sh

index d53837edb97cd7ba1750ea785e897e17b60bc5b0..759da393293350edce8f899b25019bec0b8ea09e 100755 (executable)
@@ -471,6 +471,7 @@ function destroy_osd() {
     ceph auth del osd.$id || return 1
     ceph osd crush remove osd.$id || return 1
     ceph osd rm $id || return 1
+    teardown $dir/$id || return 1
     rm -fr $dir/$id
 }