]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: fix test_single_path_authorize_on_nonalphanumeric_fsname 58311/head
authorRishabh Dave <ridave@redhat.com>
Wed, 26 Jun 2024 13:35:35 +0000 (19:05 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 11 Jul 2024 16:38:06 +0000 (22:08 +0530)
This test deletes the CephFS already present on the cluster at the very
beginning and unmounts the first client beforehand. But it leaves the
second client mounted on this deleted CephFS that doesn't exist for the
rest of the test. And then at the very end of this test it attempts to
remount the second client (during tearDown()) which hangs and causes
test runner to crash.

Unmount the second client beforehand to prevent the bug and delete
mount_b object to avoid confusion for the readers in future about
whether or not 2nd mountpoint exists.

Fixes: https://tracker.ceph.com/issues/66077
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/test_admin.py

index a321c0e3457a64e2f5b548e4a50ee0fb8fcbf431..b4efdfc57c9a44f530414a878a248e592fc94334 100644 (file)
@@ -1798,10 +1798,9 @@ class TestFsAuthorize(CephFSTestCase):
         That fs authorize command works on filesystems with names having [_.-]
         characters
         """
-        self.skipTest('this test is broken ATM, see: '
-                      'https://tracker.ceph.com/issues/66077')
-
         self.mount_a.umount_wait(require_clean=True)
+        # let's unmount both client before deleting the FS
+        self.mount_b.umount_wait(require_clean=True)
         self.mds_cluster.delete_all_filesystems()
         fs_name = "cephfs-_."
         self.fs = self.mds_cluster.newfs(name=fs_name)