=== toolz is now known as Daniel | ||
Steve37 | Hi 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. The | 14:00 |
---|---|---|
Steve37 | problem 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 get | 14:00 |
Steve37 | cloud-init-local to fix this for me? | 14:00 |
Steve37 | Since 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 |
minimal | Steve37: deja vu, didn't you post this last week? and get some feedback? | 14:09 |
Steve37 | minimal I posted it, but didn't get any feedback before I had to leave | 14:43 |
Steve37 | I'm just on webchat so I don't have scrollback | 14:45 |
holmanb | Steve37: hi there, I was actually going to mention that I am working on something that should make this behave better | 14:55 |
holmanb | Steve37: https://irclogs.ubuntu.com/2024/07/12/%23cloud-init.txt | 14:55 |
holmanb | but 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 | ||
holmanb | Steve37: hey I just filed an issue for this https://github.com/canonical/cloud-init/issues/5511 | 15:32 |
-ubottu:#cloud-init- Issue 5511 in canonical/cloud-init "timeout issue related to no network interfaces" [Open] | 15:32 | |
holmanb | Steve37: could you please report back there if that works for you? | 15:33 |
holmanb | s/if /about whether / | 15:33 |
holmanb | Steve37: 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 think | 15:34 |
holmanb | but that will take some time - making the 24.3 release is a stretch | 15:35 |
Steve37 | holmanb looking at the logs link and the issue, thanks much! will report back | 15:47 |
Steve37 | even if my vm doesn't have any nics attached to it, I should try listing a fake eth0? | 15:48 |
holmanb | hmm, not sure | 16:44 |
holmanb | would have to dig more | 16:44 |
holmanb | Steve37: what did you try? | 16:44 |
Steve37 | nothing yet, been working on other things for the moment | 16:44 |
Steve37 | but i have tried just disabled, and that did nothing | 16:45 |
dbungert1 | disable or mask? | 16:47 |
=== dbungert1 is now known as dbungert | ||
Steve37 | network: config: disabled in my user-data | 16:51 |
dbungert | oh, what I'm suggesting is a `systemctl mask network-online.target` | 16:59 |
Steve37 | how 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!