Public bug reported:
1.
root@b2:~# lsb_release -rd
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
root@b2:~# cat /etc/cloud/build.info
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://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
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/50-cloud-init.yaml
# 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/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
ethernets:
eth0:
dhcp4: true
mtu: 1501
addresses:
- 2001:4800:78ff:1b:be76:4eff:fe06:96b3/64
bridges:
br0:
addresses: []
accept-ra: true
vlans:
vlan.45:
id: 45
link: eth0
root@b2:~# netplan generate
Error in network definition //etc/netplan/50-cloud-init.yaml line 5 column 0:
unknown key vlans
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: nplan 0.33
ProcVersionSignature: Ubuntu 4.13.0-32.35~16.04.1-generic 4.13.13
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-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: nplan
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: nplan (Ubuntu)
Importance: Undecided
Status: Confirmed
** Tags: amd64 apport-bug bionic third-party-packages uec-images
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1752956
Title:
netplan generate error message points to the wrong line number
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/1752956/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs