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

Change-Id: Ic85035ef169970d18f37dcc5490524dc048e3e7d
This commit is contained in:
Bharath bhushan Patel 2020-10-08 07:53:11 +00:00
parent 0ed26510e3
commit e21a9897ff
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)