Hello!

When using juju 2.0 on maas 1.9 or 2.0, you should get lxd containers
provisioned with as many interfaces as their host machine has, because
we're creating bridges on all configured host interfaces at initial boot
(e.g. eth0 becomes br-eth0, ens4.250 - br-ens4.250 and so on). Nothing
needs configuring to get this behaviour, but there's a caveat:

In order for the above to work, there's a limitation currently being
addressed - all interfaces on the host machine in MAAS need to be linked
to a subnet and have an IP address configured - either as Static or
Auto, but not DHCP or Unconfigured. Otherwise the process of allocating
addresses for the container (represented as a MAAS Device, visible on
the host node's details page in MAAS UI under Containers and VMs) can
fail half way through and Juju will instead fall back to a the single
NIC LXD default profile, using lxdbr0 on a local subnet. You can tell
whether this happened, because there will be a WARNING in
/var/log/juju/machine-0.log on the bootstrap machine, like: `failed to
prepare container "0/lxd/0" network config: ...` describing the
underlying error encountered.

Please note, the above limitation will be gone very soon - likely
beta18, not beta17 scheduled for release this week. In that upcoming
beta, unlinked or unconfigured host machine interfaces won't prevent the
multi-NIC container provisioning and address allocation - Juju will just
allocate addresses where it can, leaving the rest unconfigured, and not
falling back to using LXD default profile's lxdbr0.

HTH,
Dimiter

On 08/31/2016 10:32 PM, Chance Ellis wrote:
> Hello,
> 
>  
> 
> I am running juju 2.0beta16 on trusty. I have a maas 2.0 rc4 cloud
> bootstrapped.
> 
>  
> 
> I am able to deploy services to lxd containers on xenial, but when I do
> so, the container’s NIC is attached to lxdbr0 which seems to get some
> arbitrary IP segment which in turn gives the container an IP from the
> same segment. Is there a way I can instruct juju to specify the
> bridge(s) I would like the container to use during deployment?
> 
>  
> 
> Thanks!
> Chance Ellis
> 
>  
> 
>  
> 
> 
> 


-- 
Dimiter Naydenov <dimiter.nayde...@canonical.com>
Juju Core Sapphire team <http://juju.ubuntu.com>

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to