]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: relax min_caps_per_client check 29211/head
authorYan, Zheng <zyan@redhat.com>
Thu, 7 Mar 2019 13:12:28 +0000 (21:12 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 23 Jul 2019 12:11:00 +0000 (14:11 +0200)
new kernel client proactively release caps. caps count can go below
mds_min_caps_per_client

Fixes: http://tracker.ceph.com/issues/38270
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 8e81bd74c59259a06f587bb425d58bf2b2176341)

Conflicts:
qa/tasks/cephfs/test_client_limits.py
- mimic TestClientLimits does not have expected_caps method at all

qa/tasks/cephfs/test_client_limits.py

index 1f1d5467079ccf60027e05d18e08a0fcabf6cf58..28d6adba8efd60615ff661991ef08df10e0f1c2b 100644 (file)
@@ -87,9 +87,7 @@ class TestClientLimits(CephFSTestCase):
         recall_expected_value = int((1.0-mds_max_ratio_caps_per_client)*(open_files+2))
         def expected_caps():
             num_caps = self.get_session(mount_a_client_id)['num_caps']
-            if num_caps < mds_min_caps_per_client:
-                raise RuntimeError("client caps fell below min!")
-            elif num_caps == mds_min_caps_per_client:
+            if num_caps <= mds_min_caps_per_client:
                 return True
             elif recall_expected_value*.95 <= num_caps <= recall_expected_value*1.05:
                 return True