Skip to content

Commit

Permalink
DAOS-16484 test: Exclude local host in default interface selection (#…
Browse files Browse the repository at this point in the history
…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.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: test_setup_vm

Signed-off-by: Phil Henderson <[email protected]>
  • Loading branch information
phender committed Aug 30, 2024
1 parent 761ec54 commit a8511b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tests/ftest/util/environment_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a8511b3

Please sign in to comment.