netplan generate error message points to the wrong line number
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nplan (Ubuntu) |
In Progress
|
Medium
|
Mathieu Trudel-Lapierre |
Bug Description
1.
root@b2:~# lsb_release -rd
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
root@b2:~# cat /etc/cloud/
build_name: server
serial: 20180224
2.
root@b2:~# apt-cache policy nplan
nplan:
Installed: 0.33
Candidate: 0.33
Version table:
*** 0.33 500
500 http://
100 /var/lib/
3. netplan generate detects invalid config, in error message reports the line and column correctly to where the error was found.
4. netplan generate reports an error, but the location isn't accurate.
root@b2:~# cat /etc/netplan/
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/
# network: {config: disabled}
network:
version: 2
ethernets:
eth0:
dhcp4: true
mtu: 1501
- 2001:4800:
bridges:
br0:
vlans:
vlan.45:
id: 45
link: eth0
root@b2:~# netplan generate
Error in network definition //etc/netplan/
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: nplan 0.33
ProcVersionSign
Uname: Linux 4.13.0-32-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
Date: Fri Mar 2 18:51:49 2018
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: nplan
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.