Remove retry from tier1 creation
The NSX issue has been fixed Change-Id: Ib91b9060e34ff560aee17669ae09ffe3d2b52b81
This commit is contained in:
parent
0437b31974
commit
04ede2a3e0
@ -708,14 +708,7 @@ class NsxPolicyTier1Api(NsxPolicyResourceBase):
|
|||||||
route_advertisement=route_advertisement,
|
route_advertisement=route_advertisement,
|
||||||
tenant=tenant)
|
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)
|
self._create_or_store(tier1_def)
|
||||||
_create()
|
|
||||||
return tier1_id
|
return tier1_id
|
||||||
|
|
||||||
def delete(self, tier1_id, tenant=constants.POLICY_INFRA_TENANT):
|
def delete(self, tier1_id, tenant=constants.POLICY_INFRA_TENANT):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user