nm-keyfile generator can produce invalid "interface-name=..." setting

Bug #1927350 reported by Lukas Märdian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
Fix Released
Undecided
Unassigned

Bug Description

netplan.io v0.102 can produce an invalid keyfile "connection.interface-name" setting, especially when using passthrough mode (i.e. type = NETPLAN_DEF_TYPE_NM).

The value of "interface-name=NM-3599eff2-e438-46d0-8e34-ac38fbd63688" is an invalid interface-name (too long) and the connection profile is thus ignored by NetworkManager.

$ cat /etc/netplan/NM-3599eff2-e438-46d0-8e34-ac38fbd63688.yaml
network:
  version: 2
  ethernets:
    NM-3599eff2-e438-46d0-8e34-ac38fbd63688:
      renderer: NetworkManager
      wakeonlan: true
      networkmanager:
        uuid: 3599eff2-e438-46d0-8e34-ac38fbd63688
        name: "mycon2"
        passthrough:
          connection.permissions: ""
          ethernet.mac-address-blacklist: ""
          ipv4.dns-search: ""
          ipv4.method: "auto"
          ipv6.addr-gen-mode: "stable-privacy"
          ipv6.dns-search: ""
          ipv6.method: "auto"
          proxy._: ""

$ cat /run/NetworkManager/system-connections/netplan-NM-3599eff2-e438-46d0-8e34-ac38fbd63688.nmconnection
[connection]
id=mycon2
type=ethernet
uuid=3599eff2-e438-46d0-8e34-ac38fbd63688
interface-name=NM-3599eff2-e438-46d0-8e34-ac38fbd63688
#Netplan: passthrough setting
permissions=

[ethernet]
wake-on-lan=1
#Netplan: passthrough setting
mac-address-blacklist=

[ipv4]
#Netplan: passthrough override
method=auto
#Netplan: passthrough setting
dns-search=

[ipv6]
#Netplan: passthrough override
method=auto
#Netplan: passthrough setting
addr-gen-mode=stable-privacy
#Netplan: passthrough setting
dns-search=

[proxy]

Revision history for this message
Lukas Märdian (slyon) wrote :

This should be fixed as of netplan v0.103, especially for logical/virtual network interfaces (bridges, bonds, vlans, ...).
Some more testing is needed to verify all the edge cases.

Revision history for this message
Lukas Märdian (slyon) wrote :

Seems to be fixed, please re-open if there are any related issues.

Changed in netplan:
status: New → Fix Released
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.