]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: wait for kernel client death 30233/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 25 Jul 2019 23:01:39 +0000 (16:01 -0700)
committerNathan Cutler <ncutler@suse.com>
Sat, 7 Sep 2019 07:55:17 +0000 (09:55 +0200)
After sending the reboot command, we need to wait briefly for it to be
rebooted so that the kernel client doesn't voluntarily give up its Fb
cap.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 6b83f43ba0a99ad86850974d354b17c3e23877be)

qa/tasks/cephfs/test_client_recovery.py

index c70e224714eda00ca568e3f5a37975640f7a51db..6ba8016d1136047218987b79e59ab4867daca222 100644 (file)
@@ -277,6 +277,9 @@ class TestClientRecovery(CephFSTestCase):
         # Simulate client death
         self.mount_a.kill()
 
+        # wait for it to die so it doesn't voluntarily release buffer cap
+        time.sleep(5)
+
         try:
             # The waiter should get stuck waiting for the capability
             # held on the MDS by the now-dead client A