Bug 22237 - [Anolis23][x86_64][社区nightly & 6.6.88] kernel-selftests测试case:tc-testing.tdc.sh执行fail
Summary: [Anolis23][x86_64][社区nightly & 6.6.88] kernel-selftests测试case:tc-testing.tdc....
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: shuming
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-30 18:12 UTC by gaohongmei
Modified: 2025-07-16 20:33 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gaohongmei 2025-06-30 18:12:22 UTC
Description of problem:

6.6.88环境执行tc-testing.tdc.sh用例fail

Version-Release number of selected component (if applicable):
# uname -r
6.6.88-cbp.git.8932083f9.an23.x86_64

# cat /etc/os-release 
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

How reproducible:


Steps to Reproduce:
# cd /tmp/tone/run/kernel-selftests/tc-testing
# ./tdc.sh 
considering category actions
Unable to import the scapy python module.

If not already installed, you may do so with:
                pip3 install scapy==2.4.2
considering category qdisc
 -- ns/SubPlugin.__init__
Unable to import the scapy python module.

If not already installed, you may do so with:
                pip3 install scapy==2.4.2

# pip3 install scapy==2.4.2
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting scapy==2.4.2
  Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/d0/04/b8512e5126a1816581767bf95cbf525e0681a22c055bcd45f47ecff60170/scapy-2.4.2.tar.gz (795 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 795.5/795.5 kB 8.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: scapy
  Building wheel for scapy (pyproject.toml) ... done
  Created wheel for scapy: filename=scapy-2.4.2-py3-none-any.whl size=905424 sha256=eaa652c5344662f4fa803c15c56bb01fe846f836f25b462e4b411d6999b5a90f
  Stored in directory: /root/.cache/pip/wheels/58/84/e5/2e3bd92d40e8010d4d460e11929f0aac97319604fc0dee2b22
Successfully built scapy
Installing collected packages: scapy
Successfully installed scapy-2.4.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

# ./tdc.sh 
considering category actions
Traceback (most recent call last):
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/./tdc.py", line 899, in <module>
    main()
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/./tdc.py", line 896, in main
    set_operation_mode(pm, parser, args, remaining)
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/./tdc.py", line 846, in set_operation_mode
    args = pm.load_required_plugins(req_plugins, parser, args, remaining)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/./tdc.py", line 109, in load_required_plugins
    self.load_plugin(pgdir, fname)
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/./tdc.py", line 61, in load_plugin
    foo = importlib.import_module('{}.{}'.format(pgdir, pgname))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/plugin-lib/scapyPlugin.py", line 13, in <module>
    from scapy.all import *
  File "/usr/lib/python3.11/site-packages/scapy/all.py", line 18, in <module>
    from scapy.arch import *
  File "/usr/lib/python3.11/site-packages/scapy/arch/__init__.py", line 28, in <module>
    from scapy.arch.bpf.core import get_if_raw_addr
  File "/usr/lib/python3.11/site-packages/scapy/arch/bpf/core.py", line 29, in <module>
    LIBC = cdll.LoadLibrary(find_library("libc"))
                            ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ctypes/util.py", line 330, in find_library
    _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
                ^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ctypes/util.py", line 147, in _findLib_gcc
    if not _is_elf(file):
           ^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ctypes/util.py", line 99, in _is_elf
    with open(filename, 'br') as thefile:
         ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'
considering category qdisc
 -- ns/SubPlugin.__init__
Traceback (most recent call last):
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/./tdc.py", line 899, in <module>
    main()
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/./tdc.py", line 896, in main
    set_operation_mode(pm, parser, args, remaining)
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/./tdc.py", line 846, in set_operation_mode
    args = pm.load_required_plugins(req_plugins, parser, args, remaining)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/./tdc.py", line 109, in load_required_plugins
    self.load_plugin(pgdir, fname)
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/./tdc.py", line 61, in load_plugin
    foo = importlib.import_module('{}.{}'.format(pgdir, pgname))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/var/tmp/tone/run/kernel-selftests/tc-testing/plugin-lib/scapyPlugin.py", line 13, in <module>
    from scapy.all import *
  File "/usr/lib/python3.11/site-packages/scapy/all.py", line 18, in <module>
    from scapy.arch import *
  File "/usr/lib/python3.11/site-packages/scapy/arch/__init__.py", line 28, in <module>
    from scapy.arch.bpf.core import get_if_raw_addr
  File "/usr/lib/python3.11/site-packages/scapy/arch/bpf/core.py", line 29, in <module>
    LIBC = cdll.LoadLibrary(find_library("libc"))
                            ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ctypes/util.py", line 330, in find_library
    _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
                ^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ctypes/util.py", line 147, in _findLib_gcc
    if not _is_elf(file):
           ^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/ctypes/util.py", line 99, in _is_elf
    with open(filename, 'br') as thefile:
         ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'

Actual results:
fail

Expected results:
pass

Additional info:
# free -h 
               total        used        free      shared  buff/cache   available
Mem:            15Gi       992Mi        13Gi        46Mi       975Mi        13Gi
Swap:             0B          0B          0B

# lscpu
Architecture:             x86_64
  CPU op-mode(s):         32-bit, 64-bit
  Address sizes:          46 bits physical, 57 bits virtual
  Byte Order:             Little Endian
CPU(s):                   4
  On-line CPU(s) list:    0-3
Vendor ID:                GenuineIntel
  BIOS Vendor ID:         Alibaba Cloud
  Model name:             Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz
    BIOS Model name:      pc-i440fx-2.1  CPU @ 0.0GHz
    BIOS CPU family:      1
    CPU family:           6
    Model:                106
    Thread(s) per core:   2
    Core(s) per socket:   2
    Socket(s):            1
    Stepping:             6
    BogoMIPS:             5399.99
    Flags:                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp l
                          m constant_tsc rep_good nopl nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2
                          apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault ibrs_enhanced fsgsbase tsc_adjust bmi1
                           avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt
                           xsavec xgetbv1 xsaves wbnoinvd arat avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcn
                          tdq rdpid fsrm arch_capabilities
Virtualization features:  
  Hypervisor vendor:      KVM
  Virtualization type:    full
Caches (sum of all):      
  L1d:                    96 KiB (2 instances)
  L1i:                    64 KiB (2 instances)
  L2:                     2.5 MiB (2 instances)
  L3:                     48 MiB (1 instance)
NUMA:                     
  NUMA node(s):           1
  NUMA node0 CPU(s):      0-3
Vulnerabilities:          
  Gather data sampling:   Unknown: Dependent on hypervisor status
  Itlb multihit:          Not affected
  L1tf:                   Not affected
  Mds:                    Not affected
  Meltdown:               Not affected
  Mmio stale data:        Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
  Reg file data sampling: Not affected
  Retbleed:               Not affected
  Spec rstack overflow:   Not affected
  Spec store bypass:      Vulnerable
  Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:             Mitigation; Enhanced / Automatic IBRS; RSB filling; PBRSB-eIBRS SW sequence; BHI SW loop, KVM SW loop
  Srbds:                  Not affected
  Tsx async abort:        Not affected
Comment 1 gaohongmei 2025-07-14 11:00:27 UTC
6月24日就开始出现

https://tone.openanolis.cn/ws/jfupduzb/test_result/161386
Comment 3 yuki_syq alibaba_cloud_group 2025-07-16 20:33:22 UTC
用例失败是已知问题:CONFIG_NET_ACT_CONNMARK、CONFIG_NAT_ACT_MPLS等相关config没打开导致用例失败