From 5a336d734c8b7b2e6f149b1ef31cf7c0673559db Mon Sep 17 00:00:00 2001 From: John Spray Date: Sat, 26 Jul 2014 21:31:54 +0100 Subject: [PATCH] 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) --- tasks/workunit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/workunit.py b/tasks/workunit.py index ee682b025bc36..c4e1d975213b1 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', '--', -- 2.39.5