netplan fails to parse 'mtu' key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nplan (Ubuntu) |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned | ||
Zesty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Users of netplan may wish to specify a custom MTU value for a device.
[Test case]
- Run nplan integration tests on the release
- Validate that netplan generate && netplan apply alone, without config, behave as expected (no result)
- Validate that netplan generate && netplan apply with minimal config writes /run/NetworkMan
- Validate that netplan generate && netplan apply works with any existing configuation.
- Use the following config; ensure behavior is as expected (MTU value is set on the interface; adjust device name as appropriate):
network:
version: 2
ethernets:
eno1:
match:
macaddress: xx:xx:xx:xx:xx:xx
dhcp4: true
mtu: 1280
[Regression potential]
Adding the 'mtu' setting on pre-existing valid configuration should not cause a failure to apply the configuration. Similarly, unchanged existing configurations should continue to behave as they previously did, with no changes in MTU values.
---
1. root@z1:
Description: Ubuntu Zesty Zapus (development branch)
Release: 17.04
2. root@z1:
nplan:
Installed: 0.18
Candidate: 0.18
Version table:
*** 0.18 500
500 http://
100 /var/lib/
3. netplan generate renders a config with MTU setting
4. root@z1:
Error in network definition //etc/netplan/
root@z1:
network:
version: 2
ethernets:
eno1:
dhcp4: true
mtu: 1280
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: nplan 0.18
ProcVersionSign
Uname: Linux 4.4.0-62-generic x86_64
ApportVersion: 2.20.4-0ubuntu2
Architecture: amd64
Date: Tue Feb 28 16:47:13 2017
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
SourcePackage: nplan
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Mathieu Trudel-Lapierre (community): Approve
-
Diff: 274 lines (+103/-28)6 files modifiedsrc/netplan (+8/-0)
src/networkd.c (+5/-6)
src/parse.c (+26/-21)
src/parse.h (+3/-0)
tests/generate.py (+38/-1)
tests/integration.py (+23/-0)
Changed in nplan (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
milestone: | none → ubuntu-17.03 |
Changed in nplan (Ubuntu): | |
milestone: | ubuntu-17.03 → ubuntu-17.05 |
description: | updated |
description: | updated |
description: | updated |
I've filed a systemd bug for ipv6 mtu here (along with a potential patch)
https:/ /bugs.launchpad .net/ubuntu/ +source/ systemd/ +bug/1671951