ERROR cannot find network interface "lxcbr0": route ip+net: no such network interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Now when you install LXD, you have to configure the bridge, like this:
ubuntu@demo:~$ sudo dpkg-reconfigure lxd
I followed the prompts to create lxdbr0, which provides a 10.0.4.1/24 network with NAT:
lxd stop/waiting
lxd start/running, process 2532
However, I can't bootstrap:
ubuntu@demo:~$ juju bootstrap demo lxd --upload-tools
ERROR cannot find network interface "lxcbr0": route ip+net: no such network interface
ERROR invalid config: route ip+net: no such network interface
ubuntu@demo:~$
Turns out that the LXD bridge is hard-coded to lxcbr0. If I dpkg-reconfigure lxd again and name the bridge "lxcbr0", I can bootstrap.
This is definitely going to trip users up. A quick fix would be to change the name of the bridge that Juju expects to the new default "lxdbr0".
However, the user can type anything in that dpkg dialog. Maybe we can get this information out of LXD somehow? Or, allow the user to specify an alternate bridge name when bootstrapping a LXD controller?
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Changed in juju-core: | |
milestone: | 2.0-beta4 → 2.0-beta15 |
status: | Confirmed → Triaged |
assignee: | Tycho Andersen (tycho-s) → Richard Harding (rharding) |
^ LXD bridge is hard-coded to lxcbr0 in Juju, as far as I know.
Maybe there's already a solution to this that I don't know of?