From a30e7a0af188e3a43e38b4620b740fe3f1784c96 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 20 Jan 2023 18:20:15 -0500 Subject: [PATCH] qa/tasks/cephfs: use rank_asok and allow specifying rank This will use the more efficient: ceph tell mds.: ... Signed-off-by: Patrick Donnelly (cherry picked from commit 3ba17390e92c21a3eba7337a2da0df79f6bf49ca) --- qa/tasks/cephfs/filesystem.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/tasks/cephfs/filesystem.py b/qa/tasks/cephfs/filesystem.py index 35b80106dc8c5..b6adf9a6165ea 100644 --- a/qa/tasks/cephfs/filesystem.py +++ b/qa/tasks/cephfs/filesystem.py @@ -1233,12 +1233,12 @@ class Filesystem(MDSCluster): out.append((rank, f(perf))) return out - def read_cache(self, path, depth=None): + def read_cache(self, path, depth=None, rank=None): cmd = ["dump", "tree", path] if depth is not None: cmd.append(depth.__str__()) - result = self.mds_asok(cmd) - if len(result) == 0: + result = self.rank_asok(cmd, rank=rank) + if result is None or len(result) == 0: raise RuntimeError("Path not found in cache: {0}".format(path)) return result -- 2.39.5