From 85e8f050704e20e201d102233fd41c1a0a189dc9 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 (cherry picked from commit 6b83f43ba0a99ad86850974d354b17c3e23877be) --- 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 c70e224714e..6ba8016d113 100644 --- a/qa/tasks/cephfs/test_client_recovery.py +++ b/qa/tasks/cephfs/test_client_recovery.py @@ -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 -- 2.47.3