/srv/irclogs.ubuntu.com/2021/10/12/#cloud-init.txt

=== andrewbogott is now known as Guest3871
=== Guest3871 is now known as andrewbogott
manuvakery1_Hi. when cloud-init local stage run it is not able to read the network interfaces as the file is not present in /sys/class/net/  and the cloud-init-local service fails to start. Its happening on fedora instance deployed as baremetal on Openstack Ironic. If i add timeout( say 2sec) https://github.com/canonical/cloud-init/blob/b3e31ba228d32c318872fb68edda272f679e1004/cloudinit/net/__init__.py#L354  everything falls in place.  15:34
manuvakery1_How can i find a fix or a workaround15:34
manuvakery1_holmanb: this is what i could findout so far15:34
manuvakery1_I am facing this issue only with fedora,  all other linux distribution works well on the same hardware15:35
holmanbmanuvakery1_: interesting, the sounds to me like we have a race condition that works 'by accident' for all other distros15:37
holmanbmanuvakery1_: sounds like something may have changed causing the interface driver to load slower15:38
manuvakery1_holmanb: thats what I am thinking but so far no clue what is causing the interface driver to load slower15:41
holmanbmanuvakery1_: which version(s) of Ubuntu did you test on?15:52
manuvakery1_i have tested Ubuntu18,20 centos7,8 debian9 15:53
holmanbDifferent kmod version? Different kernel build defaults? cloud-init gets to this stage faster on fedora for some reason? There are plenty of potential causes. More details would be required to find the cause imo.16:06
manuvakery1_hmm. I will see the logs more and see if I can find more. I shall provide more details by tomorrow16:12
holmanbmanuvakery1_: something might be amiss with udev/hotplug, but I haven't worked enough with that part of the cloud-init code to know whether that would be a distro issue or a cloud-init issue16:28

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