juju 2.0-alpha2 with lxd
Marco Ceppi
marco.ceppi at canonical.com
Mon Feb 15 00:05:37 UTC 2016
It's not so much that you don't have golang installed, it's about the
version of golang juju was compiled with at build time. If you take the
juju-core deb from Xenial and install it on a machine that has LXD working
it'll work. However, since the builders that run to build the packages
install golang from the main archive (1.2 in trusty, 1.3 in vivid, 1.5 in
wily, and 1.6 in xenial) and because the LXD bindings require a pretty
recent version of golang to work - even if you have LXD installed, etc
you'll still need to grab the compiled Juju client from a newer version to
use it.
I'm sure the core/LXD teams are working to resolve this, but that's how it
is today AFAIU
Marco
On Sun, Feb 14, 2016 at 7:01 PM Daniel Bidwell <drbidwell at gmail.com> wrote:
> I am running 15.10 wiley with lxd version 0.20.
>
> Ooops. It looks like golang wasn't installed. Getting it and trying
> again. Thanks.
>
> On Sun, 2016-02-14 at 23:55 +0000, Marco Ceppi wrote:
> > What version of Ubuntu are you using? If it's anything other than
> > Xenial or Wily the LXD provider won't work. LXD bindings require a
> > golang version that's too new for Trusty.
> >
> > On Sun, Feb 14, 2016 at 6:14 PM Daniel Bidwell <drbidwell at gmail.com>
> > wrote:
> > > I am trying to bootstrap lxd.
> > >
> > > I started with 'juju init' and then 'juju -v --debug bootstrap -m
> > > lxd'
> > > It allocated a container and deployed to it and ended with the
> > > following lines of debug output:
> > >
> > > 2016-02-14 23:04:46 INFO juju.cmd supercommand.go:59 running jujud
> > > [2.0
> > > -alpha2 gc go1.2.1]
> > > 2016-02-14 23:04:46 DEBUG juju.agent agent.go:506 read agent
> > > config,
> > > format "1.18"
> > > 2016-02-14 23:04:46 INFO juju.network network.go:248 setting prefer
> > > -ipv6 to false
> > > 2016-02-14 23:04:46 ERROR cmd supercommand.go:448 no registered
> > > provider for "lxd"
> > > 2016-02-14 23:04:46 ERROR cmd supercommand.go:448 failed to
> > > bootstrap
> > > model: subprocess encountered error code 1
> > >
> > > What do I have to do to "register the lxd provider"? Is this done
> > > before the boostrap command, during, or after?
> > >
> > > A 'juju status' command hangs for ever. Another 'juju bootstrap'
> > > command starts out happy, but then tells me that lxd is already
> > > deployed. I can 'ssh ubuntu at 10.0.3.x' and get into the container
> > > just
> > > fine, but not 'juju ssh 0'.
> > >
> > > What am I missing?
> > > --
> > > Daniel Bidwell <drbidwell at gmail.com>
> > >
> > >
> > > --
> > > Juju-dev mailing list
> > > Juju-dev at lists.ubuntu.com
> > > Modify settings or unsubscribe at:
> > > https://lists.ubuntu.com/mailman/listinfo/juju-dev
> > >
> --
> Daniel Bidwell <drbidwell at gmail.com>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20160215/1a387f4a/attachment.html>
More information about the Juju-dev
mailing list