[LU-14413] interop: sanity test 27M fails with '(1) stripe count 1, should be 4' Created: 11/Feb/21  Updated: 24/Mar/22  Resolved: 10/Aug/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.14.0
Fix Version/s: Lustre 2.12.8, Lustre 2.15.0

Type: Bug Priority: Minor
Reporter: James Nunez (Inactive) Assignee: James A Simmons
Resolution: Fixed Votes: 0
Labels: interop

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

sanity test_27M fails for interop testing between 2.12.x, for x >= 4, clients and Lustre servers with version >= 2.13.51.81.

Looking at the suite_log for a recent failure at https://testing.whamcloud.com/test_sets/6027d1c8-86b2-4ebc-97a4-6f10f337bdbf, we can see that the test fails because lfs doesn’t recognize the ‘-C’ flag

== sanity test 27M: test O_APPEND striping =========================================================== 00:04:37 (1612829077)
CMD: trevis-203vm4 /usr/sbin/lctl get_param -n version 2>/dev/null ||
				/usr/sbin/lctl lustre_build_version 2>/dev/null ||
				/usr/sbin/lctl --version 2>/dev/null | cut -d' ' -f2
lfs setstripe setstripe: unrecognized option '-C'
To create a file with specified striping/composite layout, or
create/replace the default layout on an existing directory:
usage: setstripe [--component-end|-E <comp_end>]
                 [--stripe-count|-c <stripe_count>]
                 [--stripe-index|-i <start_ost_idx>]
                 [--stripe-size|-S <stripe_size>]
                 [--layout|-L <pattern>]
                 [--pool|-p <pool_name>]
                 [--ost|-o <ost_indices>]
                 [--yaml|-y <yaml_template_file>]
                 [--copy=<lustre_src>]
                 <directory|filename>
 or
…

The overstriping feature was landed to b2_13 with patch https://review.whamcloud.com/#/c/28425/ which added the ‘-C’ flag to lfs. We did not backport the overstriping feature to b2_12.

We backported the patch “LU-9341: Add special O_APPEND striping” https://review.whamcloud.com/#/c/37007/ to b2_12 that adds sanity test 27M that uses ‘lfs -C’ .

As suggested by Andreas D., the test should work with using ‘lfs -c 4’, or max OSTs if there aren’t four OSTs configured, instead of ‘lfs -C 4’ . As an additional improvement, we should use "save_layout_restore_at_exit $MOUNT" to restore the root directory layout instead of "save_layout_restore_at_exit $MOUNT" .



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

James Simmons (jsimmons@infradead.org) uploaded a new patch: https://review.whamcloud.com/44340
Subject: LU-14413 test: skip sanity 27M if overstripe is not supported.
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 982fe13246534e4817f4f1e606f220315ca0999d

Comment by Gerrit Updater [ 20/Jul/21 ]

James Simmons (jsimmons@infradead.org) uploaded a new patch: https://review.whamcloud.com/44354
Subject: LU-14413 test: skip sanity 27M if overstripe is not
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: d98cc30d268311ab9ad1280b8a54c3b1652494d6

Comment by Gerrit Updater [ 10/Aug/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44340/
Subject: LU-14413 test: test for overstriping for sanity 27M
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4e1f9c4bd1d96063a1fbb2dfaab41b15836167ab

Comment by Peter Jones [ 10/Aug/21 ]

Landed for 2.15

Comment by Gerrit Updater [ 14/Nov/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44354/
Subject: LU-14413 test: test for overstriping for sanity 27M
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 84f93a1833e250dccbed05c5c233b42be8276158

Generated at Sat Feb 10 03:09:31 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.