Public bug reported:
Package: cloud-init 0.7.8-1-g3705bb5-0ubuntu1~16.04.3
The file /etc/network/interfaces.d/50-cloud-init.cfg states that:
# 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}
On a system with this file created:
# cat /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
network: {config: disabled}
cloud-init still ends up creating the 50-cloud-init.cfg file. opensnoop
shows that cloud-init is definitely reading that 99-disable-network-
config.cfg file:
# opensnoop /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
Tracing open()s for filenames containing
"/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg". Ctrl-C to end.
COMM PID FD FILE
cloud init 0x3
/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
....
I've been trying to follow the code logic, and I'm not seeing any check to see
if the network configuration is set to disabled or not.
** Affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1640635
Title:
cloud-init creates /etc/network/interfaces.d/50-cloud-init.cfg even if
/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg present
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1640635/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs