ubuntu_fan_smoke_test failed on 4.4/4.15/4.18 kvm & azure kernel

Bug #1763323 reported by Po-Hsu Lin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
linux-azure (Ubuntu)
Fix Released
Medium
Unassigned
Xenial
Fix Released
Medium
Unassigned
Bionic
Fix Released
Undecided
Unassigned
Cosmic
Fix Released
Undecided
Unassigned
linux-kvm (Ubuntu)
Won't Fix
Undecided
Unassigned
Xenial
Won't Fix
Undecided
Unassigned
Bionic
Won't Fix
Undecided
Unassigned
Cosmic
Won't Fix
Undecided
Unassigned

Bug Description

The "enable disable fan test" will fail with Xenial KVM kernel

Error message:
  RTNETLINK answers: Operation not supported
  /usr/sbin/fanctl: ip link add ftun0 type vxlan id 16384000 dev ens4 dstport 0 local 10.246.72.56 fan-map 250.0.0.0/8:10.246.0.0/16
  /usr/sbin/fanctl: WARNING: ftun0: failed to configure address translation
  RTNETLINK answers: Cannot assign requested address
  iptables v1.6.0: Couldn't load target `fan-egress':No such file or directory

  Try `iptables -h' or 'iptables --help' for more information.
  iptables: Bad rule (does a matching rule exist in that chain?).
  iptables: Bad rule (does a matching rule exist in that chain?).
  iptables: No chain/target/match by that name.
  rm: cannot remove '/run/ubuntu-fan/nat-core': No such file or directory
  /usr/sbin/fanatic: unable to bring fan up, unable to configure

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-1021-kvm 4.4.0-1021.26
ProcVersionSignature: User Name 4.4.0-1021.26-kvm 4.4.117
Uname: Linux 4.4.0-1021-kvm x86_64
ApportVersion: 2.20.1-0ubuntu2.16
Architecture: amd64
Date: Thu Apr 12 10:22:57 2018
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
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
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 1763323

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):
importance: Undecided → Medium
Changed in linux (Ubuntu Xenial):
importance: Undecided → Medium
status: New → Triaged
Changed in linux (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: ubuntu_fan_smoke_test failed on 4.4/4.15 kvm kernel

Can be found on 4.15 kvm as well.

summary: - ubuntu_fan_smoke_test failed on 4.4 X-kvm kernel
+ ubuntu_fan_smoke_test failed on 4.4/4.15 kvm kernel
tags: added: bionic
Revision history for this message
Sean Feole (sfeole) wrote :

Hi Sam, is this still an issue?
+60 day bug with no action on it, marking bug as incomplete and will
close in 5 days if no update.

Changed in ubuntu-kernel-tests:
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Changed in ubuntu-kernel-tests:
status: Incomplete → Confirmed
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Discussed with smb and jvosburgh, this issue is similar to bug 1570565, some configs are missing for the KVM kernel.

$ grep -e VXLAN -e IPIP ubuntu-*-kvm/debian.kvm/config/config.common.ubuntu
ubuntu-bionic-kvm/debian.kvm/config/config.common.ubuntu:# CONFIG_NET_IPIP is not set
ubuntu-bionic-kvm/debian.kvm/config/config.common.ubuntu:# CONFIG_VXLAN is not set

ubuntu-xenial-kvm/debian.kvm/config/config.common.ubuntu:CONFIG_NET_IPIP=y
ubuntu-xenial-kvm/debian.kvm/config/config.common.ubuntu:# CONFIG_VXLAN is not set

The fan tunneling uses IPIP or VXLAN, if both of these config were disabled, then this fan stuff is not expected to work and the test should be disabled on the KVM kernel.

But the IPIP was enabled on Xenial KVM kernel, we will need to discuss this.

Sean Feole (sfeole)
summary: - ubuntu_fan_smoke_test failed on 4.4/4.15 kvm kernel
+ ubuntu_fan_smoke_test failed on 4.4/4.15 kvm & azure kernel
tags: added: azure
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: ubuntu_fan_smoke_test failed on 4.4/4.15 kvm & azure kernel

Spotted on Cosmic KVM as well.

summary: - ubuntu_fan_smoke_test failed on 4.4/4.15 kvm & azure kernel
+ ubuntu_fan_smoke_test failed on 4.4/4.15/4.18 kvm & azure kernel
Po-Hsu Lin (cypressyew)
tags: added: cosmic
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

For comment #6, CONFIG_NET_IPIP has been enabled for all KVM kernels:
$ grep -e IPIP ubuntu-kvm-*/debian.kvm/config/config.common.ubuntu
ubuntu-kvm-bionic/debian.kvm/config/config.common.ubuntu:CONFIG_NET_IPIP=y
ubuntu-kvm-cosmic/debian.kvm/config/config.common.ubuntu:CONFIG_NET_IPIP=y
ubuntu-kvm-disco/debian.kvm/config/config.common.ubuntu:CONFIG_NET_IPIP=y
ubuntu-kvm-xenial/debian.kvm/config/config.common.ubuntu:CONFIG_NET_IPIP=y

As per discussion with Kamal:
    Disable the test case, on the grounds that "fan is not supported" in linux-kvm (until the fan folks or a customer asks for it to be supported).

Therefore I will mark this as Won't fix for KVM kernels.

Changed in linux-kvm (Ubuntu):
status: New → Won't Fix
Changed in linux-kvm (Ubuntu Bionic):
status: New → Won't Fix
Changed in linux-kvm (Ubuntu Cosmic):
status: New → Won't Fix
Changed in linux-kvm (Ubuntu Xenial):
status: New → Won't Fix
tags: added: ubuntu-fan-smoke-test
affects: linux (Ubuntu) → linux-azure (Ubuntu)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This test has passed with Azure kernels (example output for 4.18.0-1019.19~18.04.1 Azure):
ubuntu_fan:0051|
ubuntu_fan:0051| Testing Fan Networking (pre-0.13.0 API)
ubuntu_fan:0051| docker pull ubuntu: PASSED
ubuntu_fan:0051| enable disable fan test: PASSED
ubuntu_fan:0051| fanctl show test: PASSED
ubuntu_fan:0051| fanctl check bridge config test: PASSED
ubuntu_fan:0051| fanatic docker test(--dns=168.63.129.16): PASSED

Changed in linux-azure (Ubuntu Xenial):
status: Triaged → Fix Released
Changed in linux-azure (Ubuntu Bionic):
status: New → Fix Released
Changed in linux-azure (Ubuntu):
status: Triaged → Fix Released
Changed in linux-azure (Ubuntu Cosmic):
status: New → Fix Committed
Changed in ubuntu-kernel-tests:
status: Confirmed → Fix Released
Changed in linux-azure (Ubuntu Cosmic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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