Bridge gets created while the network interfaces are still being renamed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bridge-utils (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
netplan.io (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have a problem with bridge configuration for the interfaces on my system that I also happen to rename explicitly.
Specifically, I have following network configuration:
# WAN interface
auto wan
iface wan inet dhcp
# LAN interfaces
iface wlan inet manual
iface lan1 inet manual
iface lan2 inet manual
iface lan3 inet manual
# LAN bridge
auto lan
iface lan inet static
address 10.0.0.1
netmask 255.255.255.0
I use systemd .link files for renaming each of the 5 bridged interfaces, e.g.
cat /etc/systemd/
[Match]
MACAddress=
[Link]
Name=lan1
(BTW, I previously used udev rules to handle the renaming, before I migrated to systemd .link files hoping for improvement)
Upon system boot, I see following messages:
Dec 13 16:03:38 trout kernel: [ 2.619999] r8169 0000:03:00.0 lan3: renamed from eth0
Dec 13 16:03:38 trout kernel: [ 2.729493] igb 0000:01:00.0 wlan: renamed from eth1
Dec 13 16:03:38 trout kernel: [ 2.867121] igb 0000:01:00.2 lan2: renamed from eth2
Dec 13 16:03:38 trout kernel: [ 2.879221] igb 0000:01:00.1 lan1: renamed from eth0
Dec 13 16:03:38 trout kernel: [ 2.899203] igb 0000:01:00.3 wan: renamed from eth3
Dec 13 16:03:38 trout kernel: [ 20.572747] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts t
o load br_netfilter if you need this.
Dec 13 16:03:38 trout kernel: [ 20.575364] device lan1 entered promiscuous mode
Dec 13 16:03:38 trout kernel: [ 20.705483] IPv6: ADDRCONF(
Dec 13 16:03:38 trout kernel: [ 21.097073] rename7: renamed from lan
Dec 13 16:04:29 trout systemd-udevd[466]: seq 2799 '/devices/
Dec 13 16:04:59 trout systemd-udevd[540]: error changing net interface name 'lan' to 'lan1': File exists
Dec 13 16:04:59 trout systemd-udevd[540]: could not rename interface '7' from 'lan' to 'lan1': File exists
Dec 13 16:04:59 trout systemd[1]: Started ifup for lan.
Dec 13 16:04:59 trout systemd[1]: sys-subsystem-
Dec 13 16:04:59 trout systemd[1]: sys-subsystem-
Dec 13 16:04:59 trout systemd-udevd[543]: Could not generate persistent MAC address for lan: No such file or directory
Dec 13 16:04:59 trout systemd[1]: Started ifup for lan.
Dec 13 16:04:59 trout systemd[1]: Found device /sys/subsystem/
Dec 13 16:04:59 trout kernel: [ 111.797526] device wlan entered promiscuous mode
Dec 13 16:04:59 trout ifup[1753]: /sbin/ifup: waiting for lock on /run/network/
Dec 13 16:04:59 trout kernel: [ 111.943158] device lan3 entered promiscuous mode
Dec 13 16:05:00 trout kernel: [ 112.240052] r8169 0000:03:00.0 lan3: link down
Dec 13 16:05:00 trout kernel: [ 112.240081] r8169 0000:03:00.0 lan3: link down
Dec 13 16:05:00 trout kernel: [ 112.242397] IPv6: ADDRCONF(
Dec 13 16:05:00 trout sh[1689]: Waiting for lan to get ready (MAXWAIT is 32 seconds).
Dec 13 16:05:00 trout CRON[1841]: (root) CMD ([ -x /usr/sbin/dma ] && /usr/sbin/dma -q1)
Dec 13 16:05:01 trout kernel: [ 113.610184] igb 0000:01:00.2 lan2: igb: lan2 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX
Dec 13 16:05:01 trout kernel: [ 113.610324] lan: port 2(lan2) entered forwarding state
Dec 13 16:05:01 trout kernel: [ 113.610365] lan: port 2(lan2) entered forwarding state
Dec 13 16:05:01 trout kernel: [ 113.610486] IPv6: ADDRCONF(
And after the boot process completes, the bridge is not configured as requested:
# brctl show
bridge name bridge id STP enabled interfaces
lan 8000.7085c2026d54 no lan2
rename7 8000.90e2baaee821 no lan1
Note that while the "rename7" name of the bridge seems to be constant, the interface bridged is not.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: systemd 229-4ubuntu21
ProcVersionSign
Uname: Linux 4.4.0-103-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.14
Architecture: amd64
Date: Wed Dec 13 16:11:11 2017
InstallationDate: Installed on 2016-07-28 (503 days ago)
InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
ProcEnviron:
SHELL=/bin/bash
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/27/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.00
dmi.board.name: QC5000-ITX/PH
dmi.board.vendor: ASRock
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: To Be Filled By O.E.M.
dmi.product.
dmi.sys.vendor: To Be Filled By O.E.M.
I previously said that the "rename7" bridge name seemed constant, but after playing around a bit today I noticed that it's not exactly so. For example, I just saw following bridge setup after restarting my server:
bridge name bridge id STP enabled interfaces
lan 8000.7085c2026d54 no lan1
lan3
veth0P2CUY
veth0QOJAX
veth2MHFCX
vethS3BS5A
rename10 8000.90e2baaee820 no wlan
rename7 8000.90e2baaee822 no lan2