Whamcloud - gitweb
LU-12597 tests: remove comma_list for MDTs part 4 22/58022/7
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Oct 2024 21:48:46 +0000 (15:48 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 25 Apr 2025 00:54:36 +0000 (00:54 +0000)
commita5d184007053d1b6a7b75e9461dab0ec4bcd7aff
treec3e0161591e4a3bcca29a8157bf09872a130e9bd
parent110fcc188c60fe60215c53d6a21de0a56bcb1d69
LU-12597 tests: remove comma_list for MDTs part 4

Most places that use $(mdts_nodes) also call $(comma_list ...) at the
same time.  Rather than returning a space-separated list of nodes from
those functions, instead return a comma-separated list suitable for
use by do_nodes() and similar functions calling pdsh internally.

This avoids the repeated calls to comma_list() and makes the tests
easier to read.  Also, since comma_list() internally deduplicates the
node list, it isn't necessary to do that in the callers.  A few tests
need to convert comma-separated osts_nodes into space-separated nodes.

Test-Parameters: trivial testlist=sanity-scrub
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I34509872350987564ca560ad93fdaba0443ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58022
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-scrub.sh