/srv/irclogs.ubuntu.com/2014/03/11/#juju-dev.txt

thumperwallyworld: I finally have tests for the golxc clone stuff00:35
wallyworldyay00:35
thumperwallyworld: required me putting the checkers into "github.com/juju/testing"00:35
thumperslightly earlier than I thought00:35
thumperbut, hey, it needed doing00:35
wallyworldnot a bad thing00:35
thumperright00:35
thumperjust pushing now00:35
thumperwallyworld: https://code.launchpad.net/~thumper/golxc/clone/+merge/209790 is now up to date00:36
wallyworldok00:36
thumperit isn't perfect, but better than nothing IMO00:37
thumperwallyworld: ta00:40
wallyworldnp00:40
thumperwallyworld: also, I have another that you reviewed first, and I moved stuff00:40
wallyworldok00:40
thumperwallyworld: https://codereview.appspot.com/72210043/00:42
thumperwallyworld: I think it was me moving the lsb-release function00:42
thumperwhich I did00:42
wallyworldok00:42
wallyworldthumper: how about extracting a common method to parse the lsb-release file, taking as a param the name of the field (DISTRB_CODENAME  or DISTRIB_RELEASE) to extract00:44
thumperwallyworld: seriously?00:45
* thumper grumbles00:45
wallyworldwell it is cut and paste code00:45
wallyworldbut feel free not to i guess00:45
wallyworldyour call00:45
* thumper will do it if we touch a third time, how's that?00:46
wallyworldok00:46
wallyworldsuppose00:46
thumpergeez00:47
davecheneywut ?!?01:04
davecheneyhttp://paste.ubuntu.com/7070987/01:04
thumperdavecheney: which provider?01:21
axwdavecheney: in environs/tools/tools.go, does "toolsConstraint.Arches" contain ppc64?01:23
axwthumper: that bit should be provider independent I think, as it's uploading tools01:23
thumperaxw: the reason we use the combined output is for testability01:25
thumperaxw: we have the hook thing to replace the output01:25
thumperaxw: it doesn't do one for stdout/stderr just yet01:26
axwthumper: I guess that's fine since you should never have stdout & stderr at the same time, though I still think it'd be good to add the string to the error01:27
thumperI agree it would be good01:27
thumperperhaps we add a new test function :-)01:27
axwthumper: I was thinking back to ssh things, but in that case stdout/stderr were mixed - not relevant here01:27
* thumper nods01:27
thumperI did steal one of your ideas though...01:28
thumperhttps://github.com/juju/testing/blob/master/cmd.go, with PatchExecutableAsEchoArgs and AssertEchoArgs01:28
axwcool :)01:29
thumperwaigani: standup01:31
thumperaxw: could I get you to take a look at this too? https://codereview.appspot.com/73300043/02:02
* thumper goes to review ian's branch02:02
axwsure02:04
davecheneyaxw: local provider02:13
davecheneyhang on02:13
davecheneymaybe my ppc change didn't land02:13
* davecheney checks02:13
davecheneyaxw: thumper could I get a set of eyeballs on https://codereview.appspot.com/69980044/02:17
axwsure, just after thumper's one02:18
davecheneykk02:18
axwdavecheney: it's already reviewed - antying in particular you want looked at?02:18
axwor it's landed and still not working?02:18
axwno not landed...02:18
davecheneynot landed, should be trivial review02:19
axwthumper: reviewed yours02:24
thumperaxw: ta02:24
axwdavecheney: "uname -m" returns what?02:25
davecheney uname -m02:30
davecheneyppc64le02:30
davecheneyWHAT!02:30
davecheneywe've all be calling this ppc64el !!02:30
davecheneyhmm, might have to fsck with that regex02:31
davecheneygoing to whinge in a channel02:31
davecheneybbsd02:31
axwdavecheney: el is just for dpkg I think, kernel calls it le (which makes more sense to me...)02:32
mwhudsonel is a funny computron joke, right?02:33
mwhudsonat least i always assumed that was the explanation for armbe/armel02:33
axwhah02:34
axwnever thought of it like that :)02:34
davecheneyyup, that is the joke02:35
axwso blame it on humourless kernel developers ;)02:35
davecheneyi think it comes from byte order marks02:35
davecheneybut probably goes back decades before that02:35
davecheneymwhudson: i'm going to complain to those guys in that channel about this02:36
davecheneythe archive is called pppc64el ffs!02:36
mwhudsondavecheney: my side of the fence just has aarch64 vs arm64, at least they are easier to tell apart :-)02:36
axwdavecheney: also, the GOARCH is ppc64?02:36
axwheh02:37
mwhudsondavecheney: i don't actually know which channel you mean, but have fun :)02:37
davecheneyright, ask expected i've been told i'm holding it wrong02:38
davecheneymwhudson: axw sorry mate, https://bugs.launchpad.net/juju-core/+bug/129065402:43
_mup_Bug #1290654: juju must not rely on the output of uname -m <ppc64el> <juju-core:Triaged> <https://launchpad.net/bugs/1290654>02:43
axwokey dokey02:44
axwdavecheney: although, we may want to support non-dpkg OSes at some point, which renders that bug invalid02:44
davecheneyaxw: please don't shoot the messenger, i'm as unhappy about this as you are02:45
davecheneyaxw: given how non dpkg os's keep getting pushed off indefinitely, lets leave that til it actually is a problem02:45
davecheneyso, the fire alarm has been going off for quite a while now02:51
davecheneynobody appears too concerned02:51
thumperaxw: trying to use utils.CopyFile, but it makes my test fail :-(03:12
thumperaxw: http://paste.ubuntu.com/7071362/03:14
thumperaxw: without that diff, tests pass, with that diff, fail03:14
thumperhttp://paste.ubuntu.com/7071364/03:15
axwthumper: back to front?03:15
axwdest first03:15
thumperah...03:15
thumperffs03:15
thumperwhy?03:15
* axw shrugs03:15
axwasm? :)03:16
thumperwell that fixed it :-)03:16
axwwallyworld_: oops, thanks for picking up the copy and paste error :)03:33
wallyworld_np :-)03:33
axwwallyworld_: if I were to make a helper for the path, then probably all the tests should change. I'd rather leave that to another MP if you don't mind...03:34
wallyworld_sure03:34
axwneed to do a bunch of tidying up I think03:34
wallyworld_yeah03:34
thumpergrr!!!!!03:44
thumpermy branch has failed to land about 5 times so far03:44
thumperwith different intermittant failures03:44
thumperAll related to mgo starting AFAIKT03:44
thumpers/K/C/03:44
wallyworld_been there done that :-(03:44
thumperno idea what causes the failures03:44
wallyworld_thumper: you happy with the changes to my branch now?03:45
thumperwallyworld_: just looking03:46
wallyworld_ok :-)03:46
thumperemailed03:49
axwwallyworld_: is the juju bot running tests for gwacl? seems to lacking a branch for gocheck03:49
wallyworld_axw: it was. but maybe when it was set up again that was left out03:49
wallyworld_thumper: ta. yes, find tools will change for sure i think. but there's an api now :-)03:50
thumperright03:50
thumperaxw: https://codereview.appspot.com/73300043 in order to better match the config file, I also moved the mounting of the logdir to after creation (it needed to be done anyway)03:53
axwsounds good, looking03:54
axwwallyworld_, thumper: I don't have the bot creds, would one of you please branch launchpad.net/gocheck into  /home/tarmac/gwacl-trees/src/launchpad.net/gocheck on the bot?04:02
wallyworld_ok04:02
axwthanks04:02
thumperI don't have creds either :-(04:03
thumperwallyworld_: while you're there, care to "go get github.com/juju/testing" ?04:03
wallyworld_suppose04:03
thumperta04:03
thumperomg, my branch landed sixth time lucky04:03
wallyworld_axw: done04:05
axwthanks wallyworld_04:06
wallyworld_np04:06
wallyworld_thumper's is done too04:06
thumperwallyworld_: you the man!04:07
wallyworld_sometimes04:07
thumperaxw: are you ok with me using the combined output for testing purposes? https://codereview.appspot.com/73310043/04:10
thumperwallyworld_: meaning sometimes you are the woman?04:10
wallyworld_why yes04:11
wallyworld_how did you know04:11
axwthumper: yeah sorry, I will lgtm04:11
thumperta04:11
davecheneyaxw: i'd really like to land this sukka today, https://codereview.appspot.com/69980044/06:08
axwdavecheney: looking06:09
axwdavecheney: lgtm06:15
davecheneyaxw: ta06:15
davecheneylanding06:15
jamwwitzel3, thumper: FWIW when you get a test suite failure about replicaSet, that *usually* is what breaks the bot (I believe the test is waiting for mongod to start, but times out and then leaves it alive, which leaves the flock open which blocks future test runs)06:33
davecheneyor not ... replicaset_test.go:223: c.Assert(err, gc.IsNil)06:35
davecheney... value *errors.errorString = &errors.errorString{s:"Error getting replset config : no reachable servers"} ("Error getting replset config : no reachable servers")06:35
jamdavecheney: known intermittent test failure, you should reapprove, I'll check that the bot is running ok06:40
jamdavecheney: maybe you already did, since the bot is working on that branch as of :37 which is just after you commented06:41
=== axw_ is now known as axw
rogpeppemornin' all08:35
dimiternrogpeppe, mornin :)08:36
rogpeppedimitern: hiya08:36
dimiternrogpeppe, can you take a look at this? https://codereview.appspot.com/72860045/08:37
rogpeppedimitern: will do in a little bit08:37
dimiternrogpeppe, ta08:37
rogpeppedimitern: (when i've had more than 20 seconds to catch up on my email :-])08:37
dimitern:) sure08:38
dimiternrogpeppe, ping09:52
rogpeppedimitern: i'm looking at your review now, BTW09:52
voidspacehow do I update dependencies.tsv?09:53
voidspacewhen adding github.com/juju/ratelimiter as a new dependency09:54
rogpeppevoidspace: go get launchpad.net/godeps09:54
voidspacerogpeppe: running09:54
rogpeppevoidspace: then make sure that all your deps are currently up to date, by running godeps -u dependencies.tsv09:55
rogpeppevoidspace: then run godeps -t $(go list launchpad.net/juju-core/...)  > dependencies.tsv09:56
voidspacerogpeppe: and that has added the new dependency09:57
voidspacerogpeppe: thanks09:57
rogpeppevoidspace: cool09:57
voidspaceand changed the order of another in the list09:57
voidspaceright, I need to stash that instruction somewhere09:57
rogpeppevoidspace: the godeps -t line is in the CONTRIBUTING file09:57
voidspacerogpeppe: ah, I read the README but not that one09:58
voidspacerogpeppe: my bad, thanks09:58
rogpeppedimitern: in general, i would have much preferred it if you had separated that large CL into several smaller ones09:58
voidspaceI've finally got vim killing trailing whitespace on save09:59
rogpeppevoidspace: some people find it nicer just to gofmt on save10:04
voidspacerogpeppe: that's not a bad call10:04
rogpeppevoidspace: or, better, run goimports on save (that way you rarely have to worry about adding or removing imports)10:04
voidspacerogpeppe: does goimports run go fmt too?10:05
rogpeppevoidspace: yes10:05
voidspacerogpeppe: sounds like the option to go for then10:06
rogpeppevoidspace: (it kind of *is* gofmt, but with additional import-related functionality)10:06
voidspacerogpeppe: right10:06
rogpeppevoidspace: in general, any tool that transforms go source code will do the equivalent of gofmt on output10:07
voidspacerogpeppe: this one? https://godoc.org/code.google.com/p/go.tools/cmd/goimports10:08
voidspacerogpeppe: there seem to be several forks10:08
rogpeppevoidspace: yup10:08
rogpeppevoidspace: that's the canonical one10:08
dimiternrogpeppe, I know, I was thinking of that10:08
voidspacerogpeppe: cool, thanks10:08
dimiternjam, rogpeppe, if we're dropping 1.14 compatibility, then bug 1235217 can be closed and NewEnvFromName code simplified10:11
_mup_Bug #1235217: old environments should be given .jenv files <jenv> <tech-debt> <juju-core:Triaged> <https://launchpad.net/bugs/1235217>10:11
mattywdimitern, rogpeppe this merge proposal: https://codereview.appspot.com/51450047/ has totally changed. The meaning of the juju login and juju whoami commands has changed totally in the last couple of days so it's be decided to remove them from this mp - and by some accident of history there should also be a fix for https://bugs.launchpad.net/juju-core/+bug/1285256 in it - do you think I should restart the codereview - or keep it as it10:27
mattywis?10:27
_mup_Bug #1285256: bootstrapping juju from within a juju deployed unit fails <bootstrap> <juju-core:Triaged> <https://launchpad.net/bugs/1285256>10:27
rogpeppemattyw: i'll have a look when i've finished the review i'm on10:27
mattywrogpeppe, many thanks10:28
=== Ursinha is now known as Ursinha-afk
rogpeppedimitern: could you explain to me the reasoning behind the configstore.Exists function, please?10:31
dimiternrogpeppe, that's the way we detect if the env is bootstrapped early, so we can report it consistently across all commands except bootstrap and sync-tools10:34
rogpeppedimitern: it's only used in one place, right? (in juju.newAPIClient)10:34
dimiternrogpeppe, well yes10:35
rogpeppedimitern: why not just do a ReadInfo in that place?10:35
dimiternrogpeppe, we might not have a store yet to ReadInfo from10:36
rogpeppedimitern: how could that happen?10:36
rogpeppedimitern: the only way that i could see is if ~/.juju doesn't exist yet, but that should not happen10:37
dimiternrogpeppe, well i'd like to be defensive there10:38
rogpeppedimitern: i don't understand10:38
rogpeppedimitern: if we couldn't create a config store object, how could we ever write an info?10:39
rogpeppedimitern: if the NewDisk call fails, we'll return with an error anyway, which is sufficiently defensive, i think10:40
dimiternrogpeppe, Default() will panic if there's no JujuHome set, which is awkward10:41
rogpeppedimitern: huh?10:42
rogpeppedimitern: Exists panics in that case too10:42
rogpeppedimitern: if juju home isn't set, we *want* to panic - it's something that every juju client program should do10:43
rogpeppedimitern: Exists is also wrong in this case because it uses configstore.Default, which at some point in the future may not return a disk-based configstore10:43
dimiternrogpeppe, exists can be patched for tests10:44
rogpeppedimitern: that is, it assumes that configstore.Default returns the same thing as configstore.NewDisk(osenv.JujuHome()), which is breaking the Default abstraction10:44
dimiternrogpeppe, and let's worry about default not returning a disk-based store when we get there10:44
rogpeppedimitern: let's not willfully break abstractions that don't need to be broken, please10:44
rogpeppedimitern: i don't understand why we need to patch Exists.10:45
rogpeppedimitern: i don't understand the PatchValue in bootstrapEnv10:45
rogpeppedimitern: it's easy to "patch" Exists without diving under the covers - we can just create the environ info10:46
wallyworld_we having a standup? I'm more than happy to skip it :-)10:47
rogpeppewallyworld_: probably10:47
rogpeppewallyworld_: joining10:47
jammgz: poke for standup ?10:51
jamwallyworld_: ^^ ?10:51
wallyworld_jam: i'm there10:51
wallyworld_wrong hangout maybe10:51
jamwallyworld_: probably, as I don't see you in here10:51
jamwallyworld_: https://plus.google.com/hangouts/_/calendar/am9obi5tZWluZWxAY2Fub25pY2FsLmNvbQ.mf0d8r5pfb44m16v9b2n5i29ig10:51
voidspacerogpeppe: a bad photo10:56
voidspacerogpeppe: https://www.dropbox.com/s/tkmkun6etxju83l/my-setup.jpg10:56
rogpeppevoidspace: nice!10:57
voidspacerogpeppe: room for a couple more if I reorganise... ;-)10:57
jamvoidspace: you have a 7th mini monitor if I see it correctly10:58
voidspacejam: I have a chumby clock10:59
jamvoidspace: one exists inside my home somewhere10:59
voidspacejam: which is not really a monitor as I only ever run the clock app...10:59
voidspacejam: heh :-)10:59
mattywvoidspace, is that a kinesis keyboard I see?11:14
voidspacemattyw: yep, kinesis advantage. My favourite keyboard of all time. :-)11:14
mattywvoidspace, I've always wanted to give one  a go - but could never find someone who had one to try out - and I don't feel I can justify the cost11:15
mattyw^^ unless I knew I was going to be able to use it11:16
voidspacemattyw: yep, they're ridiculously expensive - but like a good chair, worth the investment11:16
voidspacemattyw: I tried one at PyCon one year11:16
voidspacemattyw: you *have* to touch type (or have a miserable time)11:16
voidspacemattyw: but if you can touch type (or mostly touch type - it will make you learn fast) then they're awesome11:16
voidspacemattyw: reach every key without moving your hands11:17
voidspacemattyw: just rest your palms on the keyboard (rests provided) and the "well design" means you can reach every key with your fingers11:17
mattywvoidspace, hopefully I'll be able to try yours at some point - I was convinced to buy a mechanical keyboard about 12 months ago - the perfect soundtrack11:18
voidspacemattyw: when I travel I tend to bring my kinesis split keyboard instead11:18
voidspacemattyw: the advantage is a bit expensive and bulky to travel with11:18
voidspacemattyw: but yes, the mechanical switches make them very nice to type with11:18
voidspacebut a bit clacky11:18
mattywis fwereade around today?11:23
rogpeppemattyw: i don't think so11:32
jamwallyworld_: you have a review for https://code.launchpad.net/~wallyworld/juju-core/simplestreams-ordering/+merge/21032411:32
wallyworld_thanks11:33
wwitzel3jam: on the verbose output / fix for the replica set , I didn't see a reitveld , should I just comment on the diff in lp?11:33
jamwwitzel3: yeah, I didn't get lbox setup on the new machine, so just LP is fine11:33
wallyworld_jam: i think sorting is not strictly necessary but "nice"11:34
wallyworld_hence i put it in the code11:34
voidspaceright, coffee11:38
voidspacemattyw: Will won't be around until Thursday11:39
dimiternrogpeppe, are you still on it? :)11:56
rogpeppedimitern: yeah11:57
rogpeppedimitern: i'll publish my comments so far though11:57
dimiternrogpeppe, thanks12:01
rogpeppedimitern: why the new manual/testing package?12:03
dimiternrogpeppe, to drop gocheck imports in real code12:05
rogpeppedimitern: why not just put the code inside a _test.go file inside environs/manual?12:06
dimiternrogpeppe, because it's used in environs/manual and provider/manual tests12:07
rogpeppedimitern: really?12:08
rogpeppedimitern: i only see a manual/testing import inside environs/manual tests12:08
dimiternrogpeppe, sorry, not in provider/manual - let me take a look12:08
dimiternrogpeppe, it seems that's true now, ok will move it in environs/manual/fakessh_test.go12:10
rogpeppedimitern: thanks12:10
jamnatefinch, rogpeppe: can we have a hangout later tonight to chat about what we need to do for HA ?12:42
rogpeppejam: sure12:43
rogpeppejam: what time's good for you?12:43
jamI have family time until about 16:00 UTC, so after that would be ok12:43
=== Tribaal_ is now known as Tribaal
jamrogpeppe: would 16:00 work for you? I think it shouldn't be a problem for Nate12:44
rogpeppejam: seems fine for me.12:45
rogpeppejam: i guess it might be lunchtime for nate12:45
natefinchrogpeppe, jam:  1600 is a little tricky because my wife will be getting my daughter from preschool, so I'll have the baby. but 16:30 would work.12:48
jamnatefinch: fine for me12:48
jamyou can also meet with one hand, right? :)12:49
jamnatefinch: rogpeppe: bumped to 16:3012:49
rogpeppejam, natefinch: SGTM12:49
natefinchjam: cool12:49
natefinchjam: sometimes the kids require three hands :)12:49
rogpeppedimitern: rest of review done12:59
dimiternrogpeppe, tyvm13:08
rogpeppedimitern: np13:08
voidspacerogpeppe: why did you make ratelimit.New Capacity an int64 - expecting some *really* big buckets?13:15
rogpeppevoidspace: because i wanted to be able to use it for bytes-per-second transfer rates13:16
rogpeppevoidspace: and 4GB per second isn't beyond the bounds of possibility13:16
voidspacerogpeppe: heh, ok13:16
voidspacerogpeppe: so the answer is yes13:16
rogpeppevoidspace: :-) yeah13:17
=== Ursinha-afk is now known as Ursinha
sinzuiLooks like bootstrap is broken on precise13:39
sinzuiaws and hp fail13:39
sinzuias does azure13:39
sinzuitrusty passed13:39
natefinchsinzui: how is it failing?13:39
sinzuiNot must information http://ec2-54-84-137-170.compute-1.amazonaws.com:8080/job/aws-deploy/880/console13:40
sinzuihp is no better http://ec2-54-84-137-170.compute-1.amazonaws.com:8080/job/hp-deploy/822/console13:40
sinzuiI will try to gather a --debug level bootstrap13:41
natefinchsinzui: I suspect those are the failures I was seeing on trusty yesterday13:41
sinzuibut trusty passed on CI13:41
natefinchsinzui: it fails for me, though.  I wonder why.  I had the same bootstrap failed: rc: 1  error13:42
sinzuiinteresting13:42
sinzuiI am going to wait for CI to finish. I will know all the places it failed13:43
natefinchsinzui: for me, I did some debugging and it was timing out trying to ssh into the instance... I don't know if you're seeing the same problem13:43
natefinchsinzui: I had to had quite a bit of additional code to figure that out, since that RC 1 error is not exactly informative as-is13:44
sinzuinatefinch, was it a timeout, or do you believe there was network issues preventing success13:44
natefinchsinzui: it was a timeout.  I was able to manually create an amazon instance and ssh into it.  I'm about to try juju bootstrapping a machine and then manually ssh'ing into it.13:46
sinzuioh, even manual deploy failed13:47
natefinchsinzui: weird, yeah, I can ssh into the machine just fine, but juju's attempt fails.... this call is essentially what I did manually to have it work:13:54
natefinch2014-03-11 13:52:33 DEBUG juju.utils.ssh ssh_openssh.go:147 running: ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication no" -i "/home/nate/.juju/ssh/juju_id_rsa" -i "/home/nate/.ssh/id_rsa" "ubuntu@107.21.197.67" '/bin/bash'13:54
natefinchsinzui: I just did $ ssh -i ~/.ssh/id_rsa ubuntu@107.21.197.6713:54
sinzuiinteresting13:55
natefinchsinzui: I have to get on a UDS meeting in 5 minutes, but afterward I can do some more investigation.   Other people seem not to be having this problem, so maybe there's an environmental problem that is making Juju unhappy.13:56
natefinchsinzui: evidently had the days mixed up, so no UDS thing for me (at least not for me to be in).  Lemme see if I can figure out what's going on.14:05
sinzuinatefinch, thank. CI replayed the deploy tests for precise and all failed. They failed 5 times in a row14:08
voidspaceright, lunch14:10
* voidspace lurches14:10
=== hatch_ is now known as hatch
hatchhttp://askubuntu.com/questions/432679/getting-git-error-on-juju-charm-upgrade <--- this seems like a bug to me. The user shouldn't have to configure git to use juju....?14:51
natefinchhatch: I know we use git for charm upgrades, but I wouldn't think we'd require git to be configured in any particular way, especially on juju-deployed machines.14:54
natefinchrogpeppe, mgz, dimitern: can you guys bootstrap aws etc?  my bootstrap times out trying to connect to the instance14:54
hatchnatefinch yeah that's what I was thinking. I've also never ran into that issue and I've done a lot of bare-bones installs....I was just trying to get an idea if I should comment that he should file a bug14:55
=== niemeyer_ is now known as niemeyer
sinzuinatefinch, I am testing hp cloud...and it is looking better. I am wondering if the issue relates to user setup. CI runs under a very restricted user15:10
sinzuinatefinch, nm, it just bailed15:10
natefinchsinzui: doh15:11
natefinchsinzui: honestly, it's probably better that way.  Some weird user setup is harder to figure out than a general failing15:11
sinzuiHP died at15:11
sinzuiInstalling package: --target-release 'precise-update/cloud-tools' 'git'15:11
natefinchthat's odd15:12
sinzuinatefinch, I think cloud-tools might be at issue. That would explain why trusty is happy15:14
natefinchsinzui: I think I figured out part of my own problem... some debugging code I had put in to debug a different problem was inadvertently screwing up SSH.15:17
sinzuinatefinch, I updated bug with the info I just learned https://bugs.launchpad.net/juju-core/+bug/129089015:20
_mup_Bug #1290890: juju 1.17.5 RC cannot deploy to precise <ci> <deploy> <precise> <regression> <juju-core:Triaged> <https://launchpad.net/bugs/1290890>15:20
mattywdoes anyone know why a merge proposal might suddenly go insane? https://codereview.appspot.com/51450047/15:24
sinzuinatefinch, Hey, we are probably using different tools. I am testing using the 1.17.5 release candidate tools that were placed in each cloud. Are you using upload tools?15:26
natefinchsinzui: I'm using trunk without upload tools.  I think I've used upload tools without it making a difference.15:32
sinzuinatefinch, I agree, I just wanted you to know how juju got the tools in the ci tests and my one tests15:33
natefinchsinzui: cool15:34
natefinchmattyw: what's insane about that?  (not sure what it should look like).   I do know that sometimes rietveld gets confused, and you need to repropose/15:34
mattywnatefinch, I'll try that - I was expecting 5 files changed - I got almost all of core15:35
sinzuinatefinch, I don't see git in the archive. http://ubuntu-cloud.archive.canonical.com/ubuntu/pool/main/g/15:40
natefinchsinzui: what is in the archive and how it gets there is a mystery to me15:48
jamnatefinch: rogpeppe, I'm going to try to be back in time for our hangout, but I have to go do some grocery shopping. If I'm not back in time, please start talking about it without me, I'llbe on  as soon as I can15:48
rogpeppejam: ok15:48
natefinchjam: k15:48
sinzuinatefinch, the team that owns the archive, which includes jamespage, backport new software to precise so that our cloud tools are always modern.15:50
sinzuinatefinch, I don't think anyone asked for git to be backported, and ot probably doesn't. Juju just assumes if it needs git, it needs to get it from the cloud-archive. Just like it does for mongodb-server15:51
natefinchsinzui: ahh interesting15:51
natefinchsinzui: doersn't seem like that should have changed recently, thoughj15:52
sinzuinatefinch, I am going to bootstrap hp with 1.17.4 and see if it gets git from a different location15:52
sinzuinatefinch, I updated Bug #1290890. 1.17.4  didn't install git from cloud-tools. The regression is in code that always want to install precise packages from cloud-tools16:19
_mup_Bug #1290890: juju 1.17.5 RC cannot deploy to precise <ci> <deploy> <precise> <regression> <juju-core:Triaged> <https://launchpad.net/bugs/1290890>16:19
natefinchsinzui: interesting, thanks for doing all that work.16:19
voidspaceyay, my tests compile16:21
voidspacethey don't *do* anything, but they compile ;-)16:21
voidspaceactually, they start a loop with the a testInstanceGettter instead of a real environ and then quit, so not true that they do *nothing*16:21
wwitzel3it's the small victories16:23
wwitzel3I decided to make my maas configuration "better" .. by using a bridged virtual interface that used port fowarding and NAT via iptables so that as I moved locations, I wouldn't have issues with my maas getting confused by the network setup.16:25
natefinchwwitzel3: you're a braver man than I16:26
natefinchwwitzel3: last time I touched my iptables I couldn't print for a month16:27
voidspacehaha :-)16:30
rogpeppenatefinch: https://plus.google.com/hangouts/_/canonical.com/discuss-ha?authuser=116:34
bodie_is there a diagram illustrating the basic architecture of juju anywhere or should I just break down the source for myself?16:59
voidspacerogpeppe: ping17:01
voidspacerogpeppe: you able to help with a go question?17:02
rogpeppevoidspace: in a call right noew17:02
voidspacerogpeppe: okey-dokey17:02
voidspacenatefinch: fancy helping me with a go issue?17:03
natefinchvoidspace: in the same call as Roger, sorry :)17:04
voidspacenatefinch: heh, ok17:05
voidspaceI'll figure it out17:05
wwitzel3voidspace: now I'm curious :)17:06
voidspacehah17:06
voidspacewwitzel3:  I get the following build error17:07
voidspacewwitzel3: receive from send-only type chan<-17:07
voidspaceand I can't see how the declaration/creation of the channels are incorrect17:07
wwitzel3branch or pastebin?17:07
voidspaceI'm about to resort to google, I assume it's a simple error17:07
voidspacethe error is from line 184 of this diff:17:07
voidspacehttps://code.launchpad.net/~mfoord/juju-core/instancepoller-aggregate/+merge/20996617:08
voidspaceinstanceInfoReq is defined on line 5917:08
natefinchchan type without an arrow is send/receive, chan type with arrow is either receive only <-chan or send only chan<-17:09
bodie_there's no syntax like arbitrary syntax17:10
voidspacenatefinch: ah, the channel is incorrectly defined I believe17:11
voidspaceor I'm using it incorrectly17:11
voidspacesurely for a channel to be *useful* someone has to be able to send on it and someone has to be able to receive17:11
natefinchvoidspace: arrow points in direction of data flow  (into or out of channel), always pointing left17:11
voidspacenatefinch: what good is a channel I can write to, but no-one can read from?17:12
voidspaceI guess I'm missing a piece of the puzzle :-)17:12
natefinchvoidspace: you can't start with a read or write only channel, but you can return one from a function or or pass one into a function, to restrict what someone else can do with it17:12
voidspaceah...17:12
bodie_interestijng17:12
natefinchvoidspace: so you start with a read/write, return it to someone else defined as read only, then you know that person can't send on it17:13
voidspacenatefinch: thanks, for now I've relaxed the declaration as I don't care about stopping other people doing things17:13
wwitzel3voidspace: so was the fix changing line 71 of that diff?17:14
wwitzel36117:14
voidspacewwitzel3: yep, 6117:14
voidspacecool, it compiles, runs and blows up in interesting ways!17:15
wwitzel3ship it17:15
voidspacewhich is right as I configured the test data for it to return17:15
voidspacehah17:15
voidspacewwitzel3: the other fix would have been to create the channel and then set it on the instanceInfoReq struct17:15
voidspacewwitzel3: because I'm creating it in the constructor the compiler creates one of the type specified17:16
voidspacewhich I then can't read from17:16
voidspaceyay for type inferencing17:16
wwitzel3:)17:17
arosalesHello, could I get confirming the joyent provider is being pulled into the  1.18 release?17:17
dstroppamgz: has the joyent-provider-storage mp landed?17:26
rick_h_arosales: very interested in that answer for quickstart as well if you can ping when you hear17:27
mgzdstroppa: no, there was some bot issues, and I forgot to go back and land after fixing17:30
mgzdstroppa: I'll do it now17:30
dstroppamgz: thanks17:31
sinzuinatefinch, r2403 is probably the issue. That revision changed cloud init to address issues for precise on maas. CI is running the previous revision . We will know in 30 minutes if CI loves it17:32
natefinchsinzui: ahh, good, I hope it helps17:32
sinzuinatefinch, r2403 is the bad rev. CI passed aws, hp, manual, and local17:49
natefinchsinzui: awesome17:50
sinzuiwwitzel3, Juju CI hates you. Don't take it personally. r2403 introduced by your branch to fix bug 1289316 prevents precise deployments.18:04
_mup_Bug #1289316: lxc not installed from ubuntu-cloud.archive on precise <lxc> <maas> <precise> <regression> <juju-core:Fix Committed by wwitzel3> <https://launchpad.net/bugs/1289316>18:04
sinzuiwwitzel3, Bug #1290890 documents that juju is attempt to install git and other packages from the cloud-archive. They should come from ubuntu.18:05
_mup_Bug #1290890: juju 1.17.5 RC cannot deploy to precise <ci> <deploy> <precise> <regression> <juju-core:Triaged> <https://launchpad.net/bugs/1290890>18:05
voidspacecan you define types in a closure in Go?18:05
voidspaceor methods?18:05
voidspacereally I want a method to use a closure18:06
voidspaceI can just add more state to the struct to mimic it if not18:06
sinzuiwwitzel3, natefinch: The safe choice is to revert r2403, but maybe you see how to ensure just mongodb and lxc are installed from the cloud archive (though there may be other tools that need to come from there too_18:06
wwitzel3sinzui, natefinch: ok, I remember talking about it and it was determined that any LTS release should just have everything come from cloud archive, but it is easy enough to change.18:08
sinzuiwwitzel3, I think that is a sensible decision, but did some arrange for each package to be there?18:10
sinzuiWe need to maintain a list of packages that the server team needs to copy or backport. They may have rules against copies18:11
sinzui^ jamespage is it problematic to copy a list of packages from ubuntu to the cloud archive to make it easy for juju to choose where to install packages from18:12
wwitzel3sinzui: no, I didn't know that I needed to ensure that the list of packages was updated.18:13
wwitzel3sinzui: so is the fix getting those packages on to cloud archive for precise or reverting r2403?18:14
sinzuiwwitzel3, The issue is we want to release at any hour. We cannot because your rev simply doesn't work. There is no point in testing the revs that are about to land. reverting is best, but just installing mongodb-server and lxc from cloud-archive is also a fix18:15
mgza straight revert for now sounds fine18:16
wwitzel3sinzui, mgz: ok, so revert will address 1290890, then I need to reopen 1289316, and make the changes for only lxc and mongo-server to install from cloud archive?18:18
bodie_is the preconfigured vagrant juju box suitable for core dev?18:18
wwitzel3mgz: I also have no idea how to do a revert :)18:18
voidspaceI have a sanely failing test - the loop is running, receiving my request, and correctly returning the error from the testInstanceGetter18:18
sinzuiwwitzel3, yes, that is a viable path18:18
voidspacenow to make testInstanceGetter do something other than return an error...18:18
voidspacewhich means I need something implementing instance.Instance, yay for interface embedding I guess18:19
wwitzel3sinzui: or revet, which fixes the regression, reopen and have it pending the other packages get added to cloud archive?18:19
wwitzel3revert18:19
sinzuiwwitzel3, revert, reopen. We can ask the server team if they can put all packages in the archive. This might not be good though if every new dep needs to be vetted by another team and scheduled to their own cadence.18:20
wwitzel3sinzui: ok, sounds good, thanks18:22
wwitzel3mgz: can you walk me through the process of reverting?18:24
mgzwwitzel3: basically, you merge the inverse of the change, then propose that (and get approved, or self approve)18:25
mgzso, make a new branch, `bzr merge co:master -r2403..2402`18:30
mgzcheck that, commit, propose18:30
mgzthen to reland later, you want to merge trunk back into your feature branch, reject the changes, and commit, but that can be done later18:31
bodie_ugh.  anyone know why i'm getting this? http://pastebin.centos.org/8371/18:34
bodie_(using the juju box as suggested)18:34
bodie_the virtualbox GUI didn't have anything useful afaict18:34
bodie_is there some config step I'm missing...?18:35
bodie_bleh18:35
wwitzel3mgz: can you take a look https://code.launchpad.net/~wwitzel3/juju-core/lp-1290890-revert-2403/+merge/21047418:45
rogpeppevoidspace: sorry about lack of reply - we've only just finished on the HA estimation19:22
* rogpeppe must stop now19:22
rogpeppeg'night all19:22
voidspaceg'night from me too19:28
jamnatefinch: I know you were looking at changing the mongodb dependency to probe for the upstart job on the server rather than the client, is that scoped on the Board ?19:37
jamand/or is it in a state that we can hand it to someone else to have you focus on HA ?19:37
jamnatefinch: also, I set up the board in 3 distinct HA lanes under TODO, which maps to how I think about what the implementation flows would be, can you look over it and see what you think?19:38
jamespagesinzui, sorry - not quite sure what you need19:38
sinzuijamespage, The devs decide juju should install all precise deps (git, cpu-checker, etc) from the cloud archive. They never asked if the server team would support that19:40
jamespagesinzui, well that was a bad decision19:40
sinzuijamespage :)19:40
jamespagesinzui, heres the list19:40
jamespagehttp://reqorts.qa.ubuntu.com/reports/ubuntu-server/cloud-archive/cloud-tools_versions.html19:40
sinzuiThe the revision is being reverted19:41
jamespagesinzui, ack19:41
sinzuijamespage, I updated the bug with that list thanks. I think an informed decision will be made now19:43
natefinchjam: the mongodb stuff is done and in the code I am working on landing.19:43
natefinchjam: the lanes look good to me19:45
jamespagesinzui, np19:48
jamespagesinzui, no one is doing anything on the juju-mongodb -> juju-db rename are they?19:48
jamespageif we do that it needs to be co-ordinated19:48
* thumper frowns19:54
* thumper looks at wwitzel319:54
thumperwwitzel3: you couldn't have known, but you have broken my branch19:55
thumperwwitzel3: you put the machine config back into AddAptCommands19:55
thumperwwitzel3: I have been trying to keep it independent from MachineConfig because I'm using it elsewhere...19:55
thumperwwitzel3: I can pull it back out by passing the target release in as a param...19:56
thumperwwitzel3: also, re: https://code.launchpad.net/~wwitzel3/juju-core/lp-1290890-revert-2403/+merge/210474 you were missing a commit message so the bot was ignoring it (I fixed that for you)20:14
sinzuijamespage, I have not done anything. I think natefinch is landing changes that assume the db is named juju-mongodb20:14
natefinchsinzui: my code doesn't care what the package name is, just what the filename is.  as long as it's installed in /usr/lib/juju/bin/mongod, my code doesn'tcare20:17
sinzuinatefinch, excellent20:18
wwitzel3thumper: well my revert will land and I can make the fix for not passing in MachineConfig20:25
thumperwwitzel3: I see the reversion change20:25
wwitzel3thumper: you mean the increase? yeah, I just: bzr merge -r2403..2402 which reverted back to r2402 but under 240420:26
wwitzel3thumper: if there is a better way, I can redo it20:27
thumperno, that is the right way20:27
thumperI'll just wait for it to land before I continue with my particular change20:27
wwitzel3thumper: rgr, thanks for fixing the commit message as well20:28
thumpernp20:28
wwitzel3thumper: does -m with bzr not set that?20:28
thumperyes, but not on the merge proposal20:28
thumperthere is a subtlety there20:28
wwitzel3thumper: ahh right, ok, before I used lbox which did it for me20:29
wwitzel3thumper: got it, thanks20:29
thumperthe description is what people use to describe the change20:29
thumperactually, lbox only sets the description20:29
thumperyou need to set the commit message on launchpad when approving20:29
thumperotherwise the bot ignores it20:29
natefinchwwitzel3: forgetting the commit message is a mistake I made for the first like 4 months here20:29
thumpermost likely this will all change when we move the code anyway20:29
wwitzel3thumper: got it, thanks :)20:30
wwitzel3natefinch: hah, I suspect it will happen to me a few more time20:30
wwitzel3coming from git and this being my first time with bzr, I actually quite like the workflow of it, I imagine you could have the same flow with git, but in my experience most don't20:31
wwitzel3sinzui: the revert has landed in trunk re lp:129089020:32
wwitzel3oh, go bot updated the bug for me .. well that was nice of it20:33
* thumper goes to pull trunk again20:34
sinzuithank you wwitzel320:34
wwitzel3thumper: ok, so now I want to address the MachineConfig being passed in that broke you, on my old branch do I just revert the revert? Fix and push?20:34
wwitzel3sinzui: np20:34
thumperwwitzel3: the reversion you just landed un-broke me20:34
thumperwwitzel3: I just suggest that for the function pass in the series not the entire machine config20:34
thumperand that _should_ be fine20:35
thumperremember that it will be called from somewhere that doesn't have a machine config object20:35
* thumper is about to write the plugin20:35
hazmatthumper, ping.. got time for a pre-implementation call?20:36
thumpernatefinch: any idea how to fix the intermittent replicaset bug?20:36
thumperhazmat: sure20:36
natefinchthumper: jam had a fix for it, I think it's proposed, lemme go look20:37
wwitzel3thumper: the revert caused 1289316 to be broken again, so I guess I'm wondering what the easiest way is to get my branch back to 2403 and fix the issues?20:38
wwitzel3thumper: can I just revert the revert? or checkout to a specific revision?20:38
thumperwwitzel3: are you not testing first?20:40
natefinchthumper: https://code.launchpad.net/~jameinel/juju-core/replicaset-test-timeout-1290588/+merge/21035520:40
natefinchthumper: I just approved the MP, we'll see if it merges20:41
wwitzel3thumper: what do you mean? this is more a workflow and source tree question, than anything. If there is a prefered way for me to handle something like this within bzr.20:41
thumperwwitzel3: I mean firing up an environment, local and ec2 and actually deploy20:41
hazmatwwitzel3, i believe that's a reference to actually using the product20:41
wwitzel3thumper: not for every change no, just been using go test ./...20:42
thumperwwitzel3: when touching stuff like this where we are changing how real envs install stuff, yes, I'd test that live20:43
wwitzel3thumper: for this change I bootstrapped and deployed mysql/mediawiki to my local maas20:45
wwitzel3thumper: I already see what I did wrong though, so never mind :P .. I forgot upload-tools20:45
bodie_I'm setting up a dev box.  should I go with 12.04 or 13.10?21:14
thumperwallyworld_: https://code.launchpad.net/~thumper/juju-core/update-golxc-version/+merge/210492 ?22:29
thumperv small.22:29
thumperbodie_: I'd use trusty22:29
thumperbut hey, that's just me :)22:30
wwitzel3thumper: I see you made the update in that branch, thank you22:32
wwitzel3thumper: actually, that just isn't rebased yet, I need to make the update. Thought actually I am not sure the original update actually resolved the issue since I was testing without using upload-tools22:34
thumper:)22:36
wallyworld_thumper: looking22:42
wallyworld_thumper: shiteveld diff screwed, approced lp mp with a suggestion22:46
bodie_thanks thumper :)22:51
bodie_that's what I'm using on my laptop, just not confident it'll serve for dev work.  but if it works, it works22:52

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