puppet-network icon indicating copy to clipboard operation
puppet-network copied to clipboard

Ubuntu 20.04 bonded interfaces don't work -- explicitly disables slave/member interfaces in manifests/bond/debian.pp

Open legooolas opened this issue 2 years ago • 0 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: All (tested on 6.28.0)
  • Ruby: 2.5.9p229 from Puppet 6
  • Distribution: Testing on Ubuntu 20.04 (but affects any Debian-based distro?)
  • Module version: github head, or 1.0.1 from Puppet Forge give same behaviour

How to reproduce (e.g Puppet code you use)

network::bond { 'bond0':
  ensure    => 'present',
  hotplug   => false,
  family    => 'inet'
  method    => 'none',
  ipaddress => '1.2.3.4',
  netmask   => '255.255.255.0',
  onboot    => true,
  slaves    => ['eth0', 'eth1'],
  mode      => 'active-backup',
  miimon    => '100',
}

What are you seeing

Slave interfaces are explicitly disabled in manifests/bond/debian.pp but they need basic configuration in the interfaces file to be present for them to become a member of the bond.

What behaviour did you expect instead

Calling network_config to add slave interfaces as bond members.

Output log

Can provide more logging info, but Puppet ensures that the slave interface configs are absent, as requested in the network::bond::debian class by network_config { $slaves: ... }

Any additional information you'd like to impart

The network::bond::redhat class does the right thing here and sets ensure to the same as the bond interface.

legooolas avatar Nov 10 '22 14:11 legooolas