From: John Spray Date: Sun, 29 Nov 2015 11:43:30 +0000 (+0000) Subject: tasks/cephfs: always sudo in run_shell X-Git-Tag: v10.2.6~165^2^2~253^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=80397a5db248f57fb0d93b419ca89a4f231825fa;p=ceph.git tasks/cephfs: always sudo in run_shell This was causing permissions issues when running inside teuthology, as run_python was using sudo and run_shell wasn't. Would be nice to get rid of all the rootishness, but for the moment just make it more uniform. --- diff --git a/tasks/cephfs/mount.py b/tasks/cephfs/mount.py index 8786680e045b..db39dc3d9e48 100644 --- a/tasks/cephfs/mount.py +++ b/tasks/cephfs/mount.py @@ -109,7 +109,7 @@ class CephFSMount(object): p.wait() def run_shell(self, args, wait=True): - args = ["cd", self.mountpoint, run.Raw('&&')] + args + args = ["cd", self.mountpoint, run.Raw('&&'), "sudo"] + args return self.client_remote.run(args=args, stdout=StringIO(), wait=wait) def open_no_data(self, basename):