Whamcloud - gitweb
LU-16101 tests: skip sanity/27J for more kernels 36/54036/2
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 4 Jul 2023 23:08:03 +0000 (17:08 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Apr 2024 05:23:49 +0000 (05:23 +0000)
This is a bug in the kernel that is not present in older kernels
before commit v5.11-10234-gcbd59c48ae2b (5.12), and is fixed with
commit v6.2-rc4-61-g5956592ce337 (6.2).

Move this from ALWAYS_EXCEPT (bug that needs to be fixed) to skip
(test that is known to fail in some configs but has been fixed).

Lustre-change: https://review.whamcloud.com/51567
Lustre-commit: b711af7d243f3773cec3a37f64c0e0aa8bbc363f

Fixes: 63dd644 ("LU-16101 tests: add sanity/27J to always_except")
Test-Parameters: trivial testlist=sanity clientdistro=el9.2 env=ONLY=27J
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I8ec0a6d25a90e05672b039cd6c2b2fbf8a3ebbe5
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54036
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity.sh

index 4f79e27..a6f75b2 100755 (executable)
@@ -75,13 +75,6 @@ if (( $LINUX_VERSION_CODE >= $(version_code 4.18.0) &&
        ALWAYS_EXCEPT+=" 411"
 fi
 
-# skip basic ops on file with foreign LOV tests on 5.16.0+ kernels
-# until the filemap_read() issue is fixed
-if (( $LINUX_VERSION_CODE >= $(version_code 5.16.0) )); then
-       # bug number for skipped test: LU-16101
-       ALWAYS_EXCEPT="$ALWAYS_EXCEPT  27J"
-fi
-
 #skip ACL tests on RHEL8 and SLES15 until tests changed to use other users
 if (( $(egrep -cw "^bin|^daemon" /etc/passwd) < 2 )); then
        # bug number:   LU-15259 LU-15259
@@ -128,10 +121,6 @@ if [ -r /etc/SuSE-release ] || [ -r /etc/SUSE-brand ]; then
        [ $sles_version -lt $(version_code 12.0.0) ] &&
                # bug number for skipped test: LU-3703
                ALWAYS_EXCEPT="$ALWAYS_EXCEPT  234"
-
-       [ $sles_version -ge $(version_code 15.4.0) ] &&
-               # bug number for skipped test: LU-16101
-               ALWAYS_EXCEPT="$ALWAYS_EXCEPT  27J"
 elif [ -r /etc/os-release ]; then
        if grep -qi ubuntu /etc/os-release; then
                ubuntu_version=$(version_code $(sed -n -e 's/"//g' \
@@ -2772,9 +2761,15 @@ test_27I() {
 run_test 27I "check that root dir striping does not break parent dir one"
 
 test_27J() {
-       [[ $MDS1_VERSION -le $(version_code 2.12.51) ]] &&
+       (( $MDS1_VERSION > $(version_code 2.12.51) )) ||
                skip "Need MDS version newer than 2.12.51"
 
+       # skip basic ops on file with foreign LOV tests on 5.12-6.2 kernels
+       # until the filemap_read() issue is fixed by v6.2-rc4-61-g5956592ce337
+       (( $LINUX_VERSION_CODE < $(version_code 5.12.0) ||
+          $LINUX_VERSION_CODE >= $(version_code 6.2.0) )) ||
+               skip "Need kernel < 5.12.0 or >= 6.2.0 for filemap_read() fix"
+
        test_mkdir $DIR/$tdir
        local uuid1=$(cat /proc/sys/kernel/random/uuid)
        local uuid2=$(cat /proc/sys/kernel/random/uuid)