Bug 6200 - [nightly] xfstests:ext4-nfsv4.2-2测试用例generic/683执行失败,-666 -rw-rw-rw- TEST_DIR/683/a,+6666 -rwSrwSrw- TEST_DIR/683/a
Summary: [nightly] xfstests:ext4-nfsv4.2-2测试用例generic/683执行失败,-666 -rw-rw-rw- TEST_DIR...
Status: CLOSED WONTFIX
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: shuancue
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-23 14:42 UTC by wangpingping
Modified: 2023-08-23 14:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wangpingping alibaba_cloud_group 2023-08-23 14:42:43 UTC
[缺陷描述]:
alinux3 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 wangpingping alibaba_cloud_group 2023-08-23 14:45:06 UTC
测试提交
Comment 2 wangpingping alibaba_cloud_group 2023-08-23 14:46:55 UTC
测试bugzilla提交拦截,无效单,关闭