From: Patrick Donnelly Date: Fri, 28 Aug 2020 17:37:25 +0000 (-0700) Subject: qa: test for statfs on deleted file system X-Git-Tag: v16.1.0~1264^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d33c6157a30322f65b6a9b156682031a6efe1dae;p=ceph.git qa: test for statfs on deleted file system Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephfs/test_misc.py b/qa/tasks/cephfs/test_misc.py index 14a7e662b10..8ae64a36dbe 100644 --- a/qa/tasks/cephfs/test_misc.py +++ b/qa/tasks/cephfs/test_misc.py @@ -12,6 +12,22 @@ log = logging.getLogger(__name__) class TestMisc(CephFSTestCase): CLIENTS_REQUIRED = 2 + def test_statfs_on_deleted_fs(self): + """ + That statfs does not cause monitors to SIGSEGV after fs deletion. + """ + + self.mount_b.umount_wait() + self.mount_a.run_shell_payload("stat -f .") + self.fs.delete_all_filesystems() + # This will hang either way, run in background. + p = self.mount_a.run_shell_payload("stat -f .", wait=False, timeout=60, check_status=False) + time.sleep(30) + self.assertFalse(p.finished) + # the process is stuck in uninterruptible sleep, just kill the mount + self.mount_a.umount_wait(force=True) + p.wait() + def test_getattr_caps(self): """ Check if MDS recognizes the 'mask' parameter of open request.