Commit Graph

13 Commits

Author SHA1 Message Date
Rishabh Dave
0ad09a49e1 qa/cephfs: when cmd output is not needed call run_ceph_cmd()
instead of get_ceph_cmd_stdout().

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit c7c38ba558)

Conflicts:
	qa/tasks/cephfs/test_mirroring.py
	- Commit e4dd0e41a3 was not present on main but it is now
	present on main as well as on Reef, which leads to conflict.
	- The line located right before one of the patches in this
	  commit was modified in latest Reef branch, thus creating
	  conflict when PR branch was rebased on latest Reef.
2024-04-03 23:02:08 +05:30
Rishabh Dave
dd4720cb03 qa/cephfs: add and use get_ceph_cmd_stdout()
Add method get_ceph_cmd_stdout() to class CephFSTestCase so that one
doesn't have to type something as long as
"self.mds_cluster.mon_manager.raw_cluster_cmd()" to execute a
command and get its output. And delete and replace
CephFSTestCase.run_cluster_cmd() too.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 13168834e3)

Conflicts:
	qa/tasks/cephfs/caps_helper.py
	- This file is very different in Reef.
	qa/tasks/cephfs/test_mirroring.py
	- Commit e4dd0e41a3 was not present on main but it is now
	  present on main as well as on Reef, which leads to conflict.
	- On Reef branch, the line before that patch in this commit was
	  thus creating a conflict when the PR branch for this commit
	  series was rebased on latest Reef.
2024-04-03 23:01:48 +05:30
Rishabh Dave
6efd266e46 qa/cephfs: add and use get_ceph_cmd_result()
To run a command and get its return value, instead of typing something
as long as "self.mds_cluster.mon_manager.raw_cluster_cmd_result" add a
hepler method in CephFSTestCase and use it. This makes this task very
simple - "self.get_ceph_cmd_result()".

Also, remove method CephFSTestCase.run_cluster_cmd_result() in favour of
this new method.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 82814ac49d)
2024-04-03 22:51:44 +05:30
Venky Shankar
d8ba839bcd
Merge pull request #46068 from neesingh-rh/change_perf_stats_o/p_structure
mgr/stats: change in structure of perf_stats o/p

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
2022-08-24 11:13:07 +05:30
Neeraj Pratap Singh
74489c4f0b qa: add test_non_existing_mds_rank and modify test_query_mds_filter
Fixes: https://tracker.ceph.com/issues/56169
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
2022-08-22 11:35:37 +05:30
Neeraj Pratap Singh
ff33cccf33 qa: Update the qa tests to be compatible with the new structure of 'perf stats' o/p.
test_client_metrics_and_metadataand other tests has been
updated as earlier it was checking according to the old structure
of perf stats o/p, which has been changed in this PR.

Fixes: https://tracker.ceph.com/issues/56162
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
2022-08-22 11:31:52 +05:30
Neeraj Pratap Singh
e717e216ea qa: add test_perf_stats_stale_metrics_with_multiple_filesystem
Fixes: https://tracker.ceph.com/issues/56483
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
2022-08-05 14:53:17 +05:30
Venky Shankar
abcd7ba717
Merge pull request #45473 from neesingh-rh/fix_50470
cephfs-top: Multiple filesystem support

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2022-05-04 15:00:15 +05:30
Neeraj Pratap Singh
9855e15de2 qa: test for verification of client metrics and metadata.
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
2022-03-29 12:43:44 +05:30
Jos Collin
1621308214
qa: make test_perf_stats_stale_metrics check only the clients created for the tests
Uses the client's global id to get the metrics, instead of using the index.
This ensures that test_perf_stats_stale_metrics checks only the clients mounted for
the tests.

Fixes: https://tracker.ceph.com/issues/54971
Signed-off-by: Jos Collin <jcollin@redhat.com>
2022-03-25 18:19:48 +05:30
Jos Collin
116e89a2f2
qa: test ceph fs perf stats doesn't output stale metrics
That `ceph fs perf stats` doesn't output stale metrics
after the rank0 MDS failover.

Fixes: https://tracker.ceph.com/issues/50033
Signed-off-by: Jos Collin <jcollin@redhat.com>
2022-02-16 11:18:45 +05:30
Nikhilkumar Shelke
a00893fbba qa: test cases for ceph fs perf stats command
Fixes: https://tracker.ceph.com/issues/48473
Signed-off-by: Nikhilkumar Shelke <nshelke@redhat.com>
2022-01-05 10:45:05 +05:30
Venky Shankar
a95b364e3e test: add tests for validating MDS metrics via perf stats module
Fixes: http://tracker.ceph.com/issues/24285
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2020-10-12 07:34:51 -04:00