diff options
author | Sri Vignesh <sselvan@redhat.com> | 2020-09-28 11:14:03 +0530 |
---|---|---|
committer | Sri Vignesh <sselvan@redhat.com> | 2020-09-28 06:41:59 +0000 |
commit | 5c38cc25d9f302f7717d9e3fe485096cb3d2871f (patch) | |
tree | 7365989a79e2980053f1f69ea672893e570997a0 /tests/functional | |
parent | cc8515f943e93f278714bab026c524649adf6e20 (diff) |
[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 <sselvan@redhat.com>
Diffstat (limited to 'tests/functional')
-rw-r--r-- | tests/functional/heketi/test_volume_expansion_and_devices.py | 2 |
1 files changed, 1 insertions, 1 deletions
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"] |