From a448d1c3ee161dc1910ff9fd71a82f7eb0020526 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Tue, 27 Jul 2021 09:53:58 +0800 Subject: [PATCH] qa: wait pgs to be clean before using the pools Or in some use cases, like the mds-full tests, we will hit the "PG_AVAILABILITY" warning. Signed-off-by: Xiubo Li --- qa/tasks/cephfs/filesystem.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/tasks/cephfs/filesystem.py b/qa/tasks/cephfs/filesystem.py index 805b7548dc6..51ca0a45062 100644 --- a/qa/tasks/cephfs/filesystem.py +++ b/qa/tasks/cephfs/filesystem.py @@ -676,6 +676,9 @@ class Filesystem(MDSCluster): self.getinfo(refresh = True) + # wait pgs to be clean + self.mon_manager.wait_for_clean() + def run_client_payload(self, cmd): # avoid circular dep by importing here: from tasks.cephfs.fuse_mount import FuseMount -- 2.39.5