]> 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)
committerJohn Spray <jspray@redhat.com>
Sun, 27 Jul 2014 11:04:23 +0000 (12:04 +0100)
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>
teuthology/task/workunit.py

index b84d5d4498bfd7cd0ae9e730e19df32d5afe402f..e79b551ea3fc32bfba1d070a9307719bbad28b82 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',
             '--',