X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=nfvbench%2Fchain_clients.py;h=bf515526808e201fba6ae9975b32d40494aa4dad;hb=fc235fbbee490dd19bdadc99dfb6e39587d05bb3;hp=affccc850ca8c5b43b5755b657090edbd335a98a;hpb=2d55474511a5057015e77547c326120c1649c0b7;p=nfvbench.git diff --git a/nfvbench/chain_clients.py b/nfvbench/chain_clients.py index affccc8..bf51552 100644 --- a/nfvbench/chain_clients.py +++ b/nfvbench/chain_clients.py @@ -48,7 +48,9 @@ class BasicStageClient(object): self.host_ips = None def _ensure_vms_active(self): - for _ in range(self.config.generic_retry_count): + retry_count = (self.config.check_traffic_time_sec + + self.config.generic_poll_sec - 1) / self.config.generic_poll_sec + for _ in range(retry_count): for i, instance in enumerate(self.vms): if instance.status == 'ACTIVE': continue