canonical / microcloud

Automated private cloud based on LXD, Ceph and OVN
https://microcloud.is
GNU Affero General Public License v3.0
260 stars 36 forks source link

Preseed `lookup_subnet` does not work as intended and will only work with host IP #331

Open WizardBit opened 1 week ago

WizardBit commented 1 week ago

Summary

lookup_subnet has to be the IP address of the host node and not the subnet. This is actually how it is tested in preseed.sh. In this preseed test it would be better to use lxc network get <network> ipv4.address instead.

It also appears that the interactive method is affected and is using the host IP instead of a subnet to search for other machines and or is phrased incorrectly.

Preseed

lookup_subnet defined in a preseed.

lookup_subnet: 10.32.16.1/24

This is the error associated.

cat seed | microcloud init --preseed
Error: Failed to bootstrap local MicroCloud: Failed to listen on https socket: listen tcp 10.32.16.1:9443: bind: cannot assign requested address

Interactive

In the interactive initialization it mentions the use of the host IP address and the phrasing seems to imply limiting the search to the displayed subnet found.

microcloud init
Waiting for LXD to start...
Using address "10.32.16.135" for MicroCloud
Limit search for other MicroCloud servers to 10.32.16.135/24? (yes/no) [default=yes]: