Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
lxd provider: better errors when bootstrap failed #4984
Conversation
jameinel
reviewed
Apr 5, 2016
| +and then configure it with: | ||
| + $ newgrp lxd | ||
| + $ lxd init | ||
| +`) |
jameinel
Apr 5, 2016
Owner
Shouldn't there be a test for each of the 4 cases? (EACCES, ENOENT, ECONNREFUSED, and unknown error?
|
The change looks very nice. Just want a couple tests to make sure we preserve the functionality. Originally I thought we should install lxd, but I realize that requires sudo so we should probably ask the user to do it. |
|
On Tue, Apr 05, 2016 at 07:11:39AM -0700, John Arbash Meinel wrote:
Well, and we want the user to configure their storage backend too
|
|
Ok, I've added the tests. We needed one small patch to actually be able to test this code path, but other than that it turned out to be pretty simple. |
added some commits
Apr 4, 2016
|
Just a note that I rebased everything and added one more patch on top to warn if lxdbr0 is configured incorrectly (with a test). |
added some commits
Apr 6, 2016
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
tych0 commentedApr 4, 2016
When LXD isn't installed:
$ juju bootstrap bob lxd
ERROR invalid config: can't connect to the local LXD server: LXD socket not found; is LXD installed & running?
Please install LXD by running:
$ sudo apt-get install lxd
and then configure it with:
$ newgrp lxd
$ lxd init
When the user doesn't have permissions:
$ juju bootstrap bob lxd
ERROR invalid config: can't connect to the local LXD server: Permisson denied, are you in the lxd group?
Please configure LXD by running:
$ newgrp lxd
$ lxd init
Signed-off-by: Tycho Andersen tycho.andersen@canonical.com
(Review request: http://reviews.vapour.ws/r/4424/)