Public bug reported:
Hello,
In Ubuntu 18.04 with cloud-init 18.2-14-g6d48d265-0ubuntu1, the OpenNebula data
source generates an invalid netplan yaml file if the IPv6 gateway is not
defined in context.sh:
network:
ethernets:
eth0:
addresses:
- 10.22.33.44/22
gateway4: 10.22.33.1
gateway6: null
match:
macaddress: 02:00:00:00:aa:bb
nameservers:
addresses:
- 10.22.22.22
- 10.33.33.33
version: 2
Netplan will not apply this config:
# netplan try
Error in network definition //etc/netplan/50-cloud-init.yaml line 11 column 22:
invalid IPv6 address 'null'
This is due to a typo in DataSourceOpenNebula.py, attached is a patch
which fixes it.
Cheers,
Corey Melanson
** Affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Patch added: "DataSourceOpenNebula.py.patch"
https://bugs.launchpad.net/bugs/1768547/+attachment/5132094/+files/DataSourceOpenNebula.py.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768547
Title:
OpenNebula DataSource adds null gateway6 to netplan config
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1768547/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs