From: Elena Gryaznova Date: Fri, 19 Apr 2019 14:42:42 +0000 (+0300) Subject: LU-12208 tests: fix interop with old clients X-Git-Tag: 2.12.53~7 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=dafd02632c999212f6e574704846195d377f2ee4 LU-12208 tests: fix interop with old clients We are unable to run the tests on the setup with mixed clients versions installed because the clients older than 2.8.54 do not have set_hostid() added by LU-7134. The hostid is to be set on all sever nodes including the facets falover nodes. This is not done currently, and tests fail on the setup like the following: ost1_HOST=host1 ost1failover_HOST=host2. Patch fixes formatall() to call set_hostid() on server nodes only, including the failover nodes. Test-Parameters: trivial Fixes: 7b654fc673 ("LU-7134 utils: Ensure hostid set for ZFS during mkfs") Signed-off-by: Elena Gryaznova Cray-bug-id: LUS-7242 Reviewed-by: Vladimir Saveliev Reviewed-by: Alexander Boyko Change-Id: I56f36c4b4e6cdadcb9940abfc9d2da8183b52509 Reviewed-on: https://review.whamcloud.com/34725 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Nathaniel Clark Reviewed-by: Alexandr Boyko Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 5139539..f9c6f8e 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -4431,7 +4431,7 @@ formatall() { # (Assumes MDS version is also OSS version) if [ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.8.54) ]; then - do_rpc_nodes "$(comma_list $(remote_nodes_list))" set_hostid + do_rpc_nodes "$(comma_list $(all_server_nodes))" set_hostid fi # We need ldiskfs here, may as well load them all