Whamcloud - gitweb
LU-17216 ofd: skip sanity/70a on old OSTs 70/53770/4
authorTimothy Day <timday@amazon.com>
Tue, 23 Jan 2024 03:33:27 +0000 (03:33 +0000)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Feb 2024 07:10:28 +0000 (07:10 +0000)
OSTs older than 2.15.59 won't have enable_health_write.
So skip the sanity/70a that requires it.

Test-Parameters: trivial
Test-Parameters: testlist=sanity clientversion=2.15 env=ONLY=70a,ONLY_REPEAT=10
Test-Parameters: testlist=sanity serverversion=2.15 env=ONLY=70a,ONLY_REPEAT=10
Fixes: e383791 ("LU-17216 ofd: make enable_health_write tunable")
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I320f6911e7b7064d49761a022c462b7c20f3a2e1
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53770
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter
lustre/tests/sanity.sh

index b15c2ca..f396747 100755 (executable)
@@ -10461,8 +10461,9 @@ test_69() {
 run_test 69 "verify oa2dentry return -ENOENT doesn't LBUG ======"
 
 test_70a() {
-       # Perform a really simple test of health write
-       # and health check
+       # Perform a really simple test of health write and health check
+       (( $OST1_VERSION >= $(version_code 2.15.59) )) ||
+               skip "OSTs < 2.15.59 doesn't have enable_health_write"
 
        local orig_value="$(do_facet ost1 $LCTL get_param -n enable_health_write)"