]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: CephFSTestCase.create_client() must keyring 41779/head
authorRishabh Dave <ridave@redhat.com>
Sun, 30 Jul 2023 17:27:37 +0000 (22:57 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 7 Sep 2023 06:07:17 +0000 (11:37 +0530)
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 <ridave@redhat.com>
qa/tasks/cephfs/cephfs_test_case.py

index 968bce4093fce16bd3c926c047365064ccdb90a7..1823453ff646a637e71aee16cd770ff68e9bb297 100644 (file)
@@ -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}')