]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: Fix permission errors on quota tests
authorVarsha Rao <varao@redhat.com>
Wed, 11 Dec 2019 14:13:14 +0000 (19:43 +0530)
committerVarsha Rao <varao@redhat.com>
Sat, 28 Dec 2019 12:25:40 +0000 (17:55 +0530)
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 <varao@redhat.com>
qa/tasks/cephfs/test_cephfs_shell.py

index 58d658ad3bf55417d62e9f0b85034da6592d76d0..7c5a2c54bdfc8a845acbd7a85b7aa618ac1cfc08 100644 (file)
@@ -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):