From 5c38cc25d9f302f7717d9e3fe485096cb3d2871f Mon Sep 17 00:00:00 2001 From: Sri Vignesh Date: Mon, 28 Sep 2020 11:14:03 +0530 Subject: [TestFix] Fix volume size calculation Volume creation with available free size is failing as metadata takes some space. Fix calculation to leave 2% space for metadata. Change-Id: Idc041b61155ce530a0a2c5bbdda3a6986cd9a469 Signed-off-by: Sri Vignesh --- tests/functional/heketi/test_volume_expansion_and_devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/functional') diff --git a/tests/functional/heketi/test_volume_expansion_and_devices.py b/tests/functional/heketi/test_volume_expansion_and_devices.py index 5270c7c8..996e978f 100644 --- a/tests/functional/heketi/test_volume_expansion_and_devices.py +++ b/tests/functional/heketi/test_volume_expansion_and_devices.py @@ -388,7 +388,7 @@ class TestVolumeExpansionAndDevicesTestCases(BaseClass): self.disable_devices(additional_devices_attached) # Create volume and save info about it - vol_size = int(smallest_size / (1024**2)) - 1 + vol_size = int(smallest_size / (1024**2) * 0.98) creation_info = heketi_ops.heketi_volume_create( h_node, h_server_url, vol_size, json=True) volume_name, volume_id = creation_info["name"], creation_info["id"] -- cgit