Whamcloud - gitweb
LU-12597 tests: remove comma_list for MDTs part 3 26/57326/4
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Oct 2024 21:48:06 +0000 (15:48 -0600)
committerOleg Drokin <green@whamcloud.com>
Sun, 2 Feb 2025 06:27:22 +0000 (06:27 +0000)
commitceee271cddc3a911a54415d7e5a125c25e6ab35b
tree5135043c981d138aedce7ed95789744133fadb24
parent178e5b2c399a0b8adf3642eae1be705103cf5383
LU-12597 tests: remove comma_list for MDTs part 3

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
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I33509872350987564ca560ad93fdaba0443ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57326
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-krb5.sh
lustre/tests/sanity-lnet.sh
lustre/tests/sanity-lsnapshot.sh