Merge "NSX policy transaction: Modify retry policy" into stable/train

This commit is contained in:
Zuul 2021-10-25 18:53:16 +00:00 committed by Gerrit Code Review
commit d4b9c604a2
1 changed files with 4 additions and 2 deletions

View File

@ -219,9 +219,11 @@ class NsxPolicyTransaction(object):
if body:
headers = {'nsx-enable-partial-patch': 'true'}
@utils.retry_upon_exception(
@utils.retry_random_upon_exception(
(exceptions.NsxPendingDelete, exceptions.StaleRevision),
max_attempts=self.client.max_attempts)
delay=1,
max_delay=10,
max_attempts=self.client.max_attempts + 5)
def _do_patch_with_retry():
self.client.patch(url, body, headers=headers)