minimalsbraz: looking at the manpage for systemd-udev-settle.service the suggest instead subscribing to udev events and react to those00:03
minimalthat's basically what the hotplug functionality, recently added to cloud-init, does00:04
minimalhowever it's intended to react to *additional* network cards appearing later once cloud-init has run, rather than the 1st network appearing later (as it is needed for metadata server access)00:05
sbrazah :/00:05
minimalhotplug is supported for Ec2 and Openstack datasources (from memory)00:06
holmanbsbraz - I agree the right fix would probably be to wait for nics to be ready, and preferably via the kernel directly independant of init system, but I'm not sure how to do that. I wonder if operstate is available before the module is completely loaded - might be a way to instrument that.04:04
holmanbone possible option: https://github.com/systemd/systemd/blob/4e3a50169bef2952544cd6418d9ffd5075202ca2/docs/NETWORK_ONLINE.md?plain=1#L20204:17
holmanbI doubt that ^ approach is something that would be done quickly04:20
holmanbsbraz: any luck with the initramfs workaround?04:20
holmanbsbraz: I think an upstream bug would be appropriate. Other distros might see this in the future.04:48
=== Perflosopher9 is now known as Perflosopher
=== not_phunyguy is now known as phunyguy
=== danieli3 is now known as danieli
=== jrm2 is now known as jrm
=== arif-ali_ is now known as arif-ali
sbrazholmanb: i'll look into the initramfs thing today; re. that doc you linked, how would cloud-init decide what interface to wait for? would it wait for the one with the right mac address to appear?10:26
sbrazholmanb: the initrams trick seems to work very nicely, the nic gets initialised 6 seconds before cloud init local, that's very comfortable :)12:22
sbrazand that's probably also why debian doesn't have an issue: its initramfs also contains mlx5_core.ko12:27
holmanbGood question, I would have to read more code to answer that.13:03
holmanbGlad you got a workaround \o/13:04
holmanbIs there anywhere (distros, etc) that regularly define a ds-id config? I haven't seen it actually used anywhere to my knowledge, and I'm curious whether it's more common than I think it is.22:15
meenawhere else do we have that pattern?22:18
holmanbI've never seen /etc/cloud/ds-identify.cfg used anywhere, even though we have code to parse it, just whether it actually gets used22:19
minimalholmanb: ds-id? you mean ds-identify?22:20
meenaI have never seen that file22:20
minimalI've never seen that file either22:22
holmanbits only documentation so far as I can tell is the source of ds-identify22:23

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