From 986c7bd09d4645b1aefb4ed96b83ecce49091369 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Wed, 8 May 2024 16:18:08 -0700 Subject: [PATCH] Fix racy DHSS=True share groups test We recently addressed a bug in Manila where share networks couldn't be deleted when they were still associated with any share groups [1]. After this fix, we had a couple of tests failing sporadically because they weren't waiting for the deletion of the share groups prior to attempting deletion of the share network subnets. Change-Id: I532ff3f0b2613340e0cb46c3b7e57a22cfa50c61 Related-Bug: #2004212 Closes-Bug: #2064673 Signed-off-by: Goutham Pacha Ravi --- manila_tempest_tests/tests/api/test_share_groups.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manila_tempest_tests/tests/api/test_share_groups.py b/manila_tempest_tests/tests/api/test_share_groups.py index ab6b9d15..dbc673cd 100644 --- a/manila_tempest_tests/tests/api/test_share_groups.py +++ b/manila_tempest_tests/tests/api/test_share_groups.py @@ -401,6 +401,8 @@ class ShareGroupsTest(base.BaseSharesMixedTest): # Delete share group self.shares_v2_client.delete_share_group( share_group['id'], version=constants.MIN_SHARE_GROUP_MICROVERSION) + self.shares_v2_client.wait_for_resource_deletion( + share_group_id=share_group['id']) # Delete subnet self.shares_v2_client.delete_subnet(