Bug 6196 - [ANCK-5.10-16][nightly] xfstests:ext4-nfsv4.2-2测试用例generic/683执行失败,-666 -rw-rw-rw- TEST_DIR/683/a,+6666 -rwSrwSrw- TEST_DIR/683/a
Summary: [ANCK-5.10-16][nightly] xfstests:ext4-nfsv4.2-2测试用例generic/683执行失败,-666 -rw-r...
Status: RESOLVED WORKSFORME
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-22 16:25 UTC by shanxifanshi
Modified: 2023-11-02 17:16 UTC (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shanxifanshi alibaba_cloud_group 2023-08-22 16:25:30 UTC
[缺陷描述]:
anolis 8 5.10 x86,xfstests:ext4-nfsv4.2-2测试用例generic/683执行失败,-666 -rw-rw-rw- TEST_DIR/683/a,+6666 -rwSrwSrw- TEST_DIR/683/a

失败日志如下:
# ./check generic/683
FSTYP         -- nfs
PLATFORM      -- Linux/x86_64 e69b01521 5.10.134-85.git.138a5871a7.an8.x86_64 #1 SMP Mon Aug 21 11:46:07 UTC 2023
MKFS_OPTIONS  -- localhost:/fs/sdb2
MOUNT_OPTIONS -- -o vers=4.2 localhost:/fs/sdb2 /nfs/sdb2

generic/683       - output mismatch (see /tmp/tone/run/xfstests/results//generic/683.out.bad)
    --- tests/generic/683.out   2023-08-22 11:13:46.322713672 +0800
    +++ /tmp/tone/run/xfstests/results//generic/683.out.bad     2023-08-22 16:23:02.582120095 +0800
    @@ -1,19 +1,19 @@
     QA output created by 683
     Test 1 - qa_user, non-exec file falloc
     6666 -rwSrwSrw- TEST_DIR/683/a
    -666 -rw-rw-rw- TEST_DIR/683/a
    +6666 -rwSrwSrw- TEST_DIR/683/a

     Test 2 - qa_user, group-exec file falloc
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/683.out /tmp/tone/run/xfstests/results//generic/683.out.bad'  to see the entire diff)
Ran: generic/683
Failures: generic/683
Failed 1 of 1 tests


[复现概率]:
必现

[复现环境]:

内核:
# uname -r
5.10.134-85.git.138a5871a7.an8.x86_64

# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.8"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.8"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.8"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"


CPU信息:
# lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              24
On-line CPU(s) list: 0-23
Thread(s) per core:  2
Core(s) per socket:  12
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Intel
CPU family:          6
Model:               63
Model name:          Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
BIOS Model name:     Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
Stepping:            2
CPU MHz:             1496.613
CPU max MHz:         2500.0000
CPU min MHz:         1200.0000
BogoMIPS:            4988.38
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            30720K
NUMA node0 CPU(s):   0-23
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm arat pln pts md_clear flush_l1d


内存信息:
# free -h
              total        used        free      shared  buff/cache   available
Mem:           62Gi       2.0Gi        60Gi       235Mi       731Mi        59Gi
Swap:         2.0Gi        49Mi       2.0Gi


[复现步骤]:
1.下载并编译测试套
git clone --branch kernel-5.10 https://code.alibaba-inc.com/AKTF/xfstests-dev.git
cd xfstests
export CFLAGS="-fcommon"
make configure
./configure
make && make install

2.环境准备
dmsetup remove_all
wipefs -a --force /dev/sdb1
wipefs -a --force /dev/sdb2
mkfs -t ext4 -q -F /dev/sdb1
mkfs -t ext4 -q -F /dev/sdb2
mkdir -p /fs/sdb1
mount -t ext4 /dev/sdb1 /fs/sdb1
mkdir -p /fs/sdb2
mount -t ext4 /dev/sdb2 /fs/sdb2
yum install -y nfs-utils nfs4-acl-tools
mkdir -p /export
mount -t tmpfs nfsv4_root_export /export
mkdir -p /export//fs/sdb1
mount --bind /fs/sdb1 /export//fs/sdb1
echo '/export *(fsid=0,rw,no_subtree_check,no_root_squash)' > /etc/exports
echo '/export//fs/sdb1 *(rw,no_subtree_check,no_root_squash)' >> /etc/exports
mkdir -p /export//fs/sdb2
mount --bind /fs/sdb2 /export//fs/sdb2
echo '/export//fs/sdb2 *(rw,no_subtree_check,no_root_squash)' >> /etc/exports
systemctl restart rpcbind
systemctl restart nfs-server
exportfs -r
mkdir -p /nfs/sdb1
mount -t nfs -o vers=4.2 localhost:/fs/sdb1 /nfs/sdb1
mkdir -p /nfs/sdb2
mount -t nfs -o vers=4.2 localhost:/fs/sdb2 /nfs/sdb2
umount -f -l /nfs/sdb1 /nfs/sdb2 /fs/sdb1 /fs/sdb2
export TEST_DIR=/nfs/sdb1
export TEST_DEV=/dev/sdb1
export nfsvers=4.2
export FSTYP=nfs
export SCRATCH_MNT=/fs/scratch
mkdir /nfs/sdb1 -p
mkdir /fs/scratch -p
chmod 755 -R /fs
export SCRATCH_DEV=/dev/sdb2
export TEST_DIR=/nfs/sdb1
export SCRATCH_MNT=/nfs/sdb2
export TEST_DEV=localhost:/fs/sdb1
export SCRATCH_DEV=localhost:/fs/sdb2
export 'TEST_FS_MOUNT_OPTS=-o vers=4.2'
export 'MOUNT_OPTIONS=-o vers=4.2'
chmod 755 -R /nfs

4.执行测试用例
./check generic/683


[预期结果]:
用例执行成功

[实际结果]:
用例执行失败
Comment 1 shanxifanshi alibaba_cloud_group 2023-08-22 16:26:42 UTC
nfs vers 4.2 xfstests测试,generic/684存在同样问题

# ./check generic/684
FSTYP         -- nfs
PLATFORM      -- Linux/x86_64 e69b01521 5.10.134-85.git.138a5871a7.an8.x86_64 #1 SMP Mon Aug 21 11:46:07 UTC 2023
MKFS_OPTIONS  -- localhost:/fs/sdb2
MOUNT_OPTIONS -- -o vers=4.2 localhost:/fs/sdb2 /nfs/sdb2

generic/684       - output mismatch (see /tmp/tone/run/xfstests/results//generic/684.out.bad)
    --- tests/generic/684.out   2023-08-22 11:13:46.540720357 +0800
    +++ /tmp/tone/run/xfstests/results//generic/684.out.bad     2023-08-22 16:25:48.001168205 +0800
    @@ -1,19 +1,19 @@
     QA output created by 684
     Test 1 - qa_user, non-exec file fpunch
     6666 -rwSrwSrw- TEST_DIR/684/a
    -666 -rw-rw-rw- TEST_DIR/684/a
    +6666 -rwSrwSrw- TEST_DIR/684/a

     Test 2 - qa_user, group-exec file fpunch
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/684.out /tmp/tone/run/xfstests/results//generic/684.out.bad'  to see the entire diff)
Ran: generic/684
Failures: generic/684
Failed 1 of 1 tests
Comment 2 shanxifanshi alibaba_cloud_group 2023-10-13 17:54:18 UTC
alinux3 016版本测试,x86机器上这个问题仍然存在,在nfs vers 4.2文件系统,用例fail,在nfs vers 4.0、nfs vers 4.1文件系统用例都是skip的。

# uname -r
5.10.134-16_rc1.al8.x86_64

generic/683 1s ... - output mismatch (see /var/tmp/tone/run/xfstests/results//generic/683.out.bad)
    --- tests/generic/683.out	2023-10-11 10:50:54.000000000 +0800
    +++ /var/tmp/tone/run/xfstests/results//generic/683.out.bad	2023-10-13 10:33:16.780090792 +0800
    @@ -1,19 +1,19 @@
     QA output created by 683
     Test 1 - qa_user, non-exec file falloc
     6666 -rwSrwSrw- TEST_DIR/683/a
    -666 -rw-rw-rw- TEST_DIR/683/a
    +6666 -rwSrwSrw- TEST_DIR/683/a
     
     Test 2 - qa_user, group-exec file falloc
    ...
    (Run 'diff -u /var/tmp/tone/run/xfstests/tests/generic/683.out /var/tmp/tone/run/xfstests/results//generic/683.out.bad'  to see the entire diff)
generic/684 0s ... - output mismatch (see /var/tmp/tone/run/xfstests/results//generic/684.out.bad)
    --- tests/generic/684.out	2023-10-11 10:50:55.000000000 +0800
    +++ /var/tmp/tone/run/xfstests/results//generic/684.out.bad	2023-10-13 10:33:17.466096981 +0800
    @@ -1,19 +1,19 @@
     QA output created by 684
     Test 1 - qa_user, non-exec file fpunch
     6666 -rwSrwSrw- TEST_DIR/684/a
    -666 -rw-rw-rw- TEST_DIR/684/a
    +6666 -rwSrwSrw- TEST_DIR/684/a
     
     Test 2 - qa_user, group-exec file fpunch
    ...
    (Run 'diff -u /var/tmp/tone/run/xfstests/tests/generic/684.out /var/tmp/tone/run/xfstests/results//generic/684.out.bad'  to see the entire diff)
Comment 3 yunmeng365524 2023-10-18 14:41:19 UTC
在016版本内部跟踪
Comment 4 anolislw alibaba_cloud_group 2023-11-02 17:16:04 UTC

anolis8 aarch64环境下 ,xfstests nightly测试xfs-nfsv4.2-2/generic/683,xfs-nfsv4.2-2/generic/684该相似的问题依然存在
===================================
generic/683       - output mismatch (see /tmp/tone/run/xfstests/results//generic/683.out.bad)
    --- tests/generic/683.out	2023-11-01 11:53:08.781054418 +0800
    +++ /tmp/tone/run/xfstests/results//generic/683.out.bad	2023-11-01 22:16:29.252157212 +0800
    @@ -1,19 +1,19 @@
     QA output created by 683
     Test 1 - qa_user, non-exec file falloc
     6666 -rwSrwSrw- TEST_DIR/683/a
    -666 -rw-rw-rw- TEST_DIR/683/a
    +6666 -rwSrwSrw- TEST_DIR/683/a
     
     Test 2 - qa_user, group-exec file falloc
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/683.out /tmp/tone/run/xfstests/results//generic/683.out.bad'  to see the entire diff)
generic/684       - output mismatch (see /tmp/tone/run/xfstests/results//generic/684.out.bad)
    --- tests/generic/684.out	2023-11-01 11:53:10.197081335 +0800
    +++ /tmp/tone/run/xfstests/results//generic/684.out.bad	2023-11-01 22:16:31.628202333 +0800
    @@ -1,19 +1,19 @@
     QA output created by 684
     Test 1 - qa_user, non-exec file fpunch
     6666 -rwSrwSrw- TEST_DIR/684/a
    -666 -rw-rw-rw- TEST_DIR/684/a
    +6666 -rwSrwSrw- TEST_DIR/684/a
     
     Test 2 - qa_user, group-exec file fpunch
    ...
    (Run 'diff -u /tmp/tone/run/xfstests/tests/generic/684.out /tmp/tone/run/xfstests/results//generic/684.out.bad'  to see the entire diff)