Whamcloud - gitweb
LU-18019 tests: Convert hostname to IP list 07/55707/9
authorChris Horn <chris.horn@hpe.com>
Thu, 11 Jul 2024 18:51:18 +0000 (12:51 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 31 Jul 2024 16:07:31 +0000 (16:07 +0000)
commit2ada317c0992e27fc58f9744bdcf49e3a6c2d7a3
tree77bd35d833136ac0e510d7e7f73ac2278862ee1a
parent73fd18caa6f7951e88aedd17cd87689f74921a73
LU-18019 tests: Convert hostname to IP list

modify h2name_or_ip to convert the specified hostname into a
comma separated list of NIDs. If FORCE_LARGE_NID is true, and the host
has IPv6 addresses, then only those IPv6 NIDs are listed. If it is
false, and the host has IPv4 addresses, then only those IPv4 NIDs are
listed. Otherwise, we list NIDs based on whichever addresses are
present.

h2name_or_ip() may be called prior to init_test_env, and in this case
FORCE_LARGE_NID will not be initialized. Add FORCE_LARGE_NID to
cfg/local.sh to ensure it is set before h2name_or_ip() is called.

Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I0ef74eef5748d495e6b64f023c07d8eb4a23a5ed
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55707
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/cfg/local.sh
lustre/tests/sanity-lnet.sh
lustre/tests/test-framework.sh