Skip to content

Commit ce6f26e

Browse files
committed
net, stability: Wait for client VM iface
client_server_active_connection only waited for the server VM's secondary interface to get its DHCP-assigned IP. If the client VM's DHCP hadn't completed yet, iperf3 had no route to the server and exited immediately, causing _ensure_is_running to time out. The change will fix test_tcp_connectivity_between_vms_with_localnet_ipam_nic failures on CI. Signed-off-by: Asia Khromov <azhivovk@redhat.com>
1 parent 3496b55 commit ce6f26e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/net/traffic_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ def client_server_active_connection(
265265
Traffic runs with infinite duration until context exits.
266266
"""
267267
server_ip = str(lookup_iface_status_ip(vm=server_vm, iface_name=spec_logical_network, ip_family=ip_family))
268+
lookup_iface_status_ip(vm=client_vm, iface_name=spec_logical_network, ip_family=ip_family)
268269
with TcpServer(vm=server_vm, port=port, bind_ip=server_ip) as server:
269270
with VMTcpClient(
270271
vm=client_vm,

0 commit comments

Comments
 (0)