Error deploying machines : cloud-init network stage : systemd-networkd-wait-online failed

Hi,

I am using MAAS 3.5.4, I have add a new machine and I tried to deploy it with ubuntu 22LTS then I tried with ubuntu 24LTS, I got the problem :
cloud-init network stage
systemd-networkd-wait-online failed

I’ve searched, I found this bug : Bug #2094149 “Changes to cloud-init's systemd-networkd-wait-onli...” : Bugs : cloud-init package : Ubuntu

I am not sure if this is what’s causing the problem, since it the same version of cloud-init affected by the bug that is being used when deploying : 24.4

How can I bypass this problem to be able to deploy/redeploy my machines?

Regards.

The latest version of cloud-init has some bugs Bug #2100963 “cloud-init fails with MAAS since Feb 4 update” : Bugs : cloud-init package : Ubuntu that are not fixed yet. The only workaround is to use images that are using a previous version of cloud-init

When creating custom images today, do I need to specify a version of cloud-init to install in the image? What work-around can I use?

Yes, you have to specify a version < 24.4.1