Yeah I did run the build like that, so not sure whats going on there. lxc launch still works fine.
The box is empty except this hacking so I might flatten it and reinstall wily and upgrade through it again, see if a clean slate does the trick. LXD looks fine though, so I'm not sure what I'm doing wrong. Tom -------------- Director Meteorite.bi - Saiku Analytics Founder Tel: +44(0)5603641316 (Thanks to the Saiku community we reached our Kickstart <http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/> goal, but you can always help by sponsoring the project <http://www.meteorite.bi/products/saiku/sponsorship>) On 27 February 2016 at 13:25, John Meinel <[email protected]> wrote: > You're running on Xenial but you don't have a Xenial image listed. Maybe > its launching a Trusty image for bootstrap? I thought it always tried to > match the host version. > I assume you did: > cd $GOPATH/src/github.com/juju/juju > git checkout lxd-container-type > godeps -u dependencies.tsv > go install ./... > $GOPATH/bin/juju --version > etc. > > That particular "cannot unmarshal string into Go value" is exactly what I > would expect to see if you are using the wrong version of Juju with the > wrong version of LXD. LXD changed a few fields from ints to strings. > (2.0.0beta3 had an Architecture int, which they changed to Architecture > string.) > The unmarshall failure sounds like you're using 2.0.0beta4 for LXD, but a > version of juju that was compiled against 2.0.0beta3 bindings. > > John > =:-> > > > On Sat, Feb 27, 2016 at 5:20 PM, Tom Barber <[email protected]> > wrote: > >> The only thing I can tell you about this box that might different from >> the test beds you guys use was it was a dist upgrade from wily because that >> was the latest image the hosts had. >> >> -------------- >> >> Director Meteorite.bi - Saiku Analytics Founder >> Tel: +44(0)5603641316 >> >> (Thanks to the Saiku community we reached our Kickstart >> <http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/> >> goal, but you can always help by sponsoring the project >> <http://www.meteorite.bi/products/saiku/sponsorship>) >> >> On 27 February 2016 at 13:14, Tom Barber <[email protected]> wrote: >> >>> Okay checked out and tested but no dice currently: >>> >>> bugg@tomsdevbox:~$ juju --version >>> 2.0-beta2-xenial-amd64 >>> >>> >>> >>> bugg@tomsdevbox:~/work/src/github.com/juju/juju$ lxc --version >>> 2.0.0.beta4 >>> >>> >>> bugg@tomsdevbox:~/work/src/github.com/juju/juju$ lxd --version >>> 2.0.0.beta4 >>> >>> >>> bugg@tomsdevbox:~/work/src/github.com/juju/juju$ juju bootstrap >>> mycontroller lxd --debug --upload-tools >>> 2016-02-27 13:09:10 INFO juju.cmd supercommand.go:59 running juju >>> [2.0-beta2 gc go1.6] >>> 2016-02-27 13:09:10 INFO cmd cmd.go:141 cloud "lxd" not found, trying as >>> a provider name >>> 2016-02-27 13:09:10 INFO cmd cmd.go:141 no credentials found, checking >>> environment >>> 2016-02-27 13:09:10 DEBUG juju.cmd.juju.commands bootstrap.go:340 >>> preparing controller with config: map[type:lxd name:mycontroller] >>> 2016-02-27 13:09:14 DEBUG juju.container.lxd.lxdclient client.go:57 >>> loading LXD client config from "/home/bugg/.config/lxc/juju-mycontroller" >>> 2016-02-27 13:09:14 DEBUG juju.container.lxd.lxdclient client.go:64 >>> using LXD remote "local" >>> 2016-02-27 13:09:14 ERROR cmd supercommand.go:448 invalid config: json: >>> cannot unmarshal string into Go value of type int >>> bugg@tomsdevbox:~/work/src/github.com/juju/juju$ >>> >>> >>> >>> -------------- >>> >>> Director Meteorite.bi - Saiku Analytics Founder >>> Tel: +44(0)5603641316 >>> >>> (Thanks to the Saiku community we reached our Kickstart >>> <http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/> >>> goal, but you can always help by sponsoring the project >>> <http://www.meteorite.bi/products/saiku/sponsorship>) >>> >>> On 27 February 2016 at 13:01, Tom Barber <[email protected]> >>> wrote: >>> >>>> bugg@tomsdevbox:~$ lxc launch ubuntu-trusty my-test-container >>>> Creating my-test-container >>>> >>>> Starting my-test-container >>>> bugg@tomsdevbox:~$ >>>> bugg@tomsdevbox:~$ lxc exec my-test-container /bin/bas >>>> bugg@tomsdevbox:~$ lxc exec my-test-container /bin/bash >>>> root@my-test-container:~# ps axu |grep ssh >>>> root 1800 0.0 0.0 61380 5408 ? Ss 12:59 0:00 >>>> /usr/sbin/sshd -D >>>> root 1993 0.0 0.0 8868 784 ? S+ 13:00 0:00 grep >>>> --color=auto ssh >>>> root@my-test-container:~# >>>> >>>> >>>> Seems alright if I just launch an instance. Also inside the juju >>>> bootstrapped containers you can see some ssh related stuff where it sets >>>> keys etc in the logs so its logging in and doing something. >>>> >>>> I've compiled everything from 1.26 alpha2 to master so I'll happily >>>> wipe it clean and try the branch! ;) >>>> >>>> Tom >>>> >>>> -------------- >>>> >>>> Director Meteorite.bi - Saiku Analytics Founder >>>> Tel: +44(0)5603641316 >>>> >>>> (Thanks to the Saiku community we reached our Kickstart >>>> <http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/> >>>> goal, but you can always help by sponsoring the project >>>> <http://www.meteorite.bi/products/saiku/sponsorship>) >>>> >>>> On 27 February 2016 at 12:56, John Meinel <[email protected]> >>>> wrote: >>>> >>>>> BTW, if you are comfortable running Juju from master, there is a >>>>> branch "lxd-container-type" which should support LXD 2.0.0~beta4 (I have >>>>> it >>>>> running here), and I'd be happy to get feedback on it. >>>>> >>>>> John >>>>> =:-> >>>>> >>>>> >>>>> On Sat, Feb 27, 2016 at 4:55 PM, John Meinel <[email protected]> >>>>> wrote: >>>>> >>>>>> That does seem correct. But I thought cloud-images run openssh by >>>>>> default. So that seems surprising. >>>>>> >>>>>> What happens if you just do "lxc create" to spawn an instance instead >>>>>> of using Juju? >>>>>> >>>>>> John >>>>>> =:-> >>>>>> >>>>>> >>>>>> On Sat, Feb 27, 2016 at 4:17 PM, Tom Barber <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> I used: >>>>>>> >>>>>>> lxd-images import ubuntu trusty amd64 --sync --alias ubuntu-trusty >>>>>>> >>>>>>> Which I stole from Jorge's blog. >>>>>>> >>>>>>> bugg@tomsdevbox:~$ lxc image list >>>>>>> >>>>>>> +----------------+--------------+--------+------------------------------------+--------+----------+------------------------------+ >>>>>>> | ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION >>>>>>> | ARCH | SIZE | UPLOAD DATE | >>>>>>> >>>>>>> +----------------+--------------+--------+------------------------------------+--------+----------+------------------------------+ >>>>>>> | ubuntu-precise | 4029ee764a39 | no | Ubuntu 12.04 LTS server >>>>>>> (20160222) | x86_64 | 155.25MB | Feb 26, 2016 at 5:12pm (CET) | >>>>>>> | ubuntu-trusty | 510c27eb5e30 | no | Ubuntu 14.04 LTS server >>>>>>> (20160222) | x86_64 | 118.51MB | Feb 26, 2016 at 5:13pm (CET) | >>>>>>> | ubuntu-wily | fb2cf6ab4af1 | no | Ubuntu 15.10 server >>>>>>> (20160222) | x86_64 | 154.27MB | Feb 26, 2016 at 5:12pm (CET) | >>>>>>> >>>>>>> +----------------+--------------+--------+------------------------------------+--------+----------+------------------------------+ >>>>>>> >>>>>>> >>>>>>> -------------- >>>>>>> >>>>>>> Director Meteorite.bi - Saiku Analytics Founder >>>>>>> Tel: +44(0)5603641316 >>>>>>> >>>>>>> (Thanks to the Saiku community we reached our Kickstart >>>>>>> <http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/> >>>>>>> goal, but you can always help by sponsoring the project >>>>>>> <http://www.meteorite.bi/products/saiku/sponsorship>) >>>>>>> >>>>>>> On 27 February 2016 at 12:14, John Meinel <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> What image did you import into LXD? You should use something like: >>>>>>>> lxd-images import ubuntu trusty --alias ubuntu-trusty >>>>>>>> >>>>>>>> (substitute xenial/wily etc as relevant.) >>>>>>>> >>>>>>>> That looks like you are using an image from linuxcontainers.org >>>>>>>> which is very different from the ones built by >>>>>>>> cloud-images.ubuntu.com >>>>>>>> >>>>>>>> John >>>>>>>> =:-> >>>>>>>> >>>>>>>> >>>>>>>> On Sat, Feb 27, 2016 at 4:09 PM, Tom Barber < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Thanks John >>>>>>>>> >>>>>>>>> That was sort of my thinking too. But it's not a groups thing that >>>>>>>>> I can see. Same issue as root or as unprivileged users. >>>>>>>>> >>>>>>>>> >>>>>>>>> bugg@tomsdevbox:~$ groups >>>>>>>>> >>>>>>>>> bugg lxd >>>>>>>>> >>>>>>>>> bugg@tomsdevbox:~$ lxd --version >>>>>>>>> 2.0.0.beta2 >>>>>>>>> >>>>>>>>> >>>>>>>>> bugg@tomsdevbox:~$ lxc --version >>>>>>>>> 2.0.0.beta2 >>>>>>>>> >>>>>>>>> >>>>>>>>> at which point the bootstrap trust image starts fine, and i can >>>>>>>>> >>>>>>>>> lxc exec juju-...... /bin/bash >>>>>>>>> >>>>>>>>> into it. But sshd isn't running which explains why the connection >>>>>>>>> refused error appears. >>>>>>>>> >>>>>>>>> Tom >>>>>>>>> >>>>>>>>> On 27 Feb 2016 11:56, "John Meinel" <[email protected]> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Connection refused isn't the error you would be getting if it was >>>>>>>>>> the current incompatibilities. What you're seeing looks more like you >>>>>>>>>> aren't in the "LXD" group, or you didn't refresh your groups after >>>>>>>>>> installing LXD. (newgrp lxd) >>>>>>>>>> >>>>>>>>>> John >>>>>>>>>> =:-> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Sat, Feb 27, 2016 at 12:08 AM, Tom Barber < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> No worries Serge I was just some Friday fun to get me out of the >>>>>>>>>>> daily grind. Thanks for the update. >>>>>>>>>>> >>>>>>>>>>> Tom >>>>>>>>>>> On 26 Feb 2016 8:02 pm, "Serge E. Hallyn" <[email protected]> >>>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>>> On Fri, Feb 26, 2016 at 02:42:51PM +0000, Tom Barber wrote: >>>>>>>>>>>> > Afternoon, got bored decided to try Jorge's blog post about >>>>>>>>>>>> Juju LXD and ZFS >>>>>>>>>>>> > >>>>>>>>>>>> > I'd read on a few posts about the requirement for LXD beta2 >>>>>>>>>>>> because of API >>>>>>>>>>>> > incompatibilities so I found the deb's and installed them. >>>>>>>>>>>> > >>>>>>>>>>>> > Its up and running and images start fine, but juju bootstrap >>>>>>>>>>>> fails with >>>>>>>>>>>> > connection refused when trying to SSH in. Something stupid >>>>>>>>>>>> i'm doing or >>>>>>>>>>>> > just broke for now? >>>>>>>>>>>> >>>>>>>>>>>> Hi Tom, >>>>>>>>>>>> >>>>>>>>>>>> Yeah it's just broken for now. It will be fixed when a new >>>>>>>>>>>> feature branch >>>>>>>>>>>> is merged, which I think is supposed to happen on or before >>>>>>>>>>>> Monday. >>>>>>>>>>>> >>>>>>>>>>>> -serge >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Juju mailing list >>>>>>>>>>> [email protected] >>>>>>>>>>> Modify settings or unsubscribe at: >>>>>>>>>>> https://lists.ubuntu.com/mailman/listinfo/juju >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
