commit e21a9897ff6e58c921bd337e57916072547b4e92 Author: Bharath bhushan Patel Date: Thu Oct 8 07:53:11 2020 +0000 Fixing vip time so the vip is realized before first request. Change-Id: Ic85035ef169970d18f37dcc5490524dc048e3e7d diff --git a/vmware_nsx_tempest_plugin/common/constants.py b/vmware_nsx_tempest_plugin/common/constants.py index 9cdf61d..d13bb0a 100644 --- a/vmware_nsx_tempest_plugin/common/constants.py +++ b/vmware_nsx_tempest_plugin/common/constants.py @@ -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" diff --git a/vmware_nsx_tempest_plugin/lib/feature_manager.py b/vmware_nsx_tempest_plugin/lib/feature_manager.py index 85034e6..cb55d62 100644 --- a/vmware_nsx_tempest_plugin/lib/feature_manager.py +++ b/vmware_nsx_tempest_plugin/lib/feature_manager.py @@ -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)