/srv/irclogs.ubuntu.com/2024/07/15/#cloud-init.txt

=== toolz is now known as Daniel
Steve37Hi all, hoping I can get some help with configuring cloud-init for a problem I've got. The situation is: I'm booting up a VM with an Ubuntu image set up for cloud-init. I'm not able to modify the image at all pre-boot, but I do have full control over the user-data and other pieces that get passed to cloud-init, via an attached CIDATA drive. The14:00
Steve37problem is that this image is also configured such that cloud-init depends on systemd's wait-for-online service, and many of the VMs I'm spinning up have no NICs, and therefore will never be online. This causes all these VMs to sit for 2 minutes until the service times out, something I need them to not do. Is there some way I can get14:00
Steve37cloud-init-local to fix this for me?14:00
Steve37Since the timeout happens before the full cloud-init pass things like runcmd or bootcmd won't happen yet, so I can't just mask out the service. I've also tried setting my network config to 'disabled' but that didn't seem to change anything. Would really appreciate any tips or guidance here, as I'm out of ideas.14:00
minimalSteve37: deja vu, didn't you post this last week? and get some feedback?14:09
Steve37minimal I posted it, but didn't get any feedback before I had to leave14:43
Steve37I'm just on webchat so I don't have scrollback14:45
holmanbSteve37: hi there, I was actually going to mention that I am working on something that should make this behave better14:55
holmanbSteve37: https://irclogs.ubuntu.com/2024/07/12/%23cloud-init.txt14:55
holmanbbut falcojr had responded before, you might try that suggestion 14:55
holmanb(the link has logs from the day you asked)14:56
=== kuraudo1 is now known as kuraudo
holmanbSteve37: hey I just filed an issue for this https://github.com/canonical/cloud-init/issues/551115:32
-ubottu:#cloud-init- Issue 5511 in canonical/cloud-init "timeout issue related to no network interfaces" [Open]15:32
holmanbSteve37: could you please report back there if that works for you? 15:33
holmanbs/if /about whether /15:33
holmanbSteve37: the idea I'm working on is to make the interface no longer depend on the systemd unit and to only wait for the interface when the datasource actually needs the interface to get metadata - which should resolve your problem I think15:34
holmanbbut that will take some time - making the 24.3 release is a stretch15:35
Steve37holmanb looking at the logs link and the issue, thanks much! will report back15:47
Steve37even if my vm doesn't have any nics attached to it, I should try listing a fake eth0?15:48
holmanbhmm, not sure16:44
holmanbwould have to dig more16:44
holmanbSteve37:  what did you try?16:44
Steve37nothing yet, been working on other things for the moment16:44
Steve37but i have tried just disabled, and that did nothing16:45
dbungert1disable or mask?16:47
=== dbungert1 is now known as dbungert
Steve37network: config: disabled in my user-data16:51
dbungertoh, what I'm suggesting is a `systemctl mask network-online.target`16:59
Steve37how would i get cloud-init-local to run that?17:00

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