[Bug 1563296] Re: cloud-init 0.7.7~bzr1189-0ubuntu1 adds duplicated network config in /etc/network/interfaces.d/ in snappy leaving the boot completely network-less
Scott Moser
smoser at ubuntu.com
Wed Mar 30 14:06:57 UTC 2016
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1563296
The short term fix is to disable cloud-init's networking code by
writing a file /etc/cloud/cloud.cfg.d/99-snappy-disable-network-config.cfg
with:
| network:
| config: "disabled"
The file is yaml text.
This unfortunately, will have two shortcomings:
a.) ConfigDrive and other cases where the datasource provides network config will not have that networking rendered on snappy.
b.) cloud-init has slightly smarter "fallback" config than snappy (to my limited knowledge).
if cloud-init does not find networking configuration from a source, then it defines a fallback as roughly equivalent to "dhcp on eth0" , but the 'eth0' name is chosen by finding an existing network device and filtering out those that are not connected.
Later we will have 2 options to re-enable this
1.) snappy could delegate writing of network config to cloud-init
2.) cloud-init could feed network config it found to snappy and let snappy write the config.
'2' could be accomplished via snappy REST interface or shell via:
http://paste.ubuntu.com/15559735/
Having this happen via 'fallback' (and thus all the time) might mean that
cloud-init would overwrite what the gadget snap provided. So maybe for
fallback case, cloud-init would want to first query if there was gadget
provided config, and if not then provide the fallback.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1563296
Title:
cloud-init 0.7.7~bzr1189-0ubuntu1 adds duplicated network config in
/etc/network/interfaces.d/ in snappy leaving the boot completely
network-less
To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1563296/+subscriptions
More information about the Ubuntu-server-bugs
mailing list