From: Yan, Zheng Date: Wed, 10 May 2017 10:37:08 +0000 (+0800) Subject: qa/suites/fs: fix write size calculation in full tests X-Git-Tag: v12.0.3~10^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15026%2Fhead;p=ceph.git qa/suites/fs: fix write size calculation in full tests 'max_avail' has already taken full_ratio into account Signed-off-by: "Yan, Zheng" --- diff --git a/qa/tasks/cephfs/test_full.py b/qa/tasks/cephfs/test_full.py index 3e5995667447..e69ccb373b98 100644 --- a/qa/tasks/cephfs/test_full.py +++ b/qa/tasks/cephfs/test_full.py @@ -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()