[Bug 2077092] [NEW] Setting an invalid bond primary via NetworkManager will break the YAML configuration

Danilo Egea Gondolfo 2077092 at bugs.launchpad.net
Thu Aug 15 13:24:14 UTC 2024


Public bug reported:

Network Manager will not do any validation for this setting so one can
end up creating invalid YAML configuration:

Example:

# netplan get bonds.nm-bond0
renderer: NetworkManager
dhcp4: true
dhcp6: true
parameters:
  mode: "active-backup"
networkmanager:
  uuid: "f5de1095-8944-4800-901d-fdca83ab6583"
  name: "Bond connection 1"
  passthrough:
    connection.timestamp: "1723727772"
    ethernet._: ""
    ipv6.addr-gen-mode: "default"
    ipv6.ip6-privacy: "-1"
    proxy._: ""


# nmcli con mod Bond\ connection\ 1  bond.options "mode=active-backup,primary=eth123"

# netplan get bonds.nm-bond0
Command failed: /etc/netplan/90-NM-f5de1095-8944-4800-901d-fdca83ab6583.yaml:10:18: Error in network definition: nm-bond0: interface 'eth123' is not defined
        primary: "eth123"
                 ^

** Affects: netplan.io (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2077092

Title:
  Setting an invalid bond primary via NetworkManager will break the YAML
  configuration

Status in netplan.io package in Ubuntu:
  New

Bug description:
  Network Manager will not do any validation for this setting so one can
  end up creating invalid YAML configuration:

  Example:

  # netplan get bonds.nm-bond0
  renderer: NetworkManager
  dhcp4: true
  dhcp6: true
  parameters:
    mode: "active-backup"
  networkmanager:
    uuid: "f5de1095-8944-4800-901d-fdca83ab6583"
    name: "Bond connection 1"
    passthrough:
      connection.timestamp: "1723727772"
      ethernet._: ""
      ipv6.addr-gen-mode: "default"
      ipv6.ip6-privacy: "-1"
      proxy._: ""

  
  # nmcli con mod Bond\ connection\ 1  bond.options "mode=active-backup,primary=eth123"

  # netplan get bonds.nm-bond0
  Command failed: /etc/netplan/90-NM-f5de1095-8944-4800-901d-fdca83ab6583.yaml:10:18: Error in network definition: nm-bond0: interface 'eth123' is not defined
          primary: "eth123"
                   ^

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2077092/+subscriptions




More information about the foundations-bugs mailing list