Hard to use non-default LXD bridge

Bug #1575676 reported by Björn Tillenius
90
This bug affects 18 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Dimiter Naydenov
Ubuntu on IBM z Systems
Fix Released
Critical
Unassigned

Bug Description

I'm trying to use the LXD provider in Juju 2.0, and more specifically I need it to use a specific bridge, which isn't the default lxdbr0 one.

In LXD, this is easy. I just edit the default profile to use another bridge.

To get Juju to use my bridge is a lot harder, though. With beta3 it was quite easy, I just had to name it lxcbr0 and it worked. beta6 seems to be looking at what the default bridge is in the default profile (which is good), but then it seems to insist that it's configured in /etc/default/lxd-bridge. No matter what I tried, it complained that the lxd bridge wasn't configured.

What did work, though, was to manually edit /etc/default/lxd-bridge and change it to say the bridge is enabled (without restarting the lxd-bridge service). Then bootstrap will succeed, and after that I can revert the changes to /etc/default/lxd-bridge.

So it seems it is possible not to use the default lxd bridge, but you have to trick Juju to believe the default bridge is configured. Surely there has to be simpler way?

tags: added: landscape
David Britton (dpb)
tags: added: kanban-cross-team
tags: removed: kanban-cross-team
Revision history for this message
John A Meinel (jameinel) wrote :

We should support setting "lxd-bridge" as part of configuration (juju bootstrap --config lxd-bridge=XXX) but we I don't believe we support that yet.

Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.0.0
Revision history for this message
james beedy (jamesbeedy) wrote :

Whats the status on this? any?

Revision history for this message
Cheryl Jennings (cherylj) wrote :

We're going to discuss this as part of the usability work at the juju sprint this week.

Revision history for this message
Adam Stokes (adam-stokes) wrote :

conjure-up users faces this issue as well:

https://github.com/ubuntu/conjure-up/issues/37

tags: added: conjure
Revision history for this message
BlueT - Matthew Lien - 練喆明 (bluet) wrote :

I'm facing similar problem.

I followed this HowTo https://bayton.org/2016/05/lxd-zfs-and-bridged-networking-on-ubuntu-16-04-lts/ and changed the br0 name to **lxdbr0**.
LXD runs perfectly with br0 (with external DHCP server), so containers can get an IP in my network and we can connect into it.

With `conjure-up openstack` and the option "OpenStack with Nova-LXD", Clouds choose "localhost", after a short bootstraping screen then it says my lxdbr0 is not enabled...

Revision history for this message
chrisaw (home-6) wrote :

I am facing the same problem and haven't yet even been able to work around it.

In my case conjure-up doesn't even start trying to bootstrap - just bombs out straight away with an error stating that my lxd network interface isn't configured.

Does look like this is related to juju and the issue stated above.

Does anyone have any other workarounds to try for now to at least get myself running?

Thanks!

no longer affects: conjure-up (Ubuntu)
Revision history for this message
Cheryl Jennings (cherylj) wrote :

@chrisaw - did you run `dpkg-reconfigure lxd` to set it up?

Revision history for this message
Adam Stokes (adam-stokes) wrote :

@chrisaw you'll want to make sure that at the very least lxdbr0 is up, it may require a simple 'lxc list' to activate the socket the first time. Also make sure you're user is in the lxd group.

@cheryl, is it possible to get a more definitive eta when we think this can be addressed?

Revision history for this message
Cheryl Jennings (cherylj) wrote :

Being able to specify an alternate bridge for the lxd provider is probably a 2.1 item. I'll bring it up again in today's release call to see if there's a chance it could be included in 2.0.0.

Revision history for this message
Adam Stokes (adam-stokes) wrote :

Hi Cheryl,

Any word on if this would make it into 2.0.0? More and more conjure-up users are hitting this

Thanks
Adam

Changed in juju-core:
importance: Medium → Critical
assignee: nobody → Dimiter Naydenov (dimitern)
Changed in juju-core:
status: Triaged → In Progress
tags: added: 2.0
Changed in juju-core:
milestone: 2.0.0 → 2.0-beta14
Revision history for this message
Dimiter Naydenov (dimitern) wrote :
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta14 → none
milestone: none → 2.0-beta14
Joey Stanford (joey)
tags: added: canonical-bootstack
Ryan Beisner (1chb1n)
Changed in ubuntu-z-systems:
status: New → Confirmed
tags: added: multi-lpar s390x uosci
Revision history for this message
Ryan Beisner (1chb1n) wrote :

In the context of manual-provider, this issue appears to still exist. See https://bugs.launchpad.net/juju/+bug/1655224

Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
importance: Undecided → Critical
Revision history for this message
Ryan Beisner (1chb1n) wrote :

The following related bug is really the root cause for our use case here. If it didn't exist, we wouldn't have to try to munge the bridges ahead of Juju:

"manual provider lxc/lxd units are behind NAT, fail by default"
https://bugs.launchpad.net/juju/+bug/1614364

Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.