Bootstrapping with beta16 on lxd gives "unable to connect" error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Andrew Wilkins |
Bug Description
A user reported in #juju that they were getting the following error bootstrapping with lxd:
2016-08-30 15:44:24 INFO juju.cmd supercommand.go:63 running jujud [2.0-beta16 gc go1.6.2]
2016-08-30 15:44:24 ERROR cmd supercommand.go:458 creating LXD client: Get https:/
ERROR failed to bootstrap model: subprocess encountered error code 1
If I bootstrap with a built-from-source juju at tag beta16, it bootstraps successfully, but if I make a LXD container and boostrap inside it with beta16 I do see the error - I don't get this with beta15. So it might be something to do with the packaging for beta16 (and LXD)?
Steps to reproduce:
* lxc launch ubuntu: t1 -c security.
* lxc exec t1 bash
Then inside the container run
* add-apt-repository ppa:juju/devel # To get beta16
* apt update
* apt install juju
* apt upgrade lxd # To get lxd 2.0.4
* lxd init # Answer "dir" for the first question since zfs isn't installed, then accept default for everything else
* juju bootstrap local lxd
This fails with the error above. Going through the same steps with a new container but leaving out the add-apt-repository (so juju 2.0-beta15 is installed), the bootstrap succeeds.
Changed in juju: | |
status: | New → Confirmed |
Changed in juju: | |
importance: | Undecided → Critical |
milestone: | none → 2.0-beta17 |
status: | Confirmed → Triaged |
Changed in juju: | |
assignee: | nobody → Andrew Wilkins (axwalk) |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Noting a similar issue with ppc64le on trusty (with linux-generic- lts-xenial) in testing for bug 1605714
2016-08-30 09:46:53 INFO juju.cmd supercommand.go:63 running jujud [2.0-beta16 gc go1.6] lxdclient client.go:185 connecting to LXD remote "remote": "10.19.139.1:8443" /10.19. 139.1:8443/ 1.0: Unable to connect to: 10.19.139.1:8443 com/juju/ juju/provider/ lxd/provider. go:32: } {github. com/juju/ juju/provider/ lxd/environ. go:56: } {github. com/juju/ juju/provider/ lxd/environ_ raw.go: 69: creating LXD client} {github. com/juju/ juju/provider/ lxd/environ_ raw.go: 105: } {github. com/juju/ juju/tools/ lxdclient/ client. go:123: } {github. com/juju/ juju/tools/ lxdclient/ client. go:227: } {Get https:/ /10.19. 139.1:8443/ 1.0: Unable to connect to: 10.19.139.1:8443}])
2016-08-30 09:46:53 DEBUG juju.agent agent.go:525 read agent config, format "2.0"
2016-08-30 09:46:53 DEBUG juju.tools.
2016-08-30 09:46:53 ERROR cmd supercommand.go:458 creating LXD client: Get https:/
2016-08-30 09:46:53 DEBUG cmd supercommand.go:459 (error details: [{github.