/srv/irclogs.ubuntu.com/2013/07/02/#juju-dev.txt

wallyworld_thumper: https://codereview.appspot.com/1085404301:09
* wallyworld_ goes to look for food01:21
wallyworld_bigjools: you seen this error trying to compile the go-curl stuff? https://pastebin.canonical.com/93649/02:06
wallyworld_this is from one of the IS guys trying to deploy juju from source for prodstack02:07
bigjoolsI have no02:07
bigjoolst02:07
bigjoolsis it a 1.1 vs 1.0 thing?02:07
wallyworld_maybe it's a precise/Go version issue02:07
bigjoolsor missing go dev headers02:07
wallyworld_could be. precise only has 1.0.2 i think02:07
bigjoolsit should work on 1.002:08
bigjoolslooks like a missing package to me02:08
bigjoolsI am using 1.0.2 here and it works02:08
wallyworld_i asked them to install the deps that were in the go-curl email02:09
wallyworld_they had done that02:09
bigjoolsdoes he have golang-src installed?02:09
bigjoolsthat too, yes02:09
wallyworld_not sure about golang-src. that surely shouldn't be needed?02:09
bigjoolsit will have .h files needed to compile02:10
wallyworld_i guess that's relevant for goc stuff02:10
bigjools/usr/share/go/src/cmd/cgo/out.go:typedef __SIZE_TYPE__ GoUintptr;02:11
bigjoolsed@beast:~/canonical/GO/src/launchpad.net/gwacl$ dpkg -S /usr/share/go/src/cmd/cgo/out.go02:11
bigjoolsgolang-src: /usr/share/go/src/cmd/cgo/out.go02:11
bigjoolsit's needed02:11
wallyworld_ok, thanks. i'll let him know. we should add that to any doc02:11
bigjoolsyeah02:11
bigjoolsdunno why I have it installed, something will have pulled it in02:11
wallyworld_i have it installed cause i built Go 1.1 from source02:12
bigjoolswhy are you using 1.1?02:16
bigjoolsI know 1.0 is unsupported, but ...02:16
bigjools1.0 is still default in raring it seems02:16
davecheneyjuju add-machine is very useful, thanks wallyworld_02:17
wallyworld_davecheney: no problemo. what are you using it for?02:18
davecheneyneed a precise machine to simular an lp builder02:20
davecheneyso i can figure out wtf has happened to the release ppas02:20
bigjoolsdavecheney: can I help?02:23
davecheneybigjools: nah, it's not lp specifically02:23
davecheneyi suspect becaue the builders are using such an old version of go02:23
bigjoolsmaybe I can still help :)02:23
davecheneywe're getting screwed over with compatability issues02:23
bigjoolshave you tried using pbuilder?02:24
davecheneybasically the /usr/bin/juju from the ppa can't talk to ec2 and/or our cloud image query thing02:24
davecheneybut one I build myself, from the same source, can02:24
bigjoolsit creates a build env using package versions from a particular release02:24
davecheneyyup02:24
davecheneywhich is why I'm making a precise machine to try to emulate it02:24
bigjoolsugh, pbuilder didn't recreate your problem?02:24
davecheneycan't be fucked with that02:24
davecheneythis is what vm's are for02:25
bigjoolspbuilder is much easier mate02:25
davecheneyjuju is easier02:25
davecheney:)02:25
bigjools:)02:25
davecheneywhere is the tm symbol on my keyboard02:26
bigjoolswell pbuilder is the closest thing you'll get to what the builders do02:26
bigjools02:26
* bigjools offers a copy/paste token02:26
bigjoolsJuju is fucking awesome™02:26
davecheneykeep repeating it02:27
davecheneysoon it'll be 2nd nature02:27
bigjoolsI need a slogan for maas02:27
davecheneyfor the maas's not the class's02:28
davecheneyer02:28
davecheneymasses not the classes02:28
bigjoolsnot bad02:28
wallyworld_thumper: all those comments about machine 0 etc - all that stuff existing previously in the tests - i just moved it around and extracted some common logic03:06
wallyworld_i'm wondering whether we want to do a clean up at the end of this work rather than fixing a bunch of existing stuff that isn't too badly out of date now03:07
thumperwallyworld_: I'd be up for a separate branch03:13
thumperit was more of an observation03:13
thumperand we should work to make tests easier03:13
wallyworld_agreed03:13
wallyworld_i'm writing tests for having assignnew honour container constraints03:14
wallyworld_so when that's done, we can deploy into a new container without needing add-machine first03:15
thumpercool03:35
thumperugh04:25
wallyworld_thumper: https://pastebin.canonical.com/93667/ https://codereview.appspot.com/1085804304:34
davecheneyanyone tried to compile juju on precise recently ?04:45
davecheneyhttp://paste.ubuntu.com/5835154/04:45
bigjoolssee my convo with wallyworld_ from earlier04:48
davecheneyle shit04:48
bigjoolsinstall golang-src, basically04:49
davecheneyubuntu@ip-10-248-67-205:~/src/github.com/andelf/go-curl$ dpkg -l | grep golang04:49
davecheneyii  golang-go                        2:1-5                        Go programming language compiler04:49
davecheneyii  golang-src                       2:1-5                        Go programming language compiler - source files04:49
bigjoolshuh04:49
bigjoolsummmm04:49
bigjoolsso GoUintptr is declared in the files that package installs04:51
davecheney#include "_cgo_export.h"04:53
davecheney^ this is a bit suspect04:53
davecheneyhow did this manage to build on the lp builders04:54
davecheney?04:54
bigjoolsdoes it build ok on raring?04:56
davecheneywill check04:56
davecheneyit builds ok on my R machine04:56
davecheneybut I need to check04:56
davecheneyplease hold04:56
bigjoolsit builds for me locally04:56
davecheneysame04:56
bigjoolson raring04:56
bigjoolsbut that means nothing in the world of building packages04:57
davecheneyhttp://www.keepcalm-o-matic.co.uk/p/keep-calm-it-works-on-my-machine/.04:58
davecheneyhttp://www.keepcalm-o-matic.co.uk/p/keep-calm-it-works-on-my-machine/04:58
davecheneybigjools: it builds fine on raring05:38
bigjoolsfun05:38
bigjoolsany idea what difference would cause this?05:38
bigjoolsand feel free to file a bug on bugs.launchpad.net/gwacl05:39
davecheneyraring has a different version of go and libcurl305:39
davecheney^ first guess05:40
bigjoolsit's not going to help now, but here's another reason to push an SRU05:40
davecheneylucky(~) % juju scp -e ap-southeast-1 1 bin/juju .05:40
davecheneycp: cannot stat ‘1’: No such file or directory05:40
davecheneyerror: exit status 105:40
davecheney^ did I derp, or is this a bug ?05:40
davecheneybigjools: confirmed, go-curl/gwacl works on go 1.0.206:09
davecheneyi am checking if it can compile for 1.0.1 or earlier06:09
bigjoolswhat does precise have?  I can't tell from the package versioning06:10
davecheneyit's called go106:13
davecheneynot really sure what it is under the hood06:14
bigjoolsnot sure how the distro guys can keep an unsupported release in an LTS06:14
davecheneybigjools: there is a big disconnect going on there06:15
davecheneybigjools: https://launchpad.net/juju-project << can you add https://launchpad.net/gwacl to this list ?06:19
bigjoolssure06:20
davecheneyta muchly06:21
davecheneychasing down which versions of go can't compile go-curl06:21
davecheneythen I can try to figure out the bug that was fixed between releases06:22
davecheneyhttps://bugs.launchpad.net/juju-core/+bug/119681106:26
=== tasdomas_afk is now known as tasdomas
jamespagedavecheney, mgz: any update on next release of juju-core? standing by to help upload to saucy08:15
davecheneyjamespage: i'll forward u an email with the latst state of play08:18
jamespagedavecheney, thanks08:18
davecheneydone08:19
jtvfwereade: I did the first part of that refactoring of duplicated provider code that you wanted me to do.  Thumper was going to review it, but I guess it didn't work out.09:39
jtvI don't suppose you could provide the second review?  It's here: https://codereview.appspot.com/1083004409:39
mgzfwereade: sorted out the laptop issue I take it?09:58
fwereadejtv, sure, thanks for doing that, sorry I missed you09:58
fwereademgz, yeah, it all seems happy again09:59
fwereadejtv, LGTM, that's awesome -- thank you very much for picking that up10:02
wallyworldfwereade: i'm on leave for the rest of the week but would love to land a couple of branches. would you be up for a look? it's deployment constraints stuff10:17
wallyworldhttps://pastebin.canonical.com/93667/10:18
jamfwereade: can I get a follow up review of: https://codereview.appspot.com/10809043/ ?10:25
jammgz: if you can look at it as a second +1 that would be great, too10:25
jamI'm trying to take over Rogs' branch for now, and then transition to having a machine agent that only talks via api10:26
fwereadejam, sure10:26
fwereadejam, don't burn too much time on rog's branch -- it's a slight detour from that goal, I think10:27
fwereadejam, nice-to-have not must-have10:27
jamfwereade: well, it changes the names for some apis, but that might be internal only.10:28
jtvfwereade: fantastic — I'll do the rest after.10:34
mgzjam: sure10:36
=== _thumper_ is now known as thumper
mgzcodereview is being a right bint today...11:22
jamfwereade: https://plus.google.com/hangouts/_/f497381ca4d154890227b3b35a85a985b894b47111:33
jtvfwereade, you might know this: the ec2 implementation of StateInfo doesn't use DNSName(), but goes straight to the EC2 object's DNSName field.  That saves it a query to the EC2 API... would it be a problem if I made it go through DNSName()?13:18
fwereadejtv, that sounds like a problem with ec2.Instance.DNSName() not caching sensibly13:20
fwereadejtv, so I think I'm fine with that13:20
jtvThanks.  I think it may be an optimization, because in a way, what StateInfo() does there is a parallel WaitDNSName().13:21
jtvIn fact, WaitDNSName() is another piece of code that so far appears as if the exact same loop would do for all providers.13:21
fwereadejtv, yeah, like much of the environs code :(13:22
jtvTrue.  :)13:22
mgzyeah, it's a bad interface13:22
fwereadejtv, I hadn't even noticed that one though13:23
jtvBy the way, do I understand correctly that StateInfo() is there to return *a* state server, not necessarily as many as it can?13:23
fwereadejtv, it's currently there to return just one13:23
jtvWell some providers don't need to wait for DNSName.  But in those cases, the generalized WaitDNSName loop would still do the right thing.13:23
jtvOK, thanks!13:23
fwereadejtv, but we don't want to restrict it to that13:23
jtvI tried generalizing *all* StateInfo implementations, but the dummy one deadlocks.13:24
fwereadejtv, gaah, blasted dummy provider... I guess it wasn't clear why?13:24
jtvInstead, I'm going with the approach of "utility re-usable implementation."13:24
fwereadejtv, sgtm13:24
fwereadejtv, in general, when you come across things like WaitDNSName, I'd really appreciate bugs tagged tech-debt13:25
fwereadejtv, trying to enumerate them all in one go is clearly a non-starter13:25
fwereadejtv, but being able to look at them will be useful13:26
jtvI didn't go too deeply into it, but my impression was that the dummy provider deadlocked on its two locks somehow, one of which might be needed only for bootstrapping or something.13:26
jtvDouble-locking is nasty.13:26
jtvOn first invocation, I think StateInfo will return only those state servers that have been defined *before* StateInfo was called (it doesn't discover newer additions) and that are among the first to have their DNS names.13:27
fwereadejtv,+113:28
jtvThanks!  I'll get right to it.  After this, the most complicated StateInfo implementation  among the providers should be the dummy one.  :)13:29
fwereadejam, comment for consideration in upgrader,let me know yourthoughts please13:47
=== wedgwood_away is now known as wedgwood
mgzhm, unhappy bot15:06
mgzsomething caused both openstack and ec2 tetsts to timeout after 10mins15:07
mgzwhich is odd, as I merged into trunk and ran the suite locally before submitting15:08
fwereadejtv,ping15:25
mgzfwereade: past his eod really, you may be best off emailing15:36
jtvfwereade: yes?15:53
fwereadejtv, I asked in the review -- could you make the dns name different from the instance id? or have I misunderstood what's going on in that test?15:55
fwereadejtv, but don't worry about it today unless you want to :)15:55
jtvfwereade: I'll just have a look at what you wrote there then, thanks.15:56
jtvBut I think you're right.15:56
jtvSay... what time unit does utils.AttemptStrategy use?  It seems weird that tests use 0.25e9 and 0.01e9 — why not something much smaller?16:10
jtvI believe 0.01e9 equals 10,000,000.16:11
jtvProbably nanoseconds, but even then... why not 1?16:11
jtvAnd why floating-point notation?16:15
=== tasdomas is now known as tasdomas_afk
mgzif tim pops in, tell him I'm just finishing cooking20:58
thumpermorning21:01
mgzhey thumper21:10
thumperhi mgz21:10
fwereadethumper, heyhey21:16
thumperhi fwereade21:16
thumperfwereade: I'm consolidating the bootstrap functions found in environs/*/state.go21:17
thumperinto one place21:17
thumperas I wasn't going to copy and paste yet again21:17
fwereadethumper, <321:17
thumperheh: current error: "file \"provider-state\" not found not found"21:18
* thumper fixes too21:18
fwereadethumper, ah, balls, I had a branch that fixed a bunch of those, and I could see the bits rotting one by one while I was distracted :/21:19
thumperheh21:20
thumperthis one was in localstorage/storage.go21:20
wallyworldmramm: hi, another issue that we need to communicate on (besides the packaging thing) - i saw a conversation in #juju where it was thought the reason for deprecating default-image-id was to make it easier for the developers21:33
mrammwallyworld: haha21:34
wallyworldhaha indeed! it's easier for s to keep that setting21:34
mrammwe need to finish up the sync tools story21:34
mrammso that none of that seems complicated anymore21:35
wallyworldyeah. and explain the rationale for various design decisions21:35
mrammyep21:35
mrammsounds like a good blog post21:35
wallyworldyou are an ideas man21:35
mrammfor the one blog post a month thing ;)21:35
wallyworldi'm going to blog about the simplestreams stuff when it is done21:35
wallyworldbut there's more to do yet21:36
mrammcool21:36
* thumper feels a tread being pulled22:36
* thumper feels like screaming a little22:38
thumpercopy and paste FTL22:38
thumperoh ffs22:51
thumperthat is 2-3 hours down the drain22:51
thumpersomeone else has already landed this code22:51
davecheneyarosales: sorry, i'm late for the clal23:16
davecheneyi thought it was at 10 for unknown reasons23:16
davecheneyi'll get my headset now23:16
arosalesdavecheney, no worries in the hangout when you are ready23:16
davecheneyok, i'm in the hangout now23:22
=== wedgwood is now known as wedgwood_away
davecheneyarosales: ok, i'm in the hangout now23:25
* thumper afk to collect sick child23:41

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!