Skip to content

Commit 2e994b5

Browse files
committed
test(net): use iperf3-vsock in test_high_ingress_traffic
We observe iperf3 3.16+ crashes on aarch64 when running the test. Use iperf3-vsock that we already build from source instead. Signed-off-by: Nikita Kalyazin <kalyazin@amazon.com>
1 parent 1f07842 commit 2e994b5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/integration_tests/functional/test_net.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
from framework import utils
1111

1212
# The iperf version to run this tests with
13-
IPERF_BINARY = "iperf3"
13+
IPERF_BINARY_GUEST = "iperf3"
14+
# We are using iperf3-vsock instead of a regular iperf3,
15+
# because iperf3 3.16+ crashes on aarch64 sometimes
16+
# when running this test.
17+
IPERF_BINARY_HOST = "iperf3-vsock"
1418

1519

1620
def test_high_ingress_traffic(uvm_plain_any):
@@ -33,15 +37,15 @@ def test_high_ingress_traffic(uvm_plain_any):
3337
test_microvm.start()
3438

3539
# Start iperf3 server on the guest.
36-
test_microvm.ssh.check_output("{} -sD\n".format(IPERF_BINARY))
40+
test_microvm.ssh.check_output("{} -sD\n".format(IPERF_BINARY_GUEST))
3741
time.sleep(1)
3842

3943
# Start iperf3 client on the host. Send 1Gbps UDP traffic.
4044
# If the net device breaks, iperf will freeze. We have to use a timeout.
4145
utils.check_output(
4246
"timeout 31 {} {} -c {} -u -V -b 1000000000 -t 30".format(
4347
test_microvm.netns.cmd_prefix(),
44-
IPERF_BINARY,
48+
IPERF_BINARY_HOST,
4549
guest_ip,
4650
),
4751
)

0 commit comments

Comments
 (0)