From: Varsha Rao Date: Wed, 11 Dec 2019 14:13:14 +0000 (+0530) Subject: cephfs-shell: Fix permission errors on quota tests X-Git-Tag: v15.1.0~295^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=228a290c2dfe4cec64786a085466c94d269f0aa3;p=ceph.git cephfs-shell: Fix permission errors on quota tests Use of mount_a.run_shell() to create directory, requires Sudo access and cephfs-shell should be run without sudo access. Instead use cephfs-shell mkdir command to create directory. Signed-off-by: Varsha Rao --- diff --git a/qa/tasks/cephfs/test_cephfs_shell.py b/qa/tasks/cephfs/test_cephfs_shell.py index 58d658ad3bf5..7c5a2c54bdfc 100644 --- a/qa/tasks/cephfs/test_cephfs_shell.py +++ b/qa/tasks/cephfs/test_cephfs_shell.py @@ -681,7 +681,7 @@ class TestQuota(TestCephFSShell): dir_name = 'testdir' def create_dir(self): - mount_output = self.mount_a.run_shell('mkdir ' + self.dir_name) + mount_output = self.get_cephfs_shell_cmd_output('mkdir ' + self.dir_name) log.info("cephfs-shell mount output:\n{}".format(mount_output)) def validate(self, input_val):