/srv/irclogs.ubuntu.com/2013/05/30/#juju-dev.txt

* thumper needs to reply to the api thread to agree with wallyworld_00:04
* wallyworld_ wants to talk surrogate ids with thumper00:04
thumperwallyworld_: what about them?00:04
* thumper feels like he needs something else...00:05
thumperjust finished some ham, cheese and pineapple toasties00:05
thumperperhaps another coffee00:05
wallyworld_i think we can add a natural key to a machine without needed a schema change, but i could be wrong00:05
wallyworld_there's always time for another coffee00:05
* thumper goes to make that coffee00:16
thumperhi davecheney00:23
wallyworld_thumper: hangout time?00:54
thumperwallyworld_: sure00:54
thumperwallyworld_: you create00:55
wallyworld_https://plus.google.com/hangouts/_/d3f48db1cccf0d24b0573a02f3a46f709af109a600:55
bigjoolstoday is going to need more coffee and more painkillers01:08
dimiternmorning04:30
=== ChanServ changed the topic of #juju-dev to: https://juju.ubuntu.com | On-call reviewer: dimitern | Bugs: 8 Critical, 71 High - https://bugs.launchpad.net/juju-core/
=== tasdomas_afk is now known as tasdomas
wallyworlddavecheney: i don't type any import lines - my IDE does it all automatically :-D05:50
wallyworlddavecheney: so you want all "jujuerrors" import aliases to go away and "errors" aliased to "stderrors" where there are conflicts? not just in the one place you made a comment05:58
davecheneywallyworld: i think there was only one place where we import both errors and jujuerrors05:59
davecheneysort of like the way we do with testing and jujutesting05:59
davecheneytesting => stdtesting05:59
wallyworldthere were several in my branch05:59
davecheneyjuju-core/testing => testing05:59
wallyworldok, i'll fix them all06:00
wallyworldall of mine i mean06:00
davecheneycool06:00
wallyworldthanks for pointing it out06:00
wallyworldi wasn't sure what the conventoon was06:00
wallyworldconvention even06:00
davecheneymaybe you get to be the trend setter this time06:00
davecheneyat least it's consistent06:00
dimiternwallyworld: and instead of jujuerrors, you can use coreerrors06:00
* davecheney doesn't care about the color of the bike shed, only that it has a traditional number of walls06:01
wallyworldi won't need that though if i alias errors to stderrors06:01
dimiternwallyworld: like coretesting, etc.06:01
dimiternwallyworld: if you need to06:01
wallyworlddo we want to stick with coretesting?06:01
davecheneyi dont06:02
dimiternyes we do06:02
wallyworldme either since it's inconsistent with stdblah06:02
wallyworldwe need *one* pattern06:02
wallyworldi don't mind which06:02
dimiternany day i'll prefer a standard convention throuout the code than a new one06:02
davecheneydimitern: this isn't a new one06:03
wallyworlddepends on what Go best practice is thpough06:03
wallyworldif best practice is stdfoo, then we should use that06:03
wallyworldi'm deferring to davecheney here :-)06:03
davecheneywallyworld: i don't htink the std library can help here06:03
dimiterni mean if we tend to name core packages, when an import conflict will happen, "core"+package, let's do that06:03
davecheneywe're in uncharted territory06:03
davecheneybut we do have a pattern of importing the std lib's testing as stdtesting06:03
dimiternyeah, exactly06:04
wallyworldso: do we alias the core packages to corefoo, or the std lib packages to stdbar. we need to choose one or the other06:04
davecheneyso ithink what wallyworld and I are saying is, lets keep doing that06:04
dimiternwallyworld: i don't mind which one - there are examples of both06:04
davecheneyas an asside, if we were so arrogant as to give one of our pacakges the same name as a package that already exists in the standard library, we should change out packages' name06:05
dimiternwallyworld: but i do mind inventing a yet another prefix scheme06:05
wallyworldthe bike shed should all purple or all red, not red and purple :-)06:05
wallyworlddimitern: sure, using "juju" was wrong, i didn't realise we used "core"06:05
dimiternwallyworld: that's all i meant, thanks06:05
davecheneyholy fuckj06:06
davecheneyjust submit the thing06:06
wallyworldnp, i knew what you meant :-)06:06
davecheneythe person that cares _that_ much about naming thigns can do a followup06:06
wallyworldi don't mind this discussion, really! i'd like to get it right rather than propagating more inconsistency into the code base06:06
dimiternat the moment i mostly care for us to come to an agreement what are we doing with  the api06:07
dimitern3 days of discussion now and no single solution at the horizon, we're waisting time06:07
davecheneydimitern: you must be new here06:07
dimiterndavecheney: :D06:07
mrammis there a notes doc for today's meeting yet?06:07
wallyworlddavecheney: with the "arrogant" thing - if a package has a really generic name like "errors", its hard to avoid a clash06:07
jamdimitern, wallyworld, mramm: I'm probably going to miss the juju-core meeting. I'll see if I can get back in time, but today is "show your stuff to your parents day at school".06:08
jamIt is done right when the meeting starts.06:08
mrammjam: no problem06:08
wallyworldoooh good - what's on display?06:08
jamdimitern: I didn't feel your email actually had a "should I do it X or Y". or at least, the question wasn't very clearly stated.06:09
davecheneymramm: it's the same doc as always06:09
davecheneydanios wanted to keep it all one one document from now on06:09
mrammahh, right06:09
jamwallyworld: well, it is KG2, so some crudely drawn paintings that all of us parents will surely fawn over06:09
dimiternwallyworld: we can introduce a cuning schema of replacing package names with base64(name) or rot13, so such clashes with std packages are avoided }:>06:09
wallyworldlol06:09
mrammjam: got time for a quick sync up before you leave?06:09
wallyworldrotflmao06:09
jammramm: It doesn't hurt to resend it to canonical-juju to remind us all about it. Though as it is a private doc we have been suggested to only send it to the private list.06:09
jammramm: unfortunately, I have to head out the door now.06:10
davecheneywallyworld: fair point, but that doesn't mean if we start a juju-core/utils/math package, we have more right to the name "math"06:10
mrammjam: no problem06:10
mrammjam: have fun!06:10
jammramm: what are you even doing awake?06:10
jam:)06:10
mrammI am trying out staying up until the meting06:10
wallyworlddavecheney: agreed! we just need a convention for dealing with it - i think i prefer stdfoo06:10
davecheneywallyworld: seconded06:10
davecheneythey I's have it06:10
mramm... see if I am more awake that way than getting up in the middle of the night...06:10
wallyworld\o/06:11
dimiternguys, i'll apreciate your input on the mail i sent yesterday - API Bulk Operations06:11
* davecheney is super testy because he suspects the mongo retry behviour is part of what is making the tests unreliable with the .deb mongo06:11
davecheneyin fact, i'm going to rip the retry shit out and see if that helps06:12
wallyworlddimitern: sorry about the delay. will look after i pick up my kid from viola soon06:12
wallyworlddavecheney: if you fix the tests you will be my hero06:12
dimiternwallyworld: cheers06:13
* wallyworld goes to get kid from school06:13
davecheneyhttps://codereview.appspot.com/9857046/06:43
dimiterndavecheney: on it06:43
dimiterndavecheney: reviewed; how come nobody encountered an issue with that?06:45
davecheneydimitern: they probably did06:49
davecheneybut didn't realise it06:49
dimiterndavecheney: i'd like to see a test showing the issue before and after the change, if possible06:50
davecheneydimitern: run the race detector on the cmd/jujud package06:51
dimiterndavecheney: ah, ok, thanks06:51
davecheneythat is how i found it :)06:51
dimiterndavecheney: where's the agenda for today's meeting?07:26
davecheneydimitern: same as last week07:58
davecheneyremember danilos asked to have it all on one page07:58
=== wedgwood_away is now known as wedgwood
* dimitern lunch10:09
wallyworldfwereade: you now ok with https://codereview.appspot.com/9662048/ ?10:09
* TheMue => lunchtime11:02
wallyworlddimitern: since you asked :-) https://codereview.appspot.com/9666050/11:36
dimiternbest standup ever!11:36
danilos:)11:36
wallyworldjam: oh, so sorry, you missed the standup :-P11:36
dimiternwallyworld: reviewed11:42
wallyworldthank you11:42
fwereadewallyworld, sorry, I'll make sure your reviews are ready for your morning12:13
wallyworldfwereade: np. i've yet to do any more coding on the drity flag or assignment ploicy ones12:14
fwereadewallyworld, tentative yes on that one but let me check; I'll need to do a spot more thinking on the assignment policy though12:14
wallyworldfwereade: with the assignment policy - i'll remove the code which provides the default constraint value in env till we work out how to do it consistently for all constraints12:15
wallyworldfwereade: with the dirty flag, i'm switching it to "clean" so the semantics are backwards compatible with existing schemas12:16
fwereadewallyworld, ok, so new machines start with "clean" set and old ones are assumed dirty? sgtm12:19
wallyworldfwereade: that's the plan. sort of like a failsafe - assume dirty unless told otherwise12:20
wallyworldi had intended to do it that way originally but got talked out of it :-)12:21
fwereadewallyworld, heh, annoying, sorry about that12:21
wallyworldnot your fault!12:21
fwereadewallyworld, I still ned to think about assignment policy, there's something knocking at my mind but I'm not sure what ;)12:21
fwereadewallyworld, I'm just expressing regret, not taking responsibility ;p12:22
wallyworldfwereade: the end game is to use a constraint, not to hard code on each provider. i think that bit is ok. bt we need to decide how to specify any default value if the user doesn't specify a policy12:23
wallyworldi added an env setting for this. but am happy to hard code until we decide how to do constraint default values12:23
fwereadewallyworld, yeah, agreed; I wish that state could have a concept of an actual environ other than via a config12:23
wallyworldjuju config seems "interesting" and complex to me12:24
fwereadewallyworld, I'd be most comfortable if we stuck with that rather than taking a "temporary" step in an unhelpful direction... for example, we *could* have the env inject it into the bootstrap constraints if not already set12:25
fwereadewallyworld, don't even start :/12:25
fwereadewallyworld, it's trying to be too many things12:26
wallyworldyeah. i don't prefess to *fully* understanding the design rationale12:26
fwereadewallyworld, and I'm terrified of the "worse" phase in "it'll get worse before it gets better"12:26
wallyworldindeed12:26
fwereadehey ho12:27
fwereadeok, I am feeling somewhat crappy, I'm going to have a bit more of a rest in the hope of becoming coherent for a chunk of the rest of the afternoon12:27
fwereadettyl guys12:27
wallyworldhave a drink! i've imbibed a few already :-)12:28
teknicomarcoceppi: hi, you around?13:32
marcoceppiteknico: I am!13:32
teknicomarcoceppi: could you please have a look at https://bugs.launchpad.net/juju-plugins/+bug/1185820 ?13:33
marcoceppiteknico: branch I can run juju-test against?13:35
teknicomarcoceppi: https://code.launchpad.net/~juju-gui/charms/precise/juju-gui/trunk , revno 5913:38
marcoceppiteknico: thanks, it looks like some discrepencies between what jitsu was doing and what the new plugin does. Based on feedback from others it now executes everythin in the tests/ directory, not just .test files. Which is why your utils.py files are even being considered for tests13:39
* marcoceppi pokes somemore to figure out the other issues13:39
teknicomarcoceppi: thank you13:41
marcoceppiteknico: you can specify test(s) to be run at the end of the juju-test command, and juju-test won't traverse directories in the tests folder. So you could reorginze your helpers in another directory or just run juju-test unit.test deploy.test13:42
teknicomarcoceppi: good to know about the subdirs. is there a way to reuse an already bootstrapped environment?13:44
marcoceppiteknico: not at the moment, but I can add that option. The downside being that you wouldn't get a teardown between tests. If your tests are OK with that it shouldn't be a problem13:45
marcoceppiteknico: finally, there are verbose controls, -v(vvv) which will give you debug output13:46
teknicomarcoceppi: yes, I'm going to try again with those13:47
marcoceppiteknico: could you attach the output output with -vv in the report when it's done running?13:52
teknicomarcoceppi: sure. what about the default env? any chance to use it?13:52
marcoceppiteknico: I made it explicit out of concern people would trample their default environments accidentally. However, I guess it'd be ok to use the default as it does a sanity check for already-bootstrapped13:54
teknicomarcoceppi: yeah, it sounds reasonable13:55
marcoceppiI'll add default-environment support in a few mins13:55
teknicomarcoceppi: great, thanks. I guess in order to actually use "juju test" rather than juju-test, we'll need a package in a PPA, right?13:56
teknicomarcoceppi: output of a -vv run added14:13
teknicomarcoceppi: those "Permission denied" errors are weird, perms and ownership are ok locally14:16
marcoceppiteknico: permission errors are because the files aren't +x14:16
marcoceppiwell, your helper files aren't14:16
teknicoah, right14:16
marcoceppiteknico: It looks like environment variables aren't being passed to test properly. I'll see if I can get a fix for that out asap14:23
teknicomarcoceppi: awesome, thanks14:23
jcastrodave mentions in the release notes that the PPA has changed14:37
jcastrobut afaict, it's still ppa:juju/devel14:37
marcoceppiteknico: Give the latest a try. I wasn't able to check against your current repo as I don't have all the dependencies for testing, but it should fix the errors as well as trying to execute none-executables. Though that last bit might go away in the near future. You may want to reorganize or just document that you have to specify which .test files you want to run14:42
marcoceppiteknico: as for the default environment I'll see if I can get that in there later today14:42
teknicomarcoceppi: thanks, I will in a while, in a call now14:42
marcoceppiteknico: ack, thanks for filing the bug and playing guinea pig :)14:43
teknicomarcoceppi: oink ;-)14:43
teknicomarcoceppi: there are some problems with last revno, running tests after applying this diff: http://pastebin.ubuntu.com/5717057/15:22
=== tasdomas is now known as tasdomas_afk
FunnyLookinHatAnyone here know why Content-Length wouldn't be included in the request to /tokens w/ the OpenStack provider ?15:47
FunnyLookinHat( http://hastebin.com/fanagihive.xml )15:47
marcoceppiteknico: sorry about that! Not sure why make check didn't catch it. I've pushed a fixed that should work now15:52
teknicomarcoceppi: now I'm having unrelated problems with selenium not being able to open displays :-/15:53
marcoceppiteknico: does selenium use the DISPLAY environment variable?15:54
teknicomarcoceppi: I don't think so, it looks for display :103215:54
teknicomarcoceppi: the expert on that is frankban, I'll ask his help after our standup call ;-)15:55
marcoceppiteknico: cool, if there's anything else juju-test needs to set in the way on env vars, etc (as they're pretty light weight what's actually set when each test runs), let me know!15:56
teknicomarcoceppi: I will, thanks again!15:56
=== tasdomas_afk is now known as tasdomas
fwereadedanilos, https://codereview.appspot.com/9876043/ reviewed16:04
fwereadedanilos, and, doh, disregard last question, I see you already answered it16:04
fwereadeMakyo, ping16:08
Makyofwereade, Hey16:08
fwereadeMakyo, I'm a bit concerned about where the UpgradeCharm logic has moved to, can we g+ quickly?16:09
Makyofwereade, sure16:09
fwereadeMakyo, heh, I'm not sure which of the many matthew scotts you are...16:10
fwereadeMakyo, I'm sure I *have* met you in person...16:10
Makyofwereade, https://plus.google.com/105798904379156554275/posts16:11
teknicomarcoceppi: so, I was wrong, and selenium does indeed need the DISPLAY env var16:13
fwereadecool, the review queue's looking a bit more manageable16:25
fwereadelater all16:25
marcoceppiteknico: no problem, I'll add that to the plugin in a second16:45
marcoceppiteknico: anything else while I'm poking around?16:45
teknicomarcoceppi: no thanks, I patched juju_test.py myself and am trying to run the test again16:46
teknicomarcoceppi: there seem to be problems with manually destroying the env after the juju-test command is interrupted prematurely16:47
teknicomarcoceppi: btw, the feature of only running tests in executable files is working flawlessly, thanks16:48
marcoceppiteknico: what's the error? That's likely a juju problem but I'll look in to trying to trap Ctrl+C to do better cleanup16:53
teknicomarcoceppi: I get "error: environment is already bootstrapped"16:53
marcoceppiteknico: ah, because it didn't destroy-environment during the premature exit. You'll have to destroy environment before running again (or, when the option is added, use the "use-existing-bootstrap" option16:54
teknicomarcoceppi: yes, that's what I was trying to do, but it takes quite a few retries, for some reason, or maybe just a bit of time16:55
teknicook, EOD, I'll resume this tomorrow17:00
teknicomarcoceppi: thanks again for the help17:00
marcoceppiteknico: thank you so much for the feedback!17:01
=== deryck is now known as deryck[lunch]
=== wedgwood is now known as wedgwood_away
=== deryck[lunch] is now known as deryck
jcastro_https://bugs.launchpad.net/juju-core/+bug/102787319:39
_mup_Bug #1027873: cmdline: Implement constraints set/get <cmdline> <juju-core:In Progress by fwereade> <https://launchpad.net/bugs/1027873>19:39
jcastro_marcoceppi: is this it?19:39
marcoceppijcastro_: similar, that's setting them overall. this is specifically "juju add-unit --constraints"19:39
fwereadejcastro_, marcoceppi: heh, I apparently suck at bug management19:40
marcoceppifwereade: is that released!19:40
marcoceppi?19:40
jcastro_fwereade: hey so we just ran into this while doing a live site19:40
fwereademarcoceppi, no such thing as unit constraints (except internally, so pretend I didn't say that -- it's not meaningful in the model we want to expose)19:40
jcastro_where we deployed to an xsmall on HP cloud but need to bumpt the instance size up19:40
marcoceppifwereade: right, so the idea was "juju add-unit --constraints" then we can remove unit the old on19:41
fwereademarcoceppi, you should be able to set service constraints, add-unit, and then remove the oldone19:42
marcoceppifwereade: how? I didn't find anything in juju help19:42
fwereademarcoceppi, this then means that future ones will be deployed with the new constraints as well -- is that unhelpful?19:42
fwereademarcoceppi, `juju help set-constraints` looks, er, kinda crap... but `juju set-constraints myservice mem=4G` should work?19:43
marcoceppifwereade: I'll give it a shot, thanks19:44
* fwereade looks somewhat dolefully at the command and its help, and presumes he implemented that way to match python19:44
* fwereade observes that, no, it doesn't even match python19:45
fwereadeah! that's ok19:45
fwereadeI was reading get-constraints19:46
fwereademarcoceppi, juju set-constraints -s myservice mem=4G19:46
fwereadethat's more like it19:46
marcoceppicool19:46
marcoceppifwereade: thanks, that did the trick!20:06
fwereademarcoceppi, great20:06
marcoceppifwereade: along those same lines, can you force remove-unit?20:39
marcoceppiIt's in a state of dying, but the machines never came up. Now I can't remove unit or terminate machine20:40
=== tasdomas is now known as tasdomas_afk
thumpermorning21:30
bachi thumper21:31
thumperhi bac21:31
bachi marcoceppi, do you have a moment?  i'd like to talk about the charm-tools build recipe21:31
marcoceppibac: I've got about 10-15 mins21:31
bacmarcoceppi: perfect.  hangout?  i'll invite you21:32
marcoceppibac: sounds good21:32
bacmarcoceppi: failed21:33
marcoceppijust copy/paste a link?21:34
bachttps://plus.google.com/hangouts/_/b665b424984af215e05d2968dab0964ada7130ed?hl=en21:35
* thumper pulls a funny face22:32
thumperfwereade: not still up are you?22:32
thumperarse biscuits22:51
thumperwallyworld: you around?22:51
wallyworldthumper: hi22:56
wallyworldthumper: just a sec, need to talk to plumber22:56
wallyworldthumper: i gotta go do something. i'll ping you in a bit23:05
thumperwallyworld: ack23:05
=== thumper is now known as thumper-afk

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