Crash on TUN / no MAC address interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan |
New
|
Undecided
|
Unassigned |
Bug Description
"netplan apply" crashes if there's TUN interface or interface with no MAC address in system and "macaddress" matching used in configuration.
I ran into this problem with OpenVPN TUN interface.
Traceback:
Traceback (most recent call last):
File "/usr/sbin/
netplan.main()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
changes = NetplanApply.
File "/usr/share/
current_
File "/usr/share/
matches = list(filter(lambda iface: is_interface_
File "/usr/share/
matches = list(filter(lambda iface: is_interface_
File "/usr/share/
macaddress = get_interface_
File "/usr/share/
link = netifaces.
KeyError: 17
Ubuntu 20.04
netplan.io = 0.101-0ubuntu3~
Some remark: OpenVPN TUN interface is not configured using netplan, it is just presents on the system
Netplan config:
network:
version: 2
renderer: networkd
ethernets:
lan:
addresses:
- 192.168.0.1/24
match:
- 127.0.0.1
search:
- example.net
- office.example.net
set-name: lan
wan:
addresses:
- X.X.X.X/27
gateway4: Y.Y.Y.Y
match:
optional: true
routes:
- to: Z.Z.Z.Z
via: A.A.A.A
set-name: wan
bridges:
dmz:
addresses:
- 192.168.254.1/24
interfaces: []
optional: true
parameters:
stp: false
docker:
addresses:
- 192.168.110.1/24
interfaces: []
optional: true
parameters:
stp: false
svc:
addresses:
- 192.168.111.1/24
interfaces: []
optional: true
parameters:
stp: false
vms:
addresses:
- 192.168.100.1/24
interfaces: []
optional: true
parameters:
stp: false
Duplicate of: https:/ /bugs.launchpad .net/ubuntu/ +source/ netplan. io/+bug/ 1913062
Looks like they patched it there.