]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: make quiesce ops dump world readable 57340/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 30 Apr 2024 14:22:48 +0000 (10:22 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 7 May 2024 19:53:35 +0000 (15:53 -0400)
Fixes: https://tracker.ceph.com/issues/65701
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit a907c7eb5752a2ba5b4eef42a854a6231bc1ad29)

qa/tasks/cephfs/test_quiesce.py

index 3c83f36d57b03e6069b211a5e677414e1547a48f..987ce05238e38dc3f714a29a1c42e7e178ce6ade 100644 (file)
@@ -115,6 +115,7 @@ class QuiesceTestCase(CephFSTestCase):
             ops = self.fs.get_ops(locks=True, rank=rank, path=f"/tmp/mds.{rank}-ops", status=status)
             (fd, path) = tempfile.mkstemp(prefix=f"mds.{rank}-ops_", dir=self.archive)
             with os.fdopen(fd, "wt") as f:
+                os.fchmod(fd, 0o644)
                 f.write(f"{json.dumps(ops, indent=2)}")
                 log.error(f"ops written to {path}")
             raise