Hey,
I’m troubleshooting an issue with bootstrapping Juju off MAAS with LXD and running into an error
10:07:59 ERROR juju.cmd.juju.commands bootstrap.go:1032 failed to bootstrap model: cannot start bootstrap instance: unexpected: ServerError: 400 Bad Request ({"network": ["Node has no address family in common with the server"]})
This seems to hint at an issue with ipv4 / ipv6 config – however the lxdbr0 does have both ipv4/6 configured (cf. Bug #2063458 ""Node has no address family in common with server”... : Bugs : MAAS)
Fwiw here is my setup procedure running on a noble VM. I’ve tried this with 3.6/stable and 3.7/beta
sudo snap install maas --channel=3.7/beta
sudo snap install maas-test-db
sudo snap install lxd
sudo snap set lxd daemon.user.group=adm
sudo lxd init --auto --trust-password=sikkrit --network-address=10.0.8.229 --network-port=8443 || true
lxc config set core.https_address :8443 || true
lxc network set lxdbr0 dns.mode=none || true
lxc network set lxdbr0 ipv4.dhcp=false || true
lxc network set lxdbr0 ipv6.dhcp=false || true
sudo maas init region+rack --database-uri maas-test-db:/// --admin-username admin --admin-password sikkrit --admin-email admin@example.com --maas-url http://10.0.8.229:5240/MAAS
sudo maas createadmin --username admin --password sikkrit --email admin@example.com
sudo maas apikey --username admin
maas login "admin" "http://10.0.8.229:5240/MAAS" "sikkrittoken"
maas "admin" vm-hosts create type=lxd name="local-lxd" project=default power_address="https://10.0.8.229:8443" password="sikkrit"
maas "admin" boot-resources import
maas admin subnet read 3
maas admin subnet update 3 gateway_ip=10.36.252.1
maas admin ipranges create type=dynamic subnet=3 start_ip="10.36.252.175" end_ip="10.36.252.254"
maas admin vlan update 1 0 dhcp_on=true primary_rack=8mrerc
sudo snap install juju
juju add-cloud maas-cloud cloud.yaml
juju add-credential maas-cloud -f cred.yaml --client
juju bootstrap maas-cloud maas-controller
Network on VM
default via 10.0.8.1 dev enp5s0 proto dhcp src 10.0.8.229 metric 100
10.0.8.0/24 dev enp5s0 proto kernel scope link src 10.0.8.229 metric 100
10.0.8.1 dev enp5s0 proto dhcp scope link src 10.0.8.229 metric 100
10.36.252.0/24 dev lxdbr0 proto kernel scope link src 10.36.252.1