From 62e9aa1e9ea6df67ceb08985748666d94ba98118 Mon Sep 17 00:00:00 2001 From: Sri Vignesh Date: Tue, 7 Jul 2020 14:12:05 +0530 Subject: [TestFix] Fix large heketi volume creation issue Fix consists of - While creating large heketi valumes, sometime timeout will occur for heketi command but after sometime volume will get created. Use baseclass function 'create_heketi_volume_with_name_and_wait' to check for volume in case timeout occurs. Change-Id: Ia2cdf8d50ecba01ebf593e72afbbff809877c944 Signed-off-by: Sri Vignesh --- tests/functional/heketi/test_volume_creation.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/functional/heketi/test_volume_creation.py b/tests/functional/heketi/test_volume_creation.py index 0af49f9d..92b9dac3 100644 --- a/tests/functional/heketi/test_volume_creation.py +++ b/tests/functional/heketi/test_volume_creation.py @@ -351,10 +351,9 @@ class TestVolumeCreationTestCases(BaseClass): self.skipTest('Required free space %s is not available' % vol_size) # Create heketi volume with device size + 1 - vol_info = heketi_ops.heketi_volume_create( - h_node, h_url, vol_size, clusters=cluster['id'], json=True) - self.addCleanup( - heketi_ops.heketi_volume_delete, h_node, h_url, vol_info['id']) + vol_info = self.create_heketi_volume_with_name_and_wait( + name="volume_size_greater_than_device_size", size=vol_size, + json=True) # Get gluster server IP's from heketi volume info glusterfs_servers = heketi_ops.get_vol_file_servers_and_hosts( -- cgit