bootstrap fails with LXD provider when not using lxdbr0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Unassigned |
Bug Description
My host's network configuration is:
$ cat /etc/network/
auto enp5s0
iface enp5s0 inet manual
auto br-enp5s0
iface br-enp5s0 inet static
address 192.168.1.64/24
bridge_ports enp5s0
dns-nameservers 192.168.1.254
dns-search home
gateway 192.168.1.254
I ran:
$ dpkg-reconfigure lxd
and used "br-enp5s0" as the bridge, configured no subnets and disabled IPv6.
$ juju version
2.0.0-
Bootstrapping fails because it tries to connect to the lxd daemon on 192.168.1.254, which you can see from my network setup is my gateway address - there is no lxd listening there.
$ juju bootstrap lxd
Creating Juju controller "lxd-localhost" on lxd/localhost
Looking for packaged Juju agent version 2.0.0 for amd64
To configure your system to better support LXD containers, please see: https:/
Launching controller instance(s) on lxd/localhost...
- juju-0f76ff-0 (arch=amd64)
Fetching Juju GUI 2.2.1
Waiting for address
Attempting to connect to 192.168.1.236:22
Logging to /var/log/
Running apt-get update
Running apt-get upgrade
Installing curl, cpu-checker, bridge-utils, cloud-utils, tmux
Fetching Juju agent version 2.0.0 for amd64
Installing Juju machine agent
Attempt 1 to download tools from https:/
tools from https:/
3ce84f9af0e163f
296662810fbd3d4
2016-10-19 04:41:12 INFO juju.cmd supercommand.go:63 running jujud [2.0.0 gc go1.6.2]
2016-10-19 04:41:12 ERROR cmd supercommand.go:458 new environ: creating LXD client: Get https:/
ERROR failed to bootstrap model: subprocess encountered error code 1
The following code will work for lxdbr0, but not other bridge configurations:
github.
func getDefaultGatew
out, err := runCommand("ip", "route", "list", "match", "0/0")
if err != nil {
return "", errors.Trace(err)
}
if !strings.
return "", errors.
}
fields := strings.
return fields[2], nil
}
Changed in juju: | |
status: | New → Incomplete |
Changed in juju: | |
status: | Confirmed → Triaged |
importance: | Undecided → High |
milestone: | none → 2.2.0 |
tags: | added: landscape |
I ran into this too this morning, similarly I don't use lxdbr0 but have my lxd host setup to bridge to the local network with containers getting DHCP from my router.
Attached is my e/n/i, juju and lxd versions and full bootstrap output.