[Bug 2077636] [NEW] renderer property lost when set at the end of a network.<type> stanza

Danilo Egea Gondolfo 2077636 at bugs.launchpad.net
Thu Aug 22 14:25:54 UTC 2024


Public bug reported:

Consider the example below:

network:
  renderer: NetworkManager
  ethernets:
    eth0: {}
    eth1: {}
    renderer: networkd
  bonds:
    bond0: {}
    bond1: {}
    renderer: networkd

It's expected that networkd would be used for ethernets and bonds but
it's actually lost:

$ netplan get --root-dir /tmp/fakeroot
network:
  version: 2
  renderer: NetworkManager
  ethernets:
    eth0: {}
    eth1: {}
  bonds:
    bond0: {}
    bond1: {}

In this case all the configuration will be generated for Network
Manager.

When it's moved to the top it is set per netdef:

$ cat /tmp/fakeroot/etc/netplan/asd.yaml
network:
  renderer: NetworkManager
  ethernets:
    renderer: networkd
    eth0: {}
    eth1: {}
  bonds:
    renderer: networkd
    bond0: {}
    bond1: {}

$ netplan get --root-dir /tmp/fakeroot
network:
  version: 2
  renderer: NetworkManager
  ethernets:
    eth0:
      renderer: networkd
    eth1:
      renderer: networkd
  bonds:
    bond0:
      renderer: networkd
    bond1:
      renderer: networkd

** 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/2077636

Title:
  renderer property lost when set at the end of a network.<type> stanza

Status in netplan.io package in Ubuntu:
  New

Bug description:
  Consider the example below:

  network:
    renderer: NetworkManager
    ethernets:
      eth0: {}
      eth1: {}
      renderer: networkd
    bonds:
      bond0: {}
      bond1: {}
      renderer: networkd

  It's expected that networkd would be used for ethernets and bonds but
  it's actually lost:

  $ netplan get --root-dir /tmp/fakeroot
  network:
    version: 2
    renderer: NetworkManager
    ethernets:
      eth0: {}
      eth1: {}
    bonds:
      bond0: {}
      bond1: {}

  In this case all the configuration will be generated for Network
  Manager.

  When it's moved to the top it is set per netdef:

  $ cat /tmp/fakeroot/etc/netplan/asd.yaml
  network:
    renderer: NetworkManager
    ethernets:
      renderer: networkd
      eth0: {}
      eth1: {}
    bonds:
      renderer: networkd
      bond0: {}
      bond1: {}

  $ netplan get --root-dir /tmp/fakeroot
  network:
    version: 2
    renderer: NetworkManager
    ethernets:
      eth0:
        renderer: networkd
      eth1:
        renderer: networkd
    bonds:
      bond0:
        renderer: networkd
      bond1:
        renderer: networkd

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




More information about the foundations-bugs mailing list