From 6b83f43ba0a99ad86850974d354b17c3e23877be Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 25 Jul 2019 16:01:39 -0700 Subject: [PATCH] qa: wait for kernel client death 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 --- qa/tasks/cephfs/test_client_recovery.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/tasks/cephfs/test_client_recovery.py b/qa/tasks/cephfs/test_client_recovery.py index e4c3ce60691..7b305c5c3da 100644 --- a/qa/tasks/cephfs/test_client_recovery.py +++ b/qa/tasks/cephfs/test_client_recovery.py @@ -297,6 +297,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 -- 2.39.5