]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/cephfs: add helper methods to filesystem.py
authorRishabh Dave <ridave@redhat.com>
Mon, 27 Mar 2023 06:09:11 +0000 (11:39 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 3 Apr 2024 17:32:08 +0000 (23:02 +0530)
commitd827645df81ab20f7af1839a3cf1796e21d77c5b
tree7305a0b3e6e3c9142975ca4a6500bcffe42ff896
parent0ad09a49e172c25d9cd2d43b87e81c0dc9652f5d
qa/cephfs: add helper methods to filesystem.py

Add run_ceph_cmd(), get_ceph_cmd_stdout() and get_ceph_cmd_result() to
class Filesystem so that running Ceph command is easier. This affects
not only methods inside class Filesystem but also methods elsewhere that
uses instance of class Filesystem to run Ceph commands.

Instead of "self.fs.mon_manager.raw_cluster_cmd()" writing
"self.fs.run_ceph_cmd()" will suffice.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 1bf87e6eec91b05a15702068bcf6a96e228f8d42)
qa/tasks/cephfs/filesystem.py
qa/tasks/cephfs/mount.py