From 2fcdbcd6f57051b5607812b53f2e82d27b5f1581 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 25 Jan 2022 00:03:05 +0530 Subject: [PATCH] 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 --- qa/tasks/cephfs/mount.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index 9674bea0d988..931752ce4730 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) -- 2.47.3