From 1b5943cc5323d822c0f2713e1e468b0b7dd2f3f4 Mon Sep 17 00:00:00 2001 From: Phil Henderson Date: Fri, 30 Aug 2024 15:32:15 -0400 Subject: [PATCH] DAOS-16484 test: Exclude local host in default interface selection (#15049) When including the local host in the default interface selection a difference in ib0 speeds will cause the logic to select eth0 and then the tcp provider. Signed-off-by: Phil Henderson --- src/tests/ftest/util/environment_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tests/ftest/util/environment_utils.py b/src/tests/ftest/util/environment_utils.py index e36d750500e..8223063a85e 100644 --- a/src/tests/ftest/util/environment_utils.py +++ b/src/tests/ftest/util/environment_utils.py @@ -9,7 +9,6 @@ from ClusterShell.NodeSet import NodeSet # pylint: disable=import-error,no-name-in-module -from util.host_utils import get_local_host from util.network_utils import (PROVIDER_ALIAS, SUPPORTED_PROVIDERS, NetworkException, get_common_provider, get_fastest_interface) from util.run_utils import run_remote @@ -327,7 +326,7 @@ def _default_interface(self, logger, hosts): # Find all the /sys/class/net interfaces on the launch node (excluding lo) logger.debug("Detecting network devices - D_INTERFACE not set") try: - interface = get_fastest_interface(logger, hosts | get_local_host()) + interface = get_fastest_interface(logger, hosts) except NetworkException as error: raise TestEnvironmentException("Error obtaining a default interface!") from error return interface