Closed lucasl0st closed 9 months ago
Hi Lucas,
could you please update your CAPMOX Deployment to use image ttl.sh/cluster-api-provider-proxmox:issue-39@sha256:a961f24295473c41a1bdddaabf29d3e3a2fc80b1ae236de2f20f6e20e864808f
(will automatically be purged in 24 hours) and give it a another try? You can also compile it by yourself by using the code in branch fix/39
:)
Hi Philipp! I tried the branch, it works correctly now, thanks 🙂
The ipv6 address and gateway only get set correctly when it would get to this default case:
https://github.com/ionos-cloud/cluster-api-provider-proxmox/blob/a1666e478f0b4f990da0a0ef59a7f6d63397b2cd/internal/service/vmservice/bootstrap.go#L197C4-L197C4
It never gets to that default case because
len(config.MacAddress) == 0:
is trueWhich results in a cloudinit template that looks like this (0.0.0.0 gateway instead of ::/0):
Full configuration I used here: https://gist.github.com/lucasl0st/4fe31d5f9b936520f177c42efeb157e7
The v4/v6 should probably be handled in this function instead: https://github.com/ionos-cloud/cluster-api-provider-proxmox/blob/a1666e478f0b4f990da0a0ef59a7f6d63397b2cd/internal/service/vmservice/bootstrap.go#L144