juju contacts wrong LXD API endpoint (default gateway)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Richard Harding |
Bug Description
juju 2.0.1, xenial, MAAS 2.1
I have a case (picture of the network layout attached) where juju 2.0.1 bootstrapping a lxd provider works up to a point. Packages are installed, network is fine, but at some point juju wants to talk to a "lxd remote" and for some reason decides that the default gateway for the network is the LXD api endpoint:
$ grep "LXD remote" bootstrap-debug.txt
20:24:28 DEBUG juju.tools.
20:24:29 DEBUG juju.tools.
20:24:30 DEBUG juju.tools.
2016-11-08 20:25:55 DEBUG juju.tools.
The host where this LXD is being created is at 10.0.5.2, DNS name is 22-96.maas. The attempt above fails:
2016-11-08 20:25:55 ERROR cmd supercommand.go:458 new environ: creating LXD client: Get https:/
The failure here is because 10.0.5.1 also has an LXD API endpoint, for another LXD server, and the certificate check correctly fails. Juju should be talking to 10.0.5.2:8443 instead.
DNS is correctly setup:
ubuntu@22-96:~$ hostname
22-96
ubuntu@22-96:~$ hostname -f
22-96.maas
ubuntu@22-96:~$ host 22-96.maas
22-96.maas has address 10.0.5.2
ubuntu@22-96:~$ host 10.0.5.2
2.5.0.10.
ubuntu@22-96:~$
I can launch a container manually and it will get a 10.0.5.0/24 IP from MAAS' DHCP just fine.
Network details:
- 10.0.5.0/24
- this is a libvirt network, no DHCP
- 10.0.5.1 is default gw
- 10.0.5.5 is MAAS server, with dhcp, running as a container. The LXD server handling this is on 10.0.5.1 and is my laptop
- 10.0.5.2 is a xenial VM, with the NIC setup as a bridge so that containers running there can get an address from the MAAS server
- the LXD on 10.0.5.2 has a profile that attaches its eth0 to the VM br0 bridge
- the /etc/default/
Attached is a bootstrap with --debug output, and a photo of a quick drawing I did showing the scenario.
tags: | added: cdo-qa-blocker |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Richard Harding (rharding) |
milestone: | none → 2.2.0 |
tags: | added: uosci |