Bug 4427 - [Anolis23][x86_64][nightly][ANCK-5.10-14][ANCK-5.10-15] kernel-selftests测试case:net/test_vxlan_under_vrf.sh run fail
Summary: [Anolis23][x86_64][nightly][ANCK-5.10-14][ANCK-5.10-15] kernel-selftests测试cas...
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: 宁畅
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-07 18:25 UTC by anolislw
Modified: 2023-06-07 10:38 UTC (History)
6 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-03-07 18:25:35 UTC
Description of problem:
Anolis23 x86_64 ECS环境下,社区nightly kernel-selftests测试case:net/test_vxlan_under_vrf.sh run fail

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1)下载内核src源码包
2)rpm-i kernel-xxx.src.rpm
3) yum-builddep -y ~/rpmbuild/SPECS/kernel.spec
4) rpmbuild -bp ~/rpmbuild/SPECS/kernel.spec
5) cd ~/rpmbuild/BUILD/kernel-5.10.xxx.an23/linux-5.10.xxx.an23.x86_64/
6) cd tools/testing/selftests/net && make && ./

Actual results:
[root@qibo-anck14-an23-milan-tmp net]# ./test_vxlan_under_vrf.sh
+ set -e
+ cleanup
+ [[ '' == \c\l\e\a\n ]]
+ trap cleanup EXIT
+ ip link add veth-hv-1 type veth peer name veth-hv-2
+ setup-hv-networking 1
+ hv=1
+ ip netns add hv-1
+ ip link set veth-hv-1 netns hv-1
+ ip -netns hv-1 link set veth-hv-1 name veth0
+ ip -netns hv-1 link add vrf-underlay type vrf table 1
+ ip -netns hv-1 link set vrf-underlay up
+ ip -netns hv-1 addr add 172.16.0.1/24 dev veth0
+ ip -netns hv-1 link set veth0 up
+ ip -netns hv-1 link add br0 type bridge
+ ip -netns hv-1 link set br0 up
+ ip -netns hv-1 link add vxlan0 type vxlan id 10 local 172.16.0.1 dev veth0 dstport 4789
+ ip -netns hv-1 link set vxlan0 master br0
+ ip -netns hv-1 link set vxlan0 up
+ setup-hv-networking 2
+ hv=2
+ ip netns add hv-2
+ ip link set veth-hv-2 netns hv-2
+ ip -netns hv-2 link set veth-hv-2 name veth0
+ ip -netns hv-2 link add vrf-underlay type vrf table 1
+ ip -netns hv-2 link set vrf-underlay up
+ ip -netns hv-2 addr add 172.16.0.2/24 dev veth0
+ ip -netns hv-2 link set veth0 up
+ ip -netns hv-2 link add br0 type bridge
+ ip -netns hv-2 link set br0 up
+ ip -netns hv-2 link add vxlan0 type vxlan id 10 local 172.16.0.2 dev veth0 dstport 4789
+ ip -netns hv-2 link set vxlan0 master br0
+ ip -netns hv-2 link set vxlan0 up
+ echo -n 'Checking HV connectivity                                           '
Checking HV connectivity                                           + ip netns exec hv-1 ping -c 1 -W 1 172.16.0.2
+ echo '[ OK ]'
[ OK ]
+ setup-vm 1
+ id=1
+ ip netns add vm-1
+ ip link add veth-tap type veth peer name veth-hv
+ ip link set veth-tap netns hv-1
+ ip -netns hv-1 link set veth-tap master br0
+ ip -netns hv-1 link set veth-tap up
+ ip link set veth-hv netns vm-1
+ ip -netns vm-1 addr add 10.0.0.1/24 dev veth-hv
+ ip -netns vm-1 link set veth-hv up
+ setup-vm 2
+ id=2
+ ip netns add vm-2
+ ip link add veth-tap type veth peer name veth-hv
+ ip link set veth-tap netns hv-2
+ ip -netns hv-2 link set veth-tap master br0
+ ip -netns hv-2 link set veth-tap up
+ ip link set veth-hv netns vm-2
+ ip -netns vm-2 addr add 10.0.0.2/24 dev veth-hv
+ ip -netns vm-2 link set veth-hv up
+ bridge -netns hv-1 fdb add 00:00:00:00:00:00 dev vxlan0 dst 172.16.0.2 self permanent
+ bridge -netns hv-2 fdb add 00:00:00:00:00:00 dev vxlan0 dst 172.16.0.1 self permanent
+ echo -n 'Check VM connectivity through VXLAN (underlay in the default VRF)  '
Check VM connectivity through VXLAN (underlay in the default VRF)  + ip netns exec vm-1 ping -c 1 -W 1 10.0.0.2
+ echo '[FAIL]'
[FAIL]
+ false
+ cleanup
+ ip link del veth-hv-1
+ true
+ ip link del veth-tap
+ true
+ for ns in hv-1 hv-2 vm-1 vm-2
+ ip netns del hv-1
+ for ns in hv-1 hv-2 vm-1 vm-2
+ ip netns del hv-2
+ for ns in hv-1 hv-2 vm-1 vm-2
+ ip netns del vm-1
+ for ns in hv-1 hv-2 vm-1 vm-2
+ ip netns del vm-2
[root@qibo-anck14-an23-milan-tmp net]# uname -r
5.10.134-38.git.600961b9c9d4.an23.x86_64
[root@qibo-anck14-an23-milan-tmp net]# cat /etc/anolis-release
Anolis OS release 23

Expected results:
case pass

Additional info:
root@qibo-anck14-an23-milan-tmp net]# uname -a
Linux qibo-anck14-an23-milan-tmp 5.10.134-38.git.600961b9c9d4.an23.x86_64 #1 SMP Mon Mar 6 22:39:14 CST 2023 x86_64 GNU/Linux
[root@qibo-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# cat /etc/anolis-release
Anolis OS release 23
[root@qibo-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           6.2G  552K  6.2G   1% /run
/dev/vda2        40G   12G   29G  30% /
tmpfs            16G   32K   16G   1% /tmp
tmpfs           3.1G     0  3.1G   0% /run/user/0
[root@qibo-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# free -g
               total        used        free      shared  buff/cache   available
Mem:              30           0          27           0           2          29
Swap:              0           0           0
[root@qibo-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-5.10.134-38.git.600961b9c9d4.an23.x86_64 root=UUID=29bfdd09-2855-44bd-a225-8f2a34c15e78 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-anck14-an23-milan-tmp net]#
[root@qibo-anck14-an23-milan-tmp net]# lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  8
  On-line CPU(s) list:   0-7
Vendor ID:               AuthenticAMD
  BIOS Vendor ID:        Alibaba Cloud
  Model name:            AMD EPYC 7T83 64-Core Processor
    BIOS Model name:     pc-i440fx-2.1  CPU @ 0.0GHz
    BIOS CPU family:     1
    CPU family:          25
    Model:               1
    Thread(s) per core:  2
    Core(s) per socket:  4
    Socket(s):           1
    Stepping:            1
    BogoMIPS:            5090.43
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht s
                         yscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid t
                         sc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline
                         _timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowp
                         refetch osvw topoext invpcid_single vmmcall tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx sma
                         p clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr rdpru wbnoinvd arat vaes vpc
                         lmulqdq rdpid fsrm
Virtualization features:
  Hypervisor vendor:     KVM
  Virtualization type:   full
Caches (sum of all):
  L1d:                   128 KiB (4 instances)
  L1i:                   128 KiB (4 instances)
  L2:                    2 MiB (4 instances)
  L3:                    32 MiB (1 instance)
NUMA:
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-7
Vulnerabilities:
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Not affected
  Spec store bypass:     Vulnerable
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                 Not affected
  Tsx async abort:       Not affected
Comment 1 anolislw alibaba_cloud_group 2023-03-09 13:05:29 UTC
在Anolis8-5.10-x86_64-func-nightly该case是pass的
------------------------------------------------
  {
    "testcase": "net.test_vxlan_under_vrf.sh",
    "value": "Pass"
  },
Comment 2 宁畅 alibaba_cloud_group 2023-03-15 10:02:48 UTC
vxlan 属于低优先级处理范畴,暂时 delay
Comment 3 宁畅 alibaba_cloud_group 2023-03-28 17:17:44 UTC
nightly 测试最好给出哪天 success,哪天 fail 的具体日期
Comment 4 Banana alibaba_cloud_group 2023-06-07 10:38:51 UTC
Anolis23 arm nightly环境有相同问题

[root@qibo-anolis23-nightly-func-arm-1 ~]# uname -r
5.10.134-125.git.21e574ab8b57.an23.aarch64

[root@qibo-anolis23-nightly-func-arm-1 ~]# 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/"