]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: load file system info if not created 50921/head
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 5 Apr 2023 19:25:38 +0000 (15:25 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 6 Apr 2023 15:23:18 +0000 (11:23 -0400)
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 <pdonnell@redhat.com>
(cherry picked from commit 69565dbbf124e29f30dae989eae41eada161a4b4)

qa/tasks/cephfs/filesystem.py

index 8dbb576972b97ac3c5de505b45fd0848d959e624..63712b3014a29a7f718c8c1312a02d57d04f93d2 100644 (file)
@@ -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()