Whamcloud - gitweb
LU-14111 tests: only support recovery-small test 146 for 2.15.54+ 98/52098/4
authorJames Simmons <jsimmons@infradead.org>
Fri, 25 Aug 2023 22:42:23 +0000 (18:42 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 6 Sep 2023 06:17:27 +0000 (06:17 +0000)
If you running newer clients with older servers (2.15.3) then
recovery-small test 146 will fail since the old servers lack
the new sysfs file eviction_count.

Fixes: 3c69d46e176 ("LU-14111 obdclass: count eviction per obd_device")
Test-Parameters: trivial testlist=recovery-small env=ONLY=146 mdsversion=2.15.3
Change-Id: I53f6dabd305ec920e8de1d9fde407b2f2c15ba69
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52098
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/recovery-small.sh

index 7a4ec2b..266a54a 100755 (executable)
@@ -3203,6 +3203,9 @@ $(do_facet mds1 $LCTL get_param -n mdt.$FSNAME-MDT0000.recovery_time_hard)
 run_test 145 "connect mdtlovs and process update logs after recovery expire"
 
 test_146() {
+       (( $MDS1_VERSION >= $(version_code 2.15.54.6) )) ||
+               skip "Need MDS >= v2_15_54-6-g3c69d46e17 for eviction_count"
+
        local prev_count=$(do_facet $SINGLEMDS \
                $LCTL get_param -n "mdt.${mds1_svc}.eviction_count")