Whamcloud - gitweb
LU-17409 scripts: correct ldev MGS handling 19/53619/3
authorOlaf P. Faaland <faaland1@llnl.gov>
Tue, 9 Jan 2024 05:36:50 +0000 (21:36 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 2 Apr 2024 21:05:39 +0000 (21:05 +0000)
commit7c9a48086ce5b104596cb5b16f68469a6270f121
treeefe4ff771564c4b61ac160a731a4b3b5e2a2f63e
parente163883f76dac45a516b7d89671513d31063b7d6
LU-17409 scripts: correct ldev MGS handling

ldev was incorrectly parsing the line specifying the hosts that can
run the MGS, when of the form

    gopher1  gopher2  MGS  gopher1/mgs

as it assumed every target specified included a filesystem name,
like 'lustre3-MDT0000'.

This corrects that, assuming that an MGS may not be related to a
specific file system.

When such an input line is found, assume that MGS is used by any file
systems included in the ldev.conf.  When user includes option '-F
<fsname>' as well as '-R MGS', include that MGS, in the targets
reported.

Test-Parameters: trivial
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Change-Id: Ifab5db1dfb094755e29747ec6b90d1566b16c18c
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53619
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Cameron Harr <charr@llnl.gov>
Reviewed-by: Eric Carbonneau <carbonneau1@llnl.gov>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Gian-Carlo DeFazio <defazio1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/scripts/ldev