]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: use specific ops/cache dump file names
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 30 Apr 2024 14:22:23 +0000 (10:22 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 7 May 2024 19:53:35 +0000 (15:53 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 1114e99aea48e6e927fc4bda00475f50dd99c6aa)

qa/tasks/cephfs/test_quiesce.py

index bdb803e8c47fcb7f8d383041dfe5d858836226d8..3c83f36d57b03e6069b211a5e677414e1547a48f 100644 (file)
@@ -107,13 +107,13 @@ class QuiesceTestCase(CephFSTestCase):
             log.info(f"op:\n{op}")
             self._make_archive()
             cache = self.fs.read_cache(path, rank=rank, path=f"/tmp/mds.{rank}-cache", status=status)
-            (fd, path) = tempfile.mkstemp(prefix="cache", dir=self.archive)
+            (fd, path) = tempfile.mkstemp(prefix=f"mds.{rank}-cache_", dir=self.archive)
             with os.fdopen(fd, "wt") as f:
                 os.fchmod(fd, 0o644)
                 f.write(f"{json.dumps(cache, indent=2)}")
                 log.error(f"cache written to {path}")
             ops = self.fs.get_ops(locks=True, rank=rank, path=f"/tmp/mds.{rank}-ops", status=status)
-            (fd, path) = tempfile.mkstemp(prefix="ops", dir=self.archive)
+            (fd, path) = tempfile.mkstemp(prefix=f"mds.{rank}-ops_", dir=self.archive)
             with os.fdopen(fd, "wt") as f:
                 f.write(f"{json.dumps(ops, indent=2)}")
                 log.error(f"ops written to {path}")