[LU-12597] test-framework mdts_nodes, osts_nodes should return comma_list Created: 27/Jul/19  Updated: 17/Aug/23

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: test_script_improvements

Rank (Obsolete): 9223372036854775807

 Description   

The test-framework.sh helper functions mdts_nodes(), osts_nodes(), agts_nodes(), nodes_list(), all_mdts_nodes(), all_osts_nodes(), all_server_nodes() and all_nodes() are mostly used together with "comma_list()" to convert the space-separated node list into a comma-separated node list suitable for use by pdsh. There are 261 uses of these functions, of which only 55 do not immediately call comma_list(),

It makes sense to change these helper functions to call comma_list() internally to always return the comma-separated list of nodes, and fix the few places that need a space-separated list to use "| tr ',' ' '" or "${VAR//,/ }" or similar.

It shouldn't be harmful for "comma_list()" to take an already comma-separated list as input, so there isn't a requirement for a single patch to remove the use of comma_list() from all tests, only those few places that require a space-separated list.



 Comments   
Comment by Gerrit Updater [ 30/Jul/19 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35647
Subject: LU-12597 tests: remove need for comma_list
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: cbbc14a8dbd837808cb63dc947037aebb738ae8d

Comment by Gerrit Updater [ 11/Aug/23 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51933
Subject: LU-12597 tests: remove comma_list for MDTs
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 91138d003bc9065c7b8a0a175d3d90b9b5a9e932

Comment by Gerrit Updater [ 17/Aug/23 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51976
Subject: LU-12597 tests: remove comma_list for remaining uses
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ac89948314ace9be89bdfe11d514d8089ed6adb4

Generated at Sat Feb 10 02:53:59 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.