juju deployed lxd falls back to lxdbr0 bridge when binding is specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
New
|
Undecided
|
Unassigned |
Bug Description
While trying to deploy a new service to an older stack I'm running into problems with the interfaces being used by lxd. I've tried deploying the service both via juju-deployer and juju deploy, and appear to be hitting the same problem.
When deploying via juju deploy, I used a command line like:
$ juju deploy mycharm --to lxd:x --series xenial --bind space-0
When deploying via juju-deployer I added the following to the service definition:
bindings:
"": space-0
In both cases the LXD came up with the eth0 bound to lxdbr0, as per:
$ sudo lxc config device show juju-204ac4-3-lxd-7
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
type: disk
This gives it an address in 10.0.0.0/24 IP range, which isn't very useful as nothing else can talk to it.
I believe what should be happening is the parent of the eth0 bridge should be br-enp6s0, which is the interface on the metal server that has the appropriate address on it.
Please let me know if you need any further information.
OS Version:
$ lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Juju version:
Model Controller Cloud/Region Version
model-name maas-controller cloud-name 2.0.3
$ dpkg-query -W maas
maas 2.1.3+bzr5573-
It looks like you have experienced this failure in an early version of Juju 2x. I wonder if you are experiencing the same issue with later Juju 2?
I'll re-target to "juju" project. "juju-core" is reserved for Juju 1x