Bug 11920 - [xfstests]xfstests测试套ext4文件格式执行generic/563用例fail,/sys/fs/cgroup/563-cg/io.stat: No such file or directory
Summary: [xfstests]xfstests测试套ext4文件格式执行generic/563用例fail,/sys/fs/cgroup/563-cg/io.sta...
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-18 15:39 UTC by Banana
Modified: 2024-12-04 14:14 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Banana alibaba_cloud_group 2024-11-18 15:39:15 UTC
[问题描述]:
xfstests测试套ext4文件格式执行generic/563测试项FAIL,/sys/fs/cgroup/563-cg/io.stat: No such file or directory

FSTYP         -- ext4
PLATFORM      -- Linux/aarch64 4f7Lab15 6.6.25-2.2_rc1.an23.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Oct 31 21:22:28 CST 2024
MKFS_OPTIONS  -- -F /dev/nvme0n1p2
MOUNT_OPTIONS -- -o acl,user_xattr /dev/nvme0n1p2 /fs/nvme0n1p2

generic/563       - output mismatch (see /root/xfstests/results//generic/563.out.bad)
    --- tests/generic/563.out   2024-11-12 15:17:30.310088760 +0800
    +++ /root/xfstests/results//generic/563.out.bad     2024-11-18 10:25:00.936238260 +0800
    @@ -1,14 +1,24 @@
     QA output created by 563
     read/write
    -read is in range
    -write is in range
    +cat: /sys/fs/cgroup/563-cg/io.stat: No such file or directory
    +read has value of 0
    +read is NOT in range 7969177.6 .. 8808038.4
    ...
    (Run 'diff -u /root/xfstests/tests/generic/563.out /root/xfstests/results//generic/563.out.bad'  to see the entire diff)
Ran: generic/563
Failures: generic/563
Failed 1 of 1 tests

[root@4f7Lab15 ~]# mount | grep cgroup
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
[root@4f7Lab15 ~]# cat /proc/cgroups
#subsys_name    hierarchy       num_cgroups     enabled
cpuset  0       649     1
cpu     0       649     1
cpuacct 1       1       1
blkio   0       649     1
memory  0       649     1
devices 0       649     1
freezer 0       649     1
net_cls 0       649     1
perf_event      0       649     1
net_prio        0       649     1
hugetlb 0       649     1
pids    0       649     1
rdma    0       649     1

[环境信息]:
机器类型:ECS

[内核信息]:
[root@4f7Lab15 xfstests]# uname -r
6.6.25-2.2_rc1.an23.aarch64

[操作系统信息]:
[root@4f7Lab15 xfstests]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23.1"
ID="anolis"
VERSION_ID="23.1"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23.1"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[文件系统]
[root@4f7Lab15 xfstests]# df -Th
文件系统       类型      大小  已用  可用 已用% 挂载点
/dev/sda4      xfs       221G   16G  205G    8% /
devtmpfs       devtmpfs  4.0M     0  4.0M    0% /dev
tmpfs          tmpfs     378G     0  378G    0% /dev/shm
efivarfs       efivarfs   88K   59K   30K   67% /sys/firmware/efi/efivars
tmpfs          tmpfs     152G  3.9M  152G    1% /run
/dev/sda2      xfs       960M  217M  744M   23% /boot
tmpfs          tmpfs     378G     0  378G    0% /tmp
/dev/sda1      vfat      200M  6.5M  194M    4% /boot/efi
tmpfs          tmpfs      76G   64K   76G    1% /run/user/42
tmpfs          tmpfs      76G   44K   76G    1% /run/user/0

[问题发生概率]:
必现

[复现步骤]:
1、部署xfstests环境
2、部署测试环境
wipefs -a -f /dev/nvme0n1
wipefs -a -f /dev/nvme0n1
partprobe /dev/nvme0n1
parted -s /dev/nvme0n1 mklabel gpt mkpart primary 2048 104448
partprobe /dev/nvme0n1
parted -s /dev/nvme0n1 mkpart primary 104448 206848
mkfs -t ext4 -E lazy_itable_init=0,lazy_journal_init=0 -L OStest -q -F  -q -F /dev/nvme0n1p1
mount  /dev/nvme0n1p1 /fs/nvme0n1p1
mkfs -t ext4 -E lazy_itable_init=0,lazy_journal_init=0 -L OStest -q -F  -q -F /dev/nvme0n1p2
mount  /dev/nvme0n1p2 /fs/nvme0n1p2
export FSTYP=ext4
export TEST_DEV=/dev/nvme0n1p1
export SCRATCH_DEV=/dev/nvme0n1p2
export TEST_DIR=/fs/nvme0n1p1
export SCRATCH_MNT=/fs/nvme0n1p2

3、执行./check tests/generic/563命令
Comment 1 anolislw alibaba_cloud_group 2024-11-18 18:46:52 UTC
[Anolis23.2][6.6.25-2.2_rc1][x86_64]xfstests测试套ext4文件格式执行generic/563用例存在同样问题
============================
[root@5f9Lab15 xfstests]# ./check generic/563
FSTYP         -- ext4
PLATFORM      -- Linux/x86_64 5f9Lab15 6.6.25-2.2_rc1.an23.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 31 21:26:10 CST 2024
MKFS_OPTIONS  -- -F /dev/nvme0n1p2
MOUNT_OPTIONS -- -o acl,user_xattr /dev/nvme0n1p2 /mnt/nvme0n1p2

generic/563       - output mismatch (see /root/tone/run/xfstests/results//generic/563.out.bad)
    --- tests/generic/563.out   2024-11-12 14:40:38.601484232 +0800
    +++ /root/tone/run/xfstests/results//generic/563.out.bad    2024-11-18 18:44:03.081256031 +0800
    @@ -1,14 +1,24 @@
     QA output created by 563
     read/write
    -read is in range
    -write is in range
    +cat: /sys/fs/cgroup/563-cg/io.stat: No such file or directory
    +read has value of 0
    +read is NOT in range 7969177.6 .. 8808038.4
    ...
    (Run 'diff -u /root/tone/run/xfstests/tests/generic/563.out /root/tone/run/xfstests/results//generic/563.out.bad'  to see the entire diff)
Ran: generic/563
Failures: generic/563
Failed 1 of 1 tests
Comment 2 yunmeng365524 2024-12-04 14:14:22 UTC
非新增问题,后续版本跟踪,记录做基线