Juju fails to bootstrap lxd-test localhost controller

Bug #1632757 reported by Udi Nachmany
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
High
Unassigned

Bug Description

Juju 2.0-rc3, when trying to follow https://jujucharms.com/docs/stable/getting-started with the command
$ juju bootstrap lxd-test localhost

I get the errors in the attached file.
Note that the solution in bug https://bugs.launchpad.net/juju/+bug/1619971 is no help.

Revision history for this message
Udi Nachmany (udi-nachmany) wrote :
Revision history for this message
Tycho Andersen (tycho-s) wrote :

There are two bugs here, and I believe #1619971 is a bug in LXD's client API. The other bug is that juju somehow couldn't talk to LXD over the bridge, although other containers on the network could.

Changed in juju:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Richard Harding (rharding)
milestone: none → 2.0.1
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Changed in juju:
assignee: Richard Harding (rharding) → nobody
Revision history for this message
John A Meinel (jameinel) wrote :

not being able to bootstrap would obviously be a big issue. I don't fully understand what is actually failing here. Looking at the tail end of the log file:
2016-10-12 15:18:52 INFO juju.cmd supercommand.go:63 running jujud [2.0-rc3 gc go1.6.2]
2016-10-12 15:19:02 ERROR cmd supercommand.go:458 new environ: creating LXD client: Get https://10.189.178.1:8443/1.0: Unable to connect to: 10.189.178.1:8443
ERROR failed to bootstrap model: subprocess encountered error code 1
udi@udi-MacBookPro:~$ juju list-controllers

Seems to say that it was trying to set up the jujud agent inside the container, and that agent failed to contact the host's LXD agent. (Unable to connect to 10.189.178.1:8443)

I certainly bootstrap 'lxd' fairly often and have never seen this. Juju itself should be ensuring that the LXD agent is running and configured to listen on all interfaces.

Can you give the output of
  lxc config show
I would expect to see something about:
  core.https_address:

Tycho mentions (if I'm understanding him correctly) that maybe there was a bug in LXD that was preventing it from listening to the address on the bridge?

Are you able to reproduce this failure? I haven't been able to, so it would be good to know if there is something specific to your configuration.

You can also do things like "juju bootstrap --debug" which will be much more verbose about what we're doing and might give more of a clue what is going wrong.

Changed in juju:
importance: Critical → High
status: Triaged → Incomplete
Revision history for this message
John A Meinel (jameinel) wrote :

could this be the "disabled IPv6" support failing?
I wonder if this is actually just bug #1633362

Revision history for this message
Udi Nachmany (udi-nachmany) wrote : Re: [Bug 1632757] Re: Juju fails to bootstrap lxd-test localhost controller

Sorry--will do tomorrow!

On Sun, 5 Feb 2017 at 13:15 John A Meinel <email address hidden> wrote:

> could this be the "disabled IPv6" support failing?
> I wonder if this is actually just bug #1633362
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1632757
>
> Title:
> Juju fails to bootstrap lxd-test localhost controller
>
> Status in juju:
> Incomplete
>
> Bug description:
> Juju 2.0-rc3, when trying to follow
> https://jujucharms.com/docs/stable/getting-started with the command
> $ juju bootstrap lxd-test localhost
>
> I get the errors in the attached file.
> Note that the solution in bug
> https://bugs.launchpad.net/juju/+bug/1619971 is no help.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1632757/+subscriptions
>
--
*Canonical* | Head of Certified Public Cloud | <email address hidden> |
M. +44 7769 235 135 | T. +44 20 7630 2400 ext. 2447
*Ubuntu* - *The platform of scale-out computing* | Discover more - Twitter
<https://twitter.com/ubuntucloud> Web <http://www.ubuntu.com/cloud> Blog
<http://insights.ubuntu.com/products-and-services/cloud/>

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju because there has been no activity for 60 days.]

Changed in juju:
status: Incomplete → Expired
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.