group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #29016
[Bug 1815051] Re: Bionic netplan render invalid yaml duplicate anchor declaration for nameserver entries
This bug was fixed in the package cloud-init -
18.5-45-g3554ffe8-0ubuntu1
---------------
cloud-init (18.5-45-g3554ffe8-0ubuntu1) disco; urgency=medium
* New upstream snapshot.
- cloud-init-per: POSIX sh does not support string subst, use sed
(LP: #1819222)
-- Daniel Watkins <oddbloke@xxxxxxxxxx> Fri, 08 Mar 2019 17:42:34
-0500
** Changed in: cloud-init (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1815051
Title:
Bionic netplan render invalid yaml duplicate anchor declaration for
nameserver entries
Status in cloud-init:
Fix Committed
Status in cloud-init package in Ubuntu:
Fix Released
Status in cloud-init source package in Xenial:
Confirmed
Status in cloud-init source package in Bionic:
Confirmed
Status in cloud-init source package in Cosmic:
Confirmed
Bug description:
The netplan configuration redeclares the nameservers anchor for every
single section (vlans, bonds), and use the same id for similar entries
(id001).
In this specific case the network configuration in maas have a bond0
with two vlans, bond0.3502 and bond0.3503, and an untagged bond1
without vlans. The rendered 50-cloud-init.yaml looks like this:
network:
version: 2
ethernets:
...
bonds:
...
bond1:
...
nameservers: &id001 <- anchor declaration here
addresses:
- 255.255.255.1
- 255.255.255.2
- 255.255.255.3
- 255.255.255.5
search:
- customer.domain
- maas
...
bondM:
...
nameservers: *id001
vlans:
bond0.3502:
...
nameservers: &id001 <- anchor redeclaration here
addresses:
- 255.255.255.1
- 255.255.255.2
- 255.255.255.3
- 255.255.255.5
search:
- customer.domain
- maas
bond0.3503:
...
nameservers: *id001
As the cloudinit renders an invalid yaml file, the netplan apply
produces the following error: (due to the anchor redeclaration in the
vlans section):
Invalid YAML at /etc/netplan/50-cloud-init.yaml line 118 column 25:
second occurence
This render bug prevents us using the untagged bond and the bond with
the vlans in the same configuration.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1815051/+subscriptions