]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs: always sudo in run_shell
authorJohn Spray <john.spray@redhat.com>
Sun, 29 Nov 2015 11:43:30 +0000 (11:43 +0000)
committerJohn Spray <john.spray@redhat.com>
Wed, 2 Dec 2015 23:30:55 +0000 (23:30 +0000)
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.

tasks/cephfs/mount.py

index 8786680e045b3a9f9654c6e4c5fa36c12e45eeb4..db39dc3d9e4820523b303b6454302b38a1c36d82 100644 (file)
@@ -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):