From: John Spray Date: Sat, 26 Jul 2014 20:31:54 +0000 (+0100) Subject: task/workunit: add sudo to dir delete X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5a336d734c8b7b2e6f149b1ef31cf7c0673559db;p=ceph.git task/workunit: add sudo to dir delete 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 (cherry picked from commit cc7c9b2e8bb3b95d9d4bbd3243ed1380a6f128f7) --- diff --git a/tasks/workunit.py b/tasks/workunit.py index ee682b025bc3..c4e1d975213b 100644 --- a/tasks/workunit.py +++ b/tasks/workunit.py @@ -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', '--',