In my setup as a workaround I just replace default path to /var/lib/NetworkManager on this part of code https://github.com/number5/cloud-init/blob/07b17236be5665bb552c7460102bcd07bf8f2be8/cloudinit/net/dhcp.py#L24 on template creation process.
In my setup as a workaround I just replace default path to /var/lib/ NetworkManager on this part of code https:/ /github. com/number5/ cloud-init/ blob/07b17236be 5665bb552c74601 02bcd07bf8f2be8 /cloudinit/ net/dhcp. py#L24 on template creation process.