From 72194627c19bcb97b0a70d28e63185c9e9c015aa Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Wed, 8 Jun 2022 13:00:20 +0800 Subject: [PATCH] qa: wait rank 0 to become up:active state before mounting fuse client When setting the ec pool to the layout the filesystem may not be ready, so when mounting a fuse client it will fail. To fix this we need to wait at least the rank 0 to be in up:active state. Fixes: https://tracker.ceph.com/issues/55824 Signed-off-by: Xiubo Li --- qa/tasks/cephfs/filesystem.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/tasks/cephfs/filesystem.py b/qa/tasks/cephfs/filesystem.py index 9f5827caf48..032532799cb 100644 --- a/qa/tasks/cephfs/filesystem.py +++ b/qa/tasks/cephfs/filesystem.py @@ -742,6 +742,11 @@ class Filesystem(MDSCluster): def run_client_payload(self, cmd): # avoid circular dep by importing here: from tasks.cephfs.fuse_mount import FuseMount + + # Wait for at MDS daemons to be ready before mounting the + # ceph-fuse client in run_client_payload() + self.wait_for_daemons() + d = misc.get_testdir(self._ctx) m = FuseMount(self._ctx, d, "admin", self.client_remote, cephfs_name=self.name) m.mount_wait()