]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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, 28 Jun 2023 12:08:19 +0000 (17:38 +0530)
commit1bf87e6eec91b05a15702068bcf6a96e228f8d42
tree8a8dbb2fb7c1bb8fd93a223c41745c6077d3bcac
parentc7c38ba558e089c51d71e0b0713b3e0a368b9699
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>
qa/tasks/cephfs/filesystem.py
qa/tasks/cephfs/mount.py