rtnetlink.sh in net from ubuntu_kernel_selftests failed on KVM kernels (config not enabled)

Bug #1812194 reported by Po-Hsu Lin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux (Ubuntu)
Incomplete
Undecided
Unassigned
Bionic
Incomplete
Undecided
Unassigned
Focal
New
Undecided
Unassigned
Groovy
New
Undecided
Unassigned
Hirsute
Won't Fix
Undecided
Unassigned
linux-kvm (Ubuntu)
New
Undecided
Unassigned
Bionic
New
Undecided
Unassigned
Focal
New
Undecided
Unassigned
Groovy
New
Undecided
Unassigned
Hirsute
Won't Fix
Undecided
Unassigned

Bug Description

This test failed because of the unsuccessful attempt to add a dummy device with ip link command:
    # devdummy="test-dummy0"
    # ip link add name "$devdummy" type dummy
    RTNETLINK answers: Operation not supported

 selftests: rtnetlink.sh
 ========================================
 RTNETLINK answers: Operation not supported
 Cannot find device "test-dummy0"
 FAIL: cannot add dummy interface
 not ok 1..10 selftests: rtnetlink.sh [FAIL]

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-1028-kvm 4.15.0-1028.28
ProcVersionSignature: User Name 4.15.0-1028.28-kvm 4.15.18
Uname: Linux 4.15.0-1028-kvm x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
Date: Thu Jan 17 10:21:02 2019
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)

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

Found in 4.18 Bionic AWS as well.

Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :
Changed in linux-kvm (Ubuntu Cosmic):
status: New → Invalid
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1812194

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu Bionic):
status: New → Incomplete
Changed in linux (Ubuntu Cosmic):
status: New → Incomplete
Po-Hsu Lin (cypressyew)
tags: added: linux-kvm sru-20190603
tags: added: ubuntu-kernel-selftests
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: RTNETLINK in net from ubuntu_kernel_selftests failed on KVM kernels

Error message on D-KVM:
 selftests: net: rtnetlink.sh
 ========================================
 Error: Unknown device type.
 Cannot find device "test-dummy0"
 FAIL: cannot add dummy interface
 not ok 1..11 selftests: net: rtnetlink.sh [FAIL]

tags: added: sru-20190701
tags: added: 5.0 disco
Po-Hsu Lin (cypressyew)
tags: added: sru-20200316
Steve Langasek (vorlon)
Changed in linux (Ubuntu Disco):
status: New → Won't Fix
Changed in linux-kvm (Ubuntu Disco):
status: New → Won't Fix
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This test will need:
CONFIG_DUMMY
CONFIG_NETDEVSIM

To be set to either Y or M.

Po-Hsu Lin (cypressyew)
summary: - RTNETLINK in net from ubuntu_kernel_selftests failed on KVM kernels
+ rtnetlink.sh in net from ubuntu_kernel_selftests failed on KVM kernels
+ (config not enabled)
tags: added: 5.4 focal kvm sru-20210315
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Found on Focal/linux-kvm, cycle sru-20210412

tags: added: sru-20210412
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Found on Bionic/linux-kvm, cycle sru-20210412

Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed in F/KVM, cycle sru-20210510.

tags: added: sru-20210510
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed on G/KVM, cycle sru-20210510 .

tags: added: groovy
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed on B/KVM, cycle sru-20210510 .

Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed on H/KVM, cycle sru-20210510 .

tags: added: 5.11 hirsute
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Observed on G/KVM, cycle sru-20210531 .

tags: added: sru-20210531
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

bserved with focal/linux: 5.4.0-76.85.

no longer affects: linux (Ubuntu Disco)
no longer affects: linux-kvm (Ubuntu Disco)
no longer affects: linux (Ubuntu Cosmic)
no longer affects: linux-kvm (Ubuntu Cosmic)
Revision history for this message
Brian Murray (brian-murray) wrote :

The Hirsute Hippo has reached End of Life, so this bug will not be fixed for that release.

Changed in linux (Ubuntu Hirsute):
status: New → Won't Fix
Changed in linux-kvm (Ubuntu Hirsute):
status: New → Won't Fix
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Download full text (4.0 KiB)

With config_dummy enabled for KVM kernels (bug 1998244) this test is now failing with:

 Running 'make run_tests -C net TEST_PROGS=rtnetlink.sh TEST_GEN_PROGS='' TEST_CUSTOM_PROGS='''
 make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net'
 make --no-builtin-rules ARCH=x86 -C ../../../.. headers_install
 make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
   INSTALL ./usr/include
 make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
 TAP version 13
 1..1
 # selftests: net: rtnetlink.sh
 # PASS: policy routing
 # sysctl: cannot stat /proc/sys/net/ipv4/fib_multipath_hash_policy: No such file or directory
 # Error: Multipath support not enabled in kernel.
 # sysctl: cannot stat /proc/sys/net/ipv4/fib_multipath_hash_policy: No such file or directory
 # sysctl: cannot stat /proc/sys/net/ipv4/fib_multipath_hash_policy: No such file or directory
 # sysctl: cannot stat /proc/sys/net/ipv4/fib_multipath_hash_policy: No such file or directory
 # RTNETLINK answers: No such process
 # FAIL: route get
 # PASS: preferred_lft addresses have expired
 # PASS: promote_secondaries complete
 # RTNETLINK answers: Operation not supported
 # RTNETLINK answers: Operation not supported
 # RTNETLINK answers: Operation not supported
 # We have an error talking to the kernel
 # RTNETLINK answers: Operation not supported
 # We have an error talking to the kernel
 # RTNETLINK answers: Operation not supported
 # We have an error talking to the kernel
 # RTNETLINK answers: Operation not supported
 # We have an error talking to the kernel
 # RTNETLINK answers: Operation not supported
 # We have an error talking to the kernel
 # RTNETLINK answers: Operation not supported
 # Dump terminated
 # RTNETLINK answers: Operation not supported
 # We have an error talking to the kernel
 # RTNETLINK answers: Operation not supported
 # Dump terminated
 # RTNETLINK answers: Operation not supported
 # FAIL: tc htb hierarchy
 # add tunnel "gre0" failed: No such device
 # Cannot find device "neta"
 # Cannot find device "neta"
 # Cannot find device "neta"
 # Device "neta" does not exist.
 # Device "neta" does not exist.
 # Device "neta" does not exist.
 # FAIL: ip netconf show neta
 # Cannot find device "neta"
 # FAIL: gre tunnel endpoint
 # Error: Unknown device type.
 # Cannot find device "gretap00"
 # Cannot find device "gretap00"
 # Cannot find device "gretap00"
 # Error: Unknown device type.
 # Cannot find device "gretap00"
 # FAIL: gretap
 # Error: Unknown device type.
 # Cannot find device "ip6gretap00"
 # Cannot find device "ip6gretap00"
 # Cannot find device "ip6gretap00"
 # Error: Unknown device type.
 # Cannot find device "ip6gretap00"
 # FAIL: ip6gretap
 # Error: Unknown device type.
 # Cannot find device "erspan00"
 # Cannot find device "erspan00"
 # Cannot find device "erspan00"
 # Error: Unknown device type.
 # Cannot find device "erspan00"
 # Cannot find device "erspan00"
 # Cannot find device "erspan00"
 # Error: Unknown device type.
 # Cannot find device "erspan00"
 # FAIL: erspan
 # Error: Unknown device type.
 # Cannot fi...

Read more...

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.