[20:16] <Reventlov> Hello.
[20:18] <Reventlov> I 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:19] <Reventlov> Who 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:22] <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:23] <Reventlov> So, I'm taking any hint on how to configure both ipv4 and ipv6 using cloud-init with systemd-networkd without this resulting error message, thanks
[20:28] <Reventlov> (cloud-init 21.4)
[20:29] <minimal> Reventlov: 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] <minimal> s/provide /file /
[20:30] <Reventlov> i'm not providing any yaml manually, let me check
[20:31] <minimal> Reventlov: so where are these IP addresses coming from then?
[20:31] <Reventlov> from proxmox
[20:32] <Reventlov> I don't really now how proxmox does its thing, probably with a disk, yeah, but I'm not sure whether this is NoCloud or not
[20:33] <Reventlov> yeah, that's a disk (/dev/sr0) and that's the conf: https://i.imgur.com/b2OdL1l.png
[20:34] <Reventlov> that's probably a configdrive though
[20:35] <minimal> ok, so that's a v1 networks file
[20:36] <Reventlov> it's not a good thing, isn't it ?
[20:40] <minimal> it should be fine. I tend to use v2 files myself
[20:40] <minimal> so I'm not that familiar with v1
[20:44] <minimal> looking 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] <minimal> your file has 2 "Address=" lines (v4 and v6) in the same "[Address]" section
[20:45] <Reventlov> yeah, 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:46] <Reventlov> or maybe I missed some part of the cloud-init doc saying I can't do that
[20:46] <minimal> its generated (rendered) by cloud-init
[20:51] <minimal> I suspect it could be a bug
[20:52] <minimal> but I'm not familiar with networkd.py (the c-i module for generating systemd.network config files)