From c9058dc7a57530df592b9945d36cf71459946f4f Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Sun, 30 Jul 2023 22:57:37 +0530 Subject: [PATCH] qa/cephfs: CephFSTestCase.create_client() must keyring Replace call to run_ceph_cmd() by call to get_ceph_cmd_stdout() in method qa.tasks.cephfs.cephfs_test_case.CephFSTestCase.create_client(). run_ceph_cmd() will not return keyring which is wrong. get_ceph_cmd_stdout() will return the stdout of "ceph auth add" command, which is the keyring that is expected to be returned by CephFSTestCase.create_client(). Fixes: https://tracker.ceph.com/issues/62246 Signed-off-by: Rishabh Dave --- qa/tasks/cephfs/cephfs_test_case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/cephfs_test_case.py b/qa/tasks/cephfs/cephfs_test_case.py index 968bce4093f..1823453ff64 100644 --- a/qa/tasks/cephfs/cephfs_test_case.py +++ b/qa/tasks/cephfs/cephfs_test_case.py @@ -458,4 +458,4 @@ class CephFSTestCase(CephTestCase, RunCephCmd): cmd += ['mds', mdscap] self.run_ceph_cmd(*cmd) - return self.run_ceph_cmd(f'auth get {self.client_name}') + return self.get_ceph_cmd_stdout(f'auth get {self.client_name}') -- 2.39.5