cloudinit/stages.py uses 'net.is_disabled_cfg()'.

I just verified on a fresh lxc container.

 * boot system
 * lxc exec x1 
   % echo "network: {config: disabled}" > 
/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
   % rm /etc/network/interfaces.d/50-cloud-init.cfg
   % reboot
 * lxc exec x1 
   % cat /etc/network/interfaces.d/50-cloud-init.cfg
   cat: /etc/network/interfaces.d/50-cloud-init.cfg: No such file or directory
   % dpkg-query --show cloud-init
   cloud-init   0.7.8-1-g3705bb5-0ubuntu1~16.04.3

   % grep "INFO.*disabled" /var/log/cloud-init.log 
   Nov 10 02:07:59 xt1 [CLOUDINIT] stages.py[INFO]: network config is disabled 
by system_cfg
   Nov 10 02:08:00 xt1 [CLOUDINIT] stages.py[INFO]: network config is disabled 
by system_cfg


So it seems not completely broken there.

-- 
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

Reply via email to