Bug 4738 - [Anolis23][x86_64][社区nightly] kernel-selftests测试case:netfilter.conntrack_vrf.sh异常exec of "iperf3" failed: No such file or directory
Summary: [Anolis23][x86_64][社区nightly] kernel-selftests测试case:netfilter.conntrack_vrf....
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact:
URL:
Whiteboard:
Keywords:
: 5594 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-04-07 15:37 UTC by anolislw
Modified: 2023-06-25 14:20 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anolislw alibaba_cloud_group 2023-04-07 15:37:23 UTC
Description of problem:
anolis23 x86 ECS环境,社区版nightly kernel-selftests测试,case:netfilter.conntrack_vrf.sh异常exec of "iperf3" failed: No such file or directory

Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
rpm-i kernel-xxx.src.rpm
yum-builddep -y ~/rpmbuild/SPECS/kernel.spec
rpmbuild -bp ~/rpmbuild/SPECS/kernel.spec
cd ~/rpmbuild/BUILD/kernel-5.10.134-1.git.xxxe.an23/linux-5.10.134-1.git.xxx.an23.x86_64/
cd tools/testing/selftests/netfilter;make
././conntrack_vrf.sh

Actual results:
[root@qibo-anolis23-nightly-func-x86-1 netfilter]# ./conntrack_vrf.sh
PASS: entry found in conntrack zone 1
exec of "iperf3" failed: No such file or directory
FAIL: iperf3 connect failure with masquerade + sport rewrite on vrf device
exec of "iperf3" failed: No such file or directory
FAIL: iperf3 connect failure with masquerade + sport rewrite on vrf device
exec of "iperf3" failed: No such file or directory
FAIL: iperf3 connect failure with masquerade + sport rewrite on veth device


Expected results:
case pass

Additional info:
[root@qibo-anolis23-nightly-func-x86-1 netfilter]# uname -r
5.10.134-71.git.0454ca311219.an23.x86_64
[root@qibo-anolis23-nightly-func-x86-1 netfilter]# cat /etc/anolis-release
Anolis OS release 23
[root@qibo-anolis23-nightly-func-x86-1 netfilter]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs           7.6G     0  7.6G   0% /dev/shm
tmpfs           3.1G  704K  3.1G   1% /run
/dev/vda1        40G  8.8G   32G  22% /
/dev/vdc1        98G  3.3G   90G   4% /tmp
tmpfs           1.6G     0  1.6G   0% /run/user/0
[root@qibo-anolis23-nightly-func-x86-1 netfilter]# free -g
               total        used        free      shared  buff/cache   available
Mem:              15           0          12           0           2          14
Swap:              0           0           0
[root@qibo-anolis23-nightly-func-x86-1 netfilter]# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.10.134-71.git.0454ca311219.an23.x86_64 root=UUID=ece72b7f-465b-433d-8b3b-e5fa53a04642 ro rhgb cryptomgr.notests rcupdate.rcu_cpu_stall_timeout=300 quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
[root@qibo-anolis23-nightly-func-x86-1 netfilter]# 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 lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_kn
                         own_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsa
                         ve avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ibrs_enha
                         nced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap a
                         vx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves w
                         bnoinvd arat avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bital
                         g avx512_vpopcntdq 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:
  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
  Retbleed:              Not affected
  Spec store bypass:     Vulnerable
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Enhanced IBRS, RSB filling, PBRSB-eIBRS SW sequence
  Srbds:                 Not affected
  Tsx async abort:       Not affected
Comment 1 Banana alibaba_cloud_group 2023-06-25 14:18:25 UTC
*** Bug 5594 has been marked as a duplicate of this bug. ***
Comment 2 Banana alibaba_cloud_group 2023-06-25 14:20:38 UTC
Anolis23 ANCK5.10-015版本测试有相同问题

1..1
# selftests: netfilter: conntrack_vrf.sh
# PASS: entry found in conntrack zone 1
# iperf3: error - unable to connect to server: Network is unreachable
# FAIL: iperf3 connect failure with masquerade + sport rewrite on vrf device
# iperf3: error - unable to connect to server: Network is unreachable
# FAIL: iperf3 connect failure with masquerade + sport rewrite on vrf device
# iperf3: error - unable to connect to server: Network is unreachable
# FAIL: iperf3 connect failure with masquerade + sport rewrite on veth device
not ok 1 selftests: netfilter: conntrack_vrf.sh # exit=1

[内核信息]:
[root@iZbp1ii1c5ncl3wps7jauwZ ~]# uname -r
5.10.134-15_rc1.an23.aarch64

[操作系统信息]:
[root@iZbp1ii1c5ncl3wps7jauwZ kernel-selftests]# 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/"

[root@iZbp1ii1c5ncl3wps7jauwZ kernel-selftests]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.16.1.175  netmask 255.255.255.0  broadcast 172.16.1.255
        inet6 fe80::ff16:be8d:22f:71bf  prefixlen 64  scopeid 0x20<link>
        ether 00:16:3e:25:42:18  txqueuelen 1000  (Ethernet)
        RX packets 1396916  bytes 482089576 (459.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 925207  bytes 2122054677 (1.9 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 9858648  bytes 2722323000 (2.5 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 9858648  bytes 2722323000 (2.5 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ltp_ns_veth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.2  netmask 255.255.255.0  broadcast 0.0.0.0
        inet6 fe80::a804:c2ff:fe9d:549  prefixlen 64  scopeid 0x20<link>
        inet6 fd00:1:1:1::2  prefixlen 64  scopeid 0x0<global>
        ether aa:04:c2:9d:05:49  txqueuelen 1000  (Ethernet)
        RX packets 3600499  bytes 2182486850 (2.0 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3610426  bytes 2172429830 (2.0 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth-outside: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::e0aa:e9ff:fead:f837  prefixlen 64  scopeid 0x20<link>
        ether e2:aa:e9:ad:f8:37  txqueuelen 1000  (Ethernet)
        RX packets 108  bytes 7676 (7.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 109  bytes 7806 (7.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[问题发生概率]:
必现

[复现步骤]:
1、安装对应内核的kernel-selftests测试套
2、执行:
    ./run_kselftest.sh -t netfilter.conntrack_vrf.sh
3、查看执行结果