From c248d905df78af7d49fd69887102450733fc5d77 Mon Sep 17 00:00:00 2001 From: Asma Syed Hameed Date: Wed, 4 Aug 2021 11:17:15 +0530 Subject: [PATCH] Fix attempts in Octavia plugins Change-Id: I474536d7ab2d7399fdbea874ba6be13c180ce417 --- .../octavia-create-loadabalancer-listeners-pools-members.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rally/rally-plugins/octavia/octavia-create-loadabalancer-listeners-pools-members.py b/rally/rally-plugins/octavia/octavia-create-loadabalancer-listeners-pools-members.py index 826bcfddf..ba674b00b 100644 --- a/rally/rally-plugins/octavia/octavia-create-loadabalancer-listeners-pools-members.py +++ b/rally/rally-plugins/octavia/octavia-create-loadabalancer-listeners-pools-members.py @@ -143,7 +143,7 @@ class OctaviaCreateLoadbalancerListenersPoolsMembers(vm_utils.VMScenario, except exceptions.OctaviaClientException as e: # retry for 409 return code if e.code == 409: - attempts += attempts + attempts += 1 time.sleep(120) continue break @@ -169,7 +169,7 @@ class OctaviaCreateLoadbalancerListenersPoolsMembers(vm_utils.VMScenario, except exceptions.OctaviaClientException as e: # retry for 409 return code if e.code == 409: - attempts += attempts + attempts += 1 time.sleep(120) self.octavia.wait_for_loadbalancer_prov_status(lb) LOG.info("member_create exception: Waiting for the lb {} to be active" @@ -197,7 +197,7 @@ class OctaviaCreateLoadbalancerListenersPoolsMembers(vm_utils.VMScenario, LOG.info("cmd: {}, stdout:{}".format(cmd, stdout_test)) if test_exitcode != 0 and stdout_test != 1: LOG.error("ERROR with HTTP response {}".format(cmd)) - attempts += attempts + attempts += 1 time.sleep(30) else: LOG.info("cmd: {} succesful".format(cmd))