Bug 2796 - [ANCK-4.19][anolis8 debug nightly][x86_64]blktests:nvme/002:discovery log page疑似超过4K大小,无法获取日志信息
Summary: [ANCK-4.19][anolis8 debug nightly][x86_64]blktests:nvme/002:discovery log pag...
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Jacob
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-08 17:39 UTC by zhixin01
Modified: 2022-11-08 17:58 UTC (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhixin01 alibaba_cloud_group 2022-11-08 17:39:44 UTC
[缺陷描述]:
discovery log page疑似超过4K大小,无法获取日志信息

部分日志信息:
Running nvme/002
Discovery Log Number of Records 1000, Generation counter X
=====Discovery Log Entry 0======
trtype:  loop
subnqn:  blktests-subsystem-0
=====Discovery Log Entry 1======
trtype:  loop
subnqn:  blktests-subsystem-1
=====Discovery Log Entry 2======
trtype:  loop
subnqn:  blktests-subsystem-2
=====Discovery Log Entry 3======
trtype:  unrecognized------------------------------无法获取信息
subnqn:--------------------------------------------无法获取信息
=====Discovery Log Entry 4======
trtype:  loop
subnqn:  blktests-subsystem-0
=====Discovery Log Entry 5======
trtype:  loop
subnqn:  blktests-subsystem-1
=====Discovery Log Entry 6======
trtype:  loop
subnqn:  blktests-subsystem-2
=====Discovery Log Entry 7======
trtype:  unrecognized------------------------------无法获取信息
subnqn:--------------------------------------------无法获取信息
=====Discovery Log Entry 8======
trtype:  loop
subnqn:  blktests-subsystem-0
=====Discovery Log Entry 9======
trtype:  loop
subnqn:  blktests-subsystem-1
=====Discovery Log Entry 10======
trtype:  loop
subnqn:  blktests-subsystem-0

[重现概率]:
必现

[重现环境]:
环境信息:物理机

OS:
KERNEL: 
# uname -r
4.19.91-516.git.0883ecf752.an8.x86_64+debug

MEMORY:
# free -h
              total        used        free      shared  buff/cache   available
Mem:          438Gi        17Gi       419Gi        73Mi       1.8Gi       418Gi
Swap:         2.0Gi          0B       2.0Gi

CPU:
# lscpu
Architecture:         x86_64
CPU op-mode(s):       32-bit, 64-bit
Byte Order:           Little Endian
CPU(s):               96
On-line CPU(s) list:  1,3,5,9-11,13-18,20,21,23,24,27-29,33-36,39-44,48,54,56,58-60,62-66,68,69,73,75,76
Off-line CPU(s) list: 0,2,4,6-8,12,19,22,25,26,30-32,37,38,45-47,49-53,55,57,61,67,70-72,74,77-95
Thread(s) per core:   1
Core(s) per socket:   17
Socket(s):            2
NUMA node(s):         1
Vendor ID:            GenuineIntel
BIOS Vendor ID:       Intel(R) Corporation
CPU family:           6
Model:                85
Model name:           Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
BIOS Model name:      Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
Stepping:             4
CPU MHz:              2800.066
CPU max MHz:          3100.0000
CPU min MHz:          1000.0000
BogoMIPS:             5000.00
Virtualization:       VT-x
L1d cache:            32K
L1i cache:            32K
L2 cache:             1024K
L3 cache:             33792K
NUMA node0 CPU(s):    1,3,5,9-11,13-18,20,21,23,24,27-29,33-36,39-44,48,54,56,58-60,62-66,68,69,73,75,76
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 art 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 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke md_clear flush_l1d arch_capabilities

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

NVME版本:
# rpm -qa | grep nvme
nvme-cli-1.16-3.an8.x86_64

[复现步骤]:
git clone  https://github.com/osandov/blktests.git blktests
cd blktests
make
make install prefix=./run_blktests
cd ./run_blktests/blktests
wipefs -a -f /dev/nvme0n1
mountpoint /export
partprobe /dev/nvme0n1
parted -s /dev/nvme0n1 mklabel gpt mkpart primary 2048 3662830
Use TEST_DEVS=(/dev/nvme0n1p1)
[2022-11-08 16:39:02] modprobe -n -q loop
[2022-11-08 16:39:02] modprobe -n -q nvme-loop
[2022-11-08 16:39:02] modprobe -n -q nvmet
[2022-11-08 16:39:02] modprobe -n -q nvme-core
./check nvme/002

[期望结果]:
用例pass

[实际结果]:
用例fail


[原因分析]:
这个用例主要测试在同一个nvmet port下面建立大量 subsystem,然后执行 nvme discover -t loop 查看信息
port下面所有的subsystem配置一样,但是第4个、第8个(..第4的倍数个)subsystem日志信息就无法查看,这疑似是个问题

部分展示日志如下:
Running nvme/002
Discovery Log Number of Records 1000, Generation counter X
=====Discovery Log Entry 0======
trtype:  loop
subnqn:  blktests-subsystem-0
=====Discovery Log Entry 1======
trtype:  loop
subnqn:  blktests-subsystem-1
=====Discovery Log Entry 2======
trtype:  loop
subnqn:  blktests-subsystem-2
=====Discovery Log Entry 3======
trtype:  unrecognized
subnqn:
=====Discovery Log Entry 4======
trtype:  loop
subnqn:  blktests-subsystem-0
=====Discovery Log Entry 5======
trtype:  loop
subnqn:  blktests-subsystem-1
=====Discovery Log Entry 6======
trtype:  loop
subnqn:  blktests-subsystem-2
=====Discovery Log Entry 7======
trtype:  unrecognized
subnqn:
=====Discovery Log Entry 8======
trtype:  loop
subnqn:  blktests-subsystem-0
=====Discovery Log Entry 9======
trtype:  loop
subnqn:  blktests-subsystem-1
=====Discovery Log Entry 10======
trtype:  loop
subnqn:  blktests-subsystem-0