vxlan from net/rtnetlink.sh in ubuntu_kernel_selftests failed on B-5.4

Bug #1905956 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

Issue found on 5.4.0-1030.32~18.04.1-gke
with instance f1.micro and others

 # PASS: set ifalias 13cda380-4dc6-4596-83e6-b03fee5025ce for test-dummy0
 # PASS: vrf
 # FAIL: vxlan
 # PASS: fou
 # PASS: macsec
 # PASS: ipsec

This can be found in 5.4.0-1026.26~18.04.1-gke as well, not a regression.

Maybe it's not supported? I can see vxlan4 related test skipped in net/pmtu.sh test because it's not supported.

This will need to be investigated.

Po-Hsu Lin (cypressyew)
tags: added: 5.4 bionic gke kqa-blocker sru-20201109 ubuntu-kernel-selftests
tags: added: hwe sru-20210315
tags: added: sru-20210412
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

Issue found with bionic/linux-hwe-5.4 5.4.0-79.88~18.04.1.

tags: added: hwe-5.4 sru-20210621
summary: - vxlan from net/rtnetlink.sh in ubuntu_kernel_selftests failed on
- B-gke-5.4
+ vxlan from net/rtnetlink.sh in ubuntu_kernel_selftests failed on B-5.4
tags: added: sru-20211108
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote (last edit ):

I came up with a smaller version of the vxlan exerciser from rtnetlink.sh:

==================================================
$ cat test_vxlan.sh
#!/bin/bash
set -x

# setup
ip link add name test-dummy0 type dummy
ip link set test-dummy0 up
ip netns add testns
ip -netns testns link set lo up
ip -netns testns link add name test-dummy0 type dummy
ip -netns testns link set test-dummy0 up
ip -netns testns link add test-vxlan0 type vxlan id 42 group 239.1.1.1 dev test-dummy0 dstport 4789

# This is expected to fail
ip -netns testns link set dev test-vxlan0 type vxlan ttl inherit
echo $?

# cleanup
ip -netns testns link del test-vxlan0
ip netns del testns
ip link del dev test-dummy0
==================================================

With the same 5.4 kernel, on Focal the line which is flagged as expected to fail returns:

+ ip -netns testns link set dev test-vxlan0 type vxlan ttl inherit
Error: vxlan: cannot change TTL_INHERIT flag.
+ echo 2
2

while on Bionic it succeeds.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Note: this test would require CONFIG_VXLAN.

The following line is failing on B-ibm-5.4:
$ # changelink testcases
$ sudo ip -netns "$testns" link set dev "$vxlan" type vxlan vni 43
Error: Cannot change VNI.

tags: added: sru-20230417
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.