/srv/irclogs.ubuntu.com/2023/06/29/#cloud-init.txt

minimalmeena: it uses the "fallback" setup - if writes DHCPv4 config (in cloud-init "init-local" stage) via the appropriate renderer, then OS runs its usual mechanism to setup networking (using the rendered config file), then cloud-init ("init" stage) uses the available networking to fetch the seed URLs00:30
minimalif the fetched "meta-data" document defines any network config then *again* cloud-init uses the appropriate renderer to write that network config00:31
meenathat sounds mostly sensible.00:31
minimalthe problem/issue is that the "fallback" config is write and then the OS uses it, rather than (like with AWS etc) cloud-init doing a "ip addr" etc to temporarily setup the networking00:32
minimalthe temporary network config should NOT be rendered00:32
minimalit is only needed to be able to fetch the seed URLs, at which point either network config from the seed URLS, or else *then* fallback network config should be used/rendered00:33
minimalmeena: so I'd say writing a temporary network config to OS config files is not sensible - the DataSources that talk to metadata servers do not do this for example00:49
minimalthink of the server hosting the http/https YAML files as being a very "simple" metadata server00:50
minimalI tested git master (with the ds fix) and as expected it worked like I previously saw with c-i 23.1.1. I then added the "network-config=disabled" cmdline option - the c-i "init-local" stage no longer rendered the fallback DHCP config to eni, as it didn't do this then the OS used the eni file (created by c-i during the previous boot using network config from seed meta-data URL) and the c-i "init" stage then attempted to access the seed URLs but failed 01:12
minimalas the ip address/subnet (set by OS from eni file) is different from that obtained via DHCP and so machine did not have connectivity to the http server hosting the seed content, which it would have if it had used DHCP again instead01:12
minimalso this causes problems if any network config in the seed documents uses a different subnet, uses VLANs, etc from that of the DHCP server01:14
=== esv_ is now known as esv
cariboublackboxsw: thanks for the attention. I'm release our images with 23.2 in -proposed which will be overriden by our new SRU one when it hits updates07:11
=== hyperreal9 is now known as hyperreal
minimalI tested c-i main with freshly booting a nocloud-net config with network-config=disabled on the cmdline and, as expected, c-i "init-local" did not create the fallback network config, and so the OS did not bring up the ethernet, and so the c-i "init" stage failed to retrieve the seed URLS, and so no cloud-init module configuration was performed14:46
minimalI'll test next with specifying network config on the cmdline14:46
minimalBTW the above test did not just silently fail, there were code errors on screen and in the cloud-init.log file14:48
blackboxswFiled bug on downstream Ubuntu apport behavior for SRU https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/202537615:01
-ubottu:#cloud-init- Launchpad bug 2025376 in cloud-init (Ubuntu) "apport general hooks break on type annotations" [Critical, Triaged]15:01
blackboxswthis only affects focal and needs to be in what we SRU to focal for 23.2.115:01
blackboxswhttps://github.com/canonical/cloud-init/pull/4216 up for review for focal15:49
-ubottu:#cloud-init- Pull 4216 in canonical/cloud-init "Ubuntu/focal 23.2.x" [Open]15:49
blackboxswthanks for review falcojr aciba[m] I've uploaded 23.2.1-0ubuntu0~20.04.2 to launchpad and ppa:cloud-init-dev/proposed16:00

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!