From: Patrick Donnelly Date: Wed, 5 Apr 2023 19:25:38 +0000 (-0400) Subject: qa: load file system info if not created X-Git-Tag: v19.0.0~1419^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F50896%2Fhead;p=ceph.git 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 --- diff --git a/qa/tasks/cephfs/filesystem.py b/qa/tasks/cephfs/filesystem.py index 111a99fc4c87..20dd997cbd06 100644 --- a/qa/tasks/cephfs/filesystem.py +++ b/qa/tasks/cephfs/filesystem.py @@ -1135,6 +1135,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()