Whamcloud - gitweb
LU-18357 test: fix sanity-sec 27a interop with long fileset 36/58436/2
authorMarc Vef <mvef@whamcloud.com>
Mon, 17 Mar 2025 12:57:08 +0000 (13:57 +0100)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Mar 2025 04:06:08 +0000 (04:06 +0000)
commit3a12de16bf479f056d86d2b11b068978eb3f889a
treee1ea6e5ef01e33c42ea17cc3c30fa80cd394d073
parent8091e481fc6341c8309eed21cd106b43d6d8e950
LU-18357 test: fix sanity-sec 27a interop with long fileset

The fileset length in sanity-sec 27a was signficantly increased to
test multiple fileset fragments on the IAM. This long fileset is also
used in interop with "lctl set_param -P" with older servers instead of
"lctl nodemap_set_fileset".

However, running "lctl get_param" with this long fileset on older
servers (<=2.15) causes a line break (due to the output being longer
than 80 characters) which results in "wait_nm_sync" to fail when
comparing the expected vs. the actual output.

This patch modifies sanity-sec test 27a and reverts the fileset to its
original much shorter path in the interop case when "lctl set_param
-P" must be used. When "lctl nodemap_set_fileset" is used, the long
fileset is still set to test multiple fileset fragments.

Test-Parameters: trivial testlist=sanity-sec
Test-Parameters: trivial testlist=sanity-sec serverversion=2.15
Fixes: da3536da22ab ("LU-18357 ptlrpc: Use nodemap IAM for persisting filesets")
Signed-off-by: Marc Vef <mvef@whamcloud.com>
Change-Id: Ie1d39f3f986675133fd9d4c294e7af186f2ed1b9
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58436
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-sec.sh