/srv/irclogs.ubuntu.com/2022/05/15/#cloud-init.txt

ReventlovHello.20:16
ReventlovI configured cloud-init via proxmox, and this is the generated systemd networkd file: https://i.imgur.com/AyLNlqA.png (systemd-networkd is not really happy with that)20:18
ReventlovWho is actually responsible for writing the /etc/systemd/network/10-cloud-init-eth0.network file ? Is this cloud init or is this distribution modules ?20:19
Reventlov(my proxmox config: https://i.imgur.com/6jNDJER.png, the error messages: https://i.imgur.com/HZaCUsw.png) (sorry about the screenshots but this is a VM without any networking because of this problem)20:22
ReventlovSo, I'm taking any hint on how to configure both ipv4 and ipv6 using cloud-init with systemd-networkd without this resulting error message, thanks20:23
Reventlov(cloud-init 21.4)20:28
minimalReventlov: what are the contents of the network-config YAML provide provided to cloud-init (I'm assuming you're using NoCloud as the DataSource)?20:29
minimals/provide /file /20:29
Reventlovi'm not providing any yaml manually, let me check20:30
minimalReventlov: so where are these IP addresses coming from then?20:31
Reventlovfrom proxmox20:31
ReventlovI don't really now how proxmox does its thing, probably with a disk, yeah, but I'm not sure whether this is NoCloud or not20:32
Reventlovyeah, that's a disk (/dev/sr0) and that's the conf: https://i.imgur.com/b2OdL1l.png20:33
Reventlovthat's probably a configdrive though20:34
minimalok, so that's a v1 networks file20:35
Reventlovit's not a good thing, isn't it ?20:36
minimalit should be fine. I tend to use v2 files myself20:40
minimalso I'm not that familiar with v120:40
minimallooking at the systemd.network manpage this seems to be the issue: "As in the [Network] section. This setting is mandatory. Each [Address] section can contain one Address= setting"20:44
minimalyour file has 2 "Address=" lines (v4 and v6) in the same "[Address]" section20:44
Reventlovyeah, that's the problem, so i'm wondering what is generating this file (and if that's cloud-init, that might be a bug)20:45
Reventlovor maybe I missed some part of the cloud-init doc saying I can't do that20:46
minimalits generated (rendered) by cloud-init20:46
minimalI suspect it could be a bug20:51
minimalbut I'm not familiar with networkd.py (the c-i module for generating systemd.network config files)20:52

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