Whamcloud - gitweb
LU-17629 utils: support hostname with 94/54894/9
authorJames Simmons <jsimmons@infradead.org>
Wed, 26 Jun 2024 17:43:35 +0000 (13:43 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 13 Jul 2024 20:53:16 +0000 (20:53 +0000)
commit5ddc05454019a7629fab796583f76c48cb529f8e
tree5449e15e6f234b5e750d00d818fb901dba89a3f9
parent6872cf9a36a748e3a8a402a349e7ef28b9616428
LU-17629 utils: support hostname with
 lustre_lnet_parse_nid_range()

For a hostname it's possible it maps to multiple IPs. In
this case lnetctl commands that attempt to use the hostname
can resolve to the wrong IP address. Update the function
lustre_lnet_parse_nid_range() to work with hostnames and
properly resolve the correct IP address. Update both
lnetctl ping and lnetctl discover to work with
lnet_parse_nid_range().

Test-Parameters: trivial testlist=sanity-lnet
Change-Id: I670799edcb04a02380e96c289ba26854b057d978
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54894
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetctl.c
lustre/tests/sanity-lnet.sh