]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: load file system info if not created 50896/head
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 5 Apr 2023 19:25:38 +0000 (15:25 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 5 Apr 2023 22:24:22 +0000 (18:24 -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>
qa/tasks/cephfs/filesystem.py

index 111a99fc4c87304df347b96c2176bc1933c958d5..20dd997cbd06c068d2468d395d6e258a39389503 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()