add bond primary parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nplan (Ubuntu) |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
Xenial |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
Zesty |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
Artful |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Dimitri John Ledkov | ||
Zesty |
Fix Released
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Some complex bond configurations require setting a "primary" interface for the bond, or setting this greatly improves performance on the network bond.
[Test case]
See below for a configuration example.
1) Apply configuration on a system with netplan.
2) Run 'netplan apply'
3) Validate that netplan apply does not return with an error
4) Validate that netplan properly sets the "primary_slave" value on the bond. This can be verified by looking at /sys/class/
5) Validate that there are no parsing errors from systemd-networkd in the journalctl
[Regression potential]
If existing configuration fails to be parsed, or lack of primary interface breaks configuration for existing bonds, this would be a regression caused by this update.
---
ifenslave/eni support a bond parameter: bond-primary which accepts an interface name that can be used to tell the kernel bonding driver which interface it should preferred in active-backup (and other modes). This config option is missing in netplan.
% cat bond-primary.yaml
network:
version: 2
ethernets:
eth0:
match:
driver: virtio
ens4:
match:
driver: e1000
bonds:
bond0:
parameters:
mode: active-backup
primary: e1000
dhcp4: true
% ./generate -r `pwd`/target
Error in network definition /home/rharper/
Changed in nplan (Ubuntu): | |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
importance: | Undecided → High |
milestone: | none → ubuntu-17.08 |
status: | New → Triaged |
description: | updated |
description: | updated |
tags: | added: id-5988c3a877d5e440aecf0c3a |
tags: | added: id-5988c348d036b6f6acb1e389 |
description: | updated |
This maps to networkd Bond config parameter: PrimarySlave=