juju boostrap to lxd fails

Bug #1870418 reported by james beedy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Joseph Phillips
2.7
Fix Released
High
Joseph Phillips

Bug Description

Freshly provisioned vm, snap installed juju and lxd, ran lxd init, try to bootstrap localhost with juju and get:

$ juju bootstrap localhost
ERROR profile "default": no network device found with nictype "bridged" or "macvlan"
 the following devices were checked: eth0
Note: juju does not support IPv6.
Reconfigure lxd to use a network of type "bridged" or "macvlan", disabling IPv6.

Looking in the lxd default profile I see:

devices:
  eth0:
    name: eth0
    network: lxdbr0
    type: nic

I was able to bootstrap once I modified the default profile to reflect:

devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic

Looks like this may be on the lxd side of things, so tagging lxd.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

$ juju --version
2.7.5-bionic-amd64

$ lxd --version
4.0.0

Tags: lxd
Ian Booth (wallyworld)
Changed in juju:
assignee: nobody → Joseph Phillips (manadart)
milestone: none → 2.8-beta1
status: New → Triaged
importance: Undecided → High
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1870418] Re: juju boostrap to lxd fails

I submitted this bug a while back. I thought we already had a 2.7 fix for it

Bug 1867886

On Fri, Apr 3, 2020, 01:20 Ian Booth <email address hidden> wrote:

> ** Changed in: juju
> Assignee: (unassigned) => Joseph Phillips (manadart)
>
> ** Changed in: juju
> Milestone: None => 2.8-beta1
>
> ** Changed in: juju
> Status: New => Triaged
>
> ** Changed in: juju
> Importance: Undecided => High
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1870418
>
> Title:
> juju boostrap to lxd fails
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1870418/+subscriptions
>

Revision history for this message
Joseph Phillips (manadart) wrote :

This is odd.

We had this come up already, see:
https://bugs.launchpad.net/juju/+bug/1867886

My own LXD profile looks like the first you listed, from when I was testing. It still works fine.

However, when I tried installing LXD 4.0 on a fresh machine, the profile was in the traditional form after "lxd init". I then tried installing from the 3.22 channel (where we first saw this) and it now also creates in that form. Furthermore, LXD prevents attempts to change it to the new one.

I've sought info via the Canonical LXD IRC, but nothing is forthcoming so far.

Revision history for this message
Joseph Phillips (manadart) wrote :
Changed in juju:
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
no longer affects: lxd
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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