From 712979cde0a5d3f448ab10f6cc68b15b0de71e82 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 5 Apr 2023 15:25:38 -0400 Subject: [PATCH] qa: load file system info if not created Mounts may create a Filesystem object which does not create the file system. This causes self.id to be Null when we try to wait for daemons to be up. Load it just in time! Fixes: https://tracker.ceph.com/issues/59332 Signed-off-by: Patrick Donnelly (cherry picked from commit 69565dbbf124e29f30dae989eae41eada161a4b4) --- 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 35b80106dc8c..b919557fbe2e 100644 --- a/qa/tasks/cephfs/filesystem.py +++ b/qa/tasks/cephfs/filesystem.py @@ -1119,6 +1119,9 @@ class Filesystem(MDSCluster): if timeout is None: timeout = DAEMON_WAIT_TIMEOUT + if self.id is None: + status = self.getinfo(refresh=True) + if status is None: status = self.status() -- 2.47.3