From: Rishabh Dave Date: Mon, 24 Jan 2022 18:33:05 +0000 (+0530) Subject: qa/cephfs: don't remove sudo from the command arguments X-Git-Tag: v18.0.0~977^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2fcdbcd6f57051b5607812b53f2e82d27b5f1581;p=ceph.git qa/cephfs: don't remove sudo from the command arguments run_shell() in qa.tasks.cephfs.mount.CephFSMount prepends "sudo" to its command arguments but it doesn't specify to the underlying method that "sudo" shouldn't be deleted from the command arguments. Fixes: https://tracker.ceph.com/issues/53601 Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index 9674bea0d98..931752ce473 100644 --- a/qa/tasks/cephfs/mount.py +++ b/qa/tasks/cephfs/mount.py @@ -711,7 +711,9 @@ class CephFSMount(object): if sudo: args.insert(0, 'sudo') - return self.client_remote.run(args=args, cwd=cwd, timeout=timeout, stdout=stdout, stderr=stderr, **kwargs) + return self.client_remote.run(args=args, cwd=cwd, timeout=timeout, + stdout=stdout, stderr=stderr, + omit_sudo=False, **kwargs) def run_shell_payload(self, payload, **kwargs): return self.run_shell(["bash", "-c", Raw(f"'{payload}'")], **kwargs)