From 04ede2a3e085c4720c06bfe1dccbe8268fc52fae Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Mon, 21 Jan 2019 09:43:50 +0200 Subject: [PATCH] Remove retry from tier1 creation The NSX issue has been fixed Change-Id: Ib91b9060e34ff560aee17669ae09ffe3d2b52b81 --- vmware_nsxlib/v3/policy/core_resources.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/vmware_nsxlib/v3/policy/core_resources.py b/vmware_nsxlib/v3/policy/core_resources.py index 6b287f40..d0a866ef 100644 --- a/vmware_nsxlib/v3/policy/core_resources.py +++ b/vmware_nsxlib/v3/policy/core_resources.py @@ -708,14 +708,7 @@ class NsxPolicyTier1Api(NsxPolicyResourceBase): route_advertisement=route_advertisement, tenant=tenant) - # Note(asarfaty): Although this is a patch request, it sometimes fail - # with StaleRevision on communication maps conflicts - @utils.retry_upon_exception( - exceptions.StaleRevision, - max_attempts=self.policy_api.client.max_attempts) - def _create(): - self._create_or_store(tier1_def) - _create() + self._create_or_store(tier1_def) return tier1_id def delete(self, tier1_id, tenant=constants.POLICY_INFRA_TENANT):