Page MenuHomeVyOS Platform

SR-IOV and interface renaming bug
Closed, ResolvedPublicBUG

Description

VyOS installation has two virtio interfaces and two hardware (sr-iov) interfaces with dynamic MAC addresses.

Virtio interfaces:

ethernet eth0 {
    hw-id b6:09:2c:b9:0a:88
}
ethernet eth1 {
    hw-id 8e:1f:fb:ab:29:ec
}

After reboot, one hardware interface is lost,

[    2.054253] mlx4_core 0000:00:10.0 e2: renamed from eth0
[    2.171394] mlx4_core 0000:00:10.0 e3: renamed from eth0
[    2.189142] virtio_net virtio2 e4: renamed from eth0
[    2.197300] virtio_net virtio3 e5: renamed from eth1
[   20.613576] virtio_net virtio3 eth1: renamed from e5
[   20.642283] virtio_net virtio2 eth0: renamed from e4
[   21.791637] mlx4_core 0000:00:10.0 eth2: renamed from e3

But e2 interface was not renamed to eth3.

>ip link
2: e2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether da:c6:e8:d1:78:2e brd ff:ff:ff:ff:ff:ff
3: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether da:9e:0f:a3:68:84 brd ff:ff:ff:ff:ff:ff
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether b6:09:2c:b9:0a:88 brd ff:ff:ff:ff:ff:ff
5: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9900 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 8e:1f:fb:ab:29:ec brd ff:ff:ff:ff:ff:ff

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202111281249
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)