]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/suites/fs: fix write size calculation in full tests 15026/head
authorYan, Zheng <zyan@redhat.com>
Wed, 10 May 2017 10:37:08 +0000 (18:37 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 11 May 2017 03:18:22 +0000 (11:18 +0800)
'max_avail' has already taken full_ratio into account

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
qa/tasks/cephfs/test_full.py

index 3e5995667447099ea93d4b23a6fe65ba588b3a8e..e69ccb373b982f3a31b955536d1bae3cef54c9fc 100644 (file)
@@ -405,8 +405,7 @@ class TestClusterFull(FullnessTestCase):
             # `max_avail` attribute of pools that sometimes occurs in between
             # tests (reason as yet unclear, but this dodges the issue)
             TestClusterFull.pool_capacity = self.fs.get_pool_df(self._data_pool_name())['max_avail']
-            mon_osd_full_ratio = float(self.fs.get_config("mon_osd_full_ratio"))
-            TestClusterFull.fill_mb = int(1.05 * mon_osd_full_ratio * (self.pool_capacity / (1024.0 * 1024.0)))
+            TestClusterFull.fill_mb = int(1.05 * (self.pool_capacity / (1024.0 * 1024.0)))
 
     def is_full(self):
         return self.fs.is_full()