Preseed `lookup_subnet` does not work as intended and will only work with host IP
WizardBit opened this issue · 0 comments
WizardBit commented
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]: