Add delay to SOURCE_IP_PORT TCP test
Without a delay it can trigger a "Cannot assign requested address" warning setting the source port, leading to failure. Also added a log debug statement when a source port is being used since it can help with debugging. Change-Id: Idcc13fdaafb8ffe41710fc3c67f30932725cf66e
This commit is contained in:
parent
2d19795b84
commit
52531e2b14
|
@ -928,9 +928,11 @@ class TrafficOperationsScenarioTest(test_base.LoadBalancerBaseTestWithCompute):
|
|||
listener_id, pool_id = self._listener_pool_create(
|
||||
const.TCP, 60092,
|
||||
pool_algorithm=const.LB_ALGORITHM_SOURCE_IP_PORT)
|
||||
# Without a delay this can trigger a "Cannot assign requested
|
||||
# address" warning setting the source port, leading to failure
|
||||
self._test_basic_traffic(
|
||||
const.TCP, 60092, listener_id, pool_id, traffic_member_count=1,
|
||||
persistent=False, source_port=60092)
|
||||
persistent=False, source_port=60092, delay=0.2)
|
||||
except exceptions.NotImplemented as e:
|
||||
message = ("The configured provider driver '{driver}' "
|
||||
"does not support a feature required for this "
|
||||
|
|
|
@ -284,6 +284,9 @@ class ValidatorsMixin(test.BaseTestCase):
|
|||
HTTPS_verify, requests_session=requests_session,
|
||||
source_port=source_port)
|
||||
|
||||
if source_port:
|
||||
LOG.debug('Using source port %s for request(s)', source_port)
|
||||
|
||||
response_counts = {}
|
||||
# Send a number requests to lb vip
|
||||
for i in range(repeat):
|
||||
|
|
Loading…
Reference in New Issue