]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
task/workunit: add sudo to dir delete
authorJohn Spray <jspray@redhat.com>
Sat, 26 Jul 2014 20:31:54 +0000 (21:31 +0100)
committerZack Cerza <zack@redhat.com>
Mon, 2 Nov 2015 18:23:42 +0000 (11:23 -0700)
This failure to delete used to be hidden in
a catch-all exception handler that was
removed in 396dc073.

This was causing failures in kcephfs suite
like:
Command failed on plana96 with status 1: 'rm -rf -- /home/ubuntu/cephtest/mnt.0/client.0'

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit cc7c9b2e8bb3b95d9d4bbd3243ed1380a6f128f7)

tasks/workunit.py

index ee682b025bc36059dd263f636fa4a6fa41acf757..c4e1d975213b1e5d988e7360e1566014ce6a6e85 100644 (file)
@@ -133,6 +133,7 @@ def _delete_dir(ctx, role, created_mountpoint):
     # Remove the directory inside the mount where the workunit ran
     remote.run(
         args=[
+            'sudo',
             'rm',
             '-rf',
             '--',