Merge "Fixing vip time so the vip is realized before first request."

This commit is contained in:
Zuul 2020-10-08 08:29:48 +00:00 committed by Gerrit Code Review
commit 4422ae2bda
2 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,7 @@ NO_OF_VMS_4 = 4
HTTP_PORT = 80
HTTPS_PORT = 443
SLEEP_BETWEEN_VIRTUAL_SEREVRS_OPEARTIONS = 120
WAIT_FOR_VIP = 60
REDIRECT_TO_POOL = "REDIRECT_TO_POOL"
REJECT = "REJECT"

View File

@ -793,6 +793,7 @@ class FeatureManager(traffic_manager.IperfManager,
no_resp=False, source_ip=False):
i = 0
vip = self.vip_ip_address
time.sleep(constants.WAIT_FOR_VIP)
self.do_http_request(vip=vip, send_counts=self.poke_counters)
# ROUND_ROUBIN, so equal counts
no_of_vms = len(self.http_cnt)