Hi
I am having issues initialising an lxd 5.21 cluster with the preseed. The certificate that is generated on the server sets the SAN to the host name and 127.0.0.1. When I set the cluster_address to the hostname I get the following error.
Error: Failed to join cluster: Failed to setup cluster trust: Failed to connect to target cluster node "containers-network-live-is-1:8443": Get "https://containers-network-live-is-1:8443/1.0": tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "root@containers-network-live-is-1"
If I change that the IP address then I get the following output
Error: Failed to join cluster: Failed to setup cluster trust: Failed to connect to target cluster node "10.3.0.42:8443": Get "https://10.3.0.42:8443/1.0": tls: failed to verify certificate: x509: certificate is valid for 127.0.0.1, ::1, not 10.3.0.42
I really can’t win with this. How am I supposed to setup this cluster with an automated tool? If I so it manually with the wizard it works fine but this is the issue with preseed.
Any ideas how to work around this?