]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: account for split of the kclient "metrics" debugfs file 44270/head
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Nov 2021 18:10:50 +0000 (13:10 -0500)
committerVenky Shankar <vshankar@redhat.com>
Fri, 10 Dec 2021 09:08:59 +0000 (14:38 +0530)
Recently, Luis posted a patch to turn the metrics debugfs file into a
directory with separate files for the different sections in the old
metrics file.

Account for this change in get_op_read_count().

Fixes: https://tracker.ceph.com/issues/53214
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit e9f2bff8cd7df1c81ff8bbfa2530f470d9c6af2c)

qa/tasks/cephfs/kernel_mount.py

index 1d35545c60e4457d9ee89b2e1be70fd96923a3ef..e25f51bd26887ea13172d74bdb6b1abe042eb19f 100644 (file)
@@ -263,7 +263,7 @@ class KernelMount(CephFSMount):
         return epoch, barrier
 
     def get_op_read_count(self):
-        buf = self.read_debug_file("metrics")
+        buf = self.read_debug_file("metrics/size")
         if buf is None:
             return 0
         else: