/srv/irclogs.ubuntu.com/2014/05/07/#juju-dev.txt

bigjoolsthumper: when destroy-env is called, do LXCs get shut down gracefully?02:13
thumperif by gracefully you mean lxc-stop followed by lxc-destroy, then yes02:13
bigjoolsthumper: that's not graceful :(02:14
thumperseems pretty graceful to me02:14
thumperlxc-stop is like "oi, we're shutting down now"02:14
bigjoolsdoes it shut down the processes normally?02:14
thumperI think so, by default02:14
bigjoolsI want to make sure that stuff like dhcpc releases leases02:15
thumperI think it operates like the "shutdown" command02:15
bigjoolsok that's good then02:15
thumperbigjools: best thing would be to ask hallyn and stgraber02:15
bigjoolsok, cheers02:15
thumpernp02:15
thumperyay, finally 0 unread work emails02:15
thumperjust 25 personal to go02:15
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
wwitzel3hello09:40
jamhey wwitzel309:49
jam1fwereade: ping, I'd love to chat a bit about Mac support09:53
perrito666mornign09:57
wwitzel3perrito666: morning09:57
perrito666my calendar says that our standup is now in about 13hs.. something is broken10:02
wwitzel3perrito666: my calendar doesn't even have a standup on it anymore10:04
fwereadejam1, pong10:04
jam1hey fwereade10:04
perrito666wwitzel3: heh, I think mine got all shaken on the tz hanges10:04
jam1so, I did a patch that lets us get stuff like "mavericks" out, and I found that if I patch that so it reports "trusty" for Mac OS X, then all of cmd/juju passes10:05
jam1I think we have a few issues that we might want to try to untangle, but I figured it would be most productive to untangle that with a chat10:05
fwereadejam1, cool10:06
fwereadejam1, now?10:06
jam1fwereade: if you're available10:06
jam1perrito666: looks like something nuked the daily standup, as it is missing from mine now, too10:06
perrito666jam1: next one is sheduled for tomorrow 11:45 Auckland time10:07
jam1perrito666: that is the AU guys10:08
jam1I think we talked about splitting into per-team meetings10:08
jam1but for today we can have our regular one and sort it out from there10:08
perrito666jam1: apparently they reused our event10:08
perrito666:p10:08
perrito666the one that corresponds to their stand up is no longer there10:09
menn0bloody australasias... :)10:09
menn0(with an n even... it's been a long day)10:10
jam1perrito666: looks like you're right, the one extra early in the day matches the invite for our regular one, and I don't see the one that said something like NZ meeting10:10
fwereadejam1, sure, just a mo10:10
jam1fwereade: might as well just use the standup hangout10:12
jam1fwereade: I'm there when you want to join10:13
fwereadejam1, I don't seem to have that on my calendar any more --link?10:13
jam1fwereade: reload the calendar, I just added it back (at least your @canonical address): https://plus.google.com/hangouts/_/canonical.com/juju-core10:14
=== vladk|offline is now known as vladk
vladkjam1, fwereade, perrito666, wwitzel3: hello10:19
jam1hi vladk10:21
wwitzel3hi vladk10:22
perrito666hi vladk10:26
menn0juju dev newbie question: i have a function that is going to emit something on stderr and I want to test that output. Is it considered bad form to patch os.Stderr for this test? This would mean the test can never be run safely in parallel with other tests.10:38
mgzmenn0: I'd make the function take a stream to show errors on, probably10:38
menn0An alternative would be to somehow get a different stderr passed to the function but in this case that might require some gymnastics10:39
natefinchmenn0: you can't patch os.Stderr, but you can have your function write to a generic io.Writer and pass it a bytes.buffer for example10:39
menn0this suggests patching can be done: http://stackoverflow.com/a/1047467410:40
perrito666menn0: it also begins with "I dont recommend this"10:41
menn0but i'll try the code restructuring approach10:41
menn0perrito666: that's why i'm asking before doing :)10:41
perrito666menn0: after the first code patch it suggests natefinch approach10:42
jam1menn0: I think we have some "cmd.Context" code that is intended to hide the fact that there is a real Stderr out there.10:42
menn0i've seen cmd.Context. in this case it's a cmd's Init function which doesn't use cmd.Context.10:43
menn0changing the signature isn't really feasible either10:43
wwitzel3if only you had the source code :P10:44
menn0i'll get around it by moving most of the implementation to another function10:44
menn0thanks all10:44
mgzare we doing a group standup today?10:44
wwitzel3menn0: if it is a new method, what prevents the signature from changing?10:44
jammenn0: it may be that you're doing the work too early if you need to write to stderr during init10:44
natefinchmgz: I was going to go to the early one and schedule my team's later10:45
voidspacehey all10:45
menn0jam: maybe. Init does seem like the right place for a deprecation warning though.10:45
voidspaceI'm not really here, but I thought I'd say hi10:45
wwitzel3hi voidspace10:46
voidspacewwitzel3: morning :-)10:46
menn0jam: it could be emitted later I guess10:46
menn0hi voidspace  :)10:46
voidspaceI'm a bit jet-lagged, my body seems to think it's 4 in the morning10:46
voidspacemenn0: morning10:46
jammgz: we're having a standup, yes10:46
wwitzel3when running ensure-availability with maas, one of my state machines gets stuck in pending, the machine log just contains: /var/lib/juju/tools/machine-1/jujud: Syntax error: Unterminated quoted string11:16
wwitzel3anyone seen that before?11:16
natefinchnew to me11:16
perrito666wwitzel3: I would guess that its the result of running one of these embedded bashes we have11:17
perrito666and that is improperly escaped11:17
perrito666but that much should not be much help11:17
wwitzel3perrito666: the fact that it only happens on one, means it is properly which ever server ends up at the tail of some list11:18
wwitzel3probably11:18
jam1wwitzel3: I know we had to fix some things to use "printf" instead of "echo" because dash's echo works differently than bash's echo11:37
jam1wrt escaping11:37
wwitzel3jam1: ok, I will poke around, so far it is specific to maas, it doesn't happen on ec211:38
jam1wwitzel3: hmm.. that makes it sound like it's a cloud metadata escaping bug11:38
wwitzel3jam1: also, it always happens to machine-1, when having only a machine-0 and running ensure-availability11:39
jam1wwitzel3: so machine-2 comes up correctly, but machine-1 is borked?11:50
wwitzel3jam1: yep11:55
wwitzel3jam1: I am making sure it isn't just an issue with that node on my maas11:55
tasdomashi12:03
wwitzel3jam1: it appears to be a non-issue, something specific to node2 on my maas, when away after I recommisioned it.12:14
wwitzel3went12:14
jam1wwitzel3: weird. I've heard that sometimes maas nodes can have their old state left around on disk12:14
jam1fwereade: so API Versioning... if we changed the scope so that the entire API was versioned, and selected at Login time, then we could use the apiRoot changing to implement it, without as much changes to the RPC package.12:26
jam1But I think that Facade granularity really is what we want, right?12:26
fwereadejam1, yeah, I would be happier with facade granularity; and, particularly at this stage in the cycle, less inclined to accept pure quicker-easier style arguments otherwise12:27
tasdomasI'm running juju 1.18.1 on trusty and cannot deploy to a local environment12:32
tasdomasthe environment bootstraps normally, but deployed units are stuck in a "pending" state12:33
tasdomasjuju-core is installed from apt, juju-local is present12:33
tasdomasthe all-machines.log looks like this: http://pastebin.com/jZyFa8kv12:34
tasdomasany suggestions as to how I should debug this?12:34
fwereadenatefinch, hey, a piece of HA work you may have missed: manual provider HA13:02
natefinchfwereade: blech13:08
jam1fwereade: if you have time, my rough cut of determining the methods late is here: lp:///~jameinel/juju-core/reflect-only-facades13:08
jam1fwereade: it needs tests and cleanup (we don't have to introspect ObjType early, etc)13:08
jam1fwereade: but I wouldn't mind a sanity check that it seems reasonable13:08
jam1fwereade: the one bit I wasn't very happy with is that "bindRequest" can have a return where it is returning both an actual struct and an err at the same time13:23
jam1but hmm... maybe I can make that nicer13:23
natefinchjam1: it's not always bad to return real data and an error, but you're right that most of the time it's not done.13:24
jam1natefinch: I think it breaks people's internal model13:24
natefinchjam1: yeah, there's precedent with io.Reader, but that tends to mess people up, too (it can return that it read a non-zero number of bytes and then an error (which is often EOF))13:25
natefinchjam1: certainly if it's avoidable, it's better13:25
fwereadejam1, looking sane so far, will look further when I've collected laura13:31
jam1fwereade: thanks, I did a couple of small tweaks, but the test suite passes with little change13:35
jam1fwereade: the one behavior that actually changed is that it used to be if you called "Foo", "BadId", "RealMethod" you would get a notification message with body struct{}{} rather than nil because the RealMethod was known, whereas now the ObjType isn't know if you don't have a correct Id13:38
jam1but I think that is just fine, and the specific behavior about struct{}{} vs nil was abstraction leakage13:38
=== liam_ is now known as Guest5040
perrito666hey does anyone know when rog comes back to irc?13:55
rick_h_perrito666: he's out 2wk. back the 22nd13:57
=== vladk is now known as vladk|offline
perrito666tx rick_h_14:01
perrito666natefinch: you are a good guy, you made the timeconv for us gmt-+ users14:49
natefinchperrito666: it's so much easier for me, because I know the offset from me to you guys... I hate stating the time in GMT, because then *everyone* has to convert.14:50
perrito666this is the most anoying error I have ever read "dialled mongo successfully"15:53
natefinchlol15:53
dimiternniemeyer, hey, are you around?16:06
niemeyerdimitern: Yep16:20
dimiternniemeyer, so we'll need a couple of new features in goamz i'm working on for the networking stuff16:21
dimiternniemeyer, just to pass it by you as well before i start16:22
dimiternniemeyer, we need to be able to get the default vpc id with DescribeAccountAttributes16:23
dimiternniemeyer, and improve the ec2test server to more closely mimic ec2, so that when you start a machine you get a network interface created on it (unless you explicitly create one yourself)16:24
bacredir: one of your funny commit messages showed a new script for rebuilding the index.  what is that?  it sounds useful.16:27
redirbac: what question?16:28
rediroh16:29
redirthat was something I was going to do so I could load things from mongo16:29
redirbut stopped and removed because I decided it was a rabbit hole and not part of this card.16:29
redirs/load/ingest data/16:30
redirbac ^^16:30
niemeyerdimitern: Okay, and what's the current plan?16:52
dimiternniemeyer, i'll propose 2 branches what implement DescribeAccountAttributes and the extensions to ec2test package in the next couple of days, and i'd appreciate a review from you :)17:08
niemeyerdimitern: Sure thing17:08
dimiternniemeyer, thanks!17:09
bodie_enjoying some of these state/state_test.go dummy service names18:10
bodie_"umadbro"18:10
bodie_"haha/borken"18:10
natefinchheh18:11
dimiternnatefinch, ping19:10
natefinchdimitern: pong19:11
dimiternnatefinch, I have a tiny fix for bug 1316762 for you to review if you have 2mins19:13
_mup_Bug #1316762: juju doesn't check if 8021q module is present before modprobing it <cloud-installer> <local-provider> <lxc> <juju-core:In Progress by dimitern> <https://launchpad.net/bugs/1316762>19:13
dimitern(as soon as lbox propose is done)19:13
dimiternnatefinch, https://codereview.appspot.com/93130043 there it is19:14
natefinchsure19:15
dimiternnatefinch, thanks!19:15
natefinchdimitern: LGTM19:18
dimiternnatefinch, cheers19:24
=== vladk|offline is now known as vladk
thumpero/21:33
menn0morning21:43
thumpero/ menn021:43
=== hatch__ is now known as hatch
perrito666thumper: good mornight22:09
thumpero/ perrito66622:09
thumperheh22:09
* perrito666 killing time working on a coffee, I cant see what hipsters find so appealing on this, phone internet sucks22:11
thumperperrito666: working in a cafe?22:21
thumperperrito666: my phone internet is not too bad actually22:21
thumperwe have 4G here now22:21
perrito666thumper: had to wait for my wife so I might as well work22:21
thumperI can degrade very quickly into shitty though22:21
perrito666nah up to 3g22:21
perrito666I just moved my env to a ec2 micro and running under screen :)22:23
perrito666my phone could cook a steak :)22:23
thumperperrito666: a very very small steak22:28
perrito666well iphones are quite big and this one is hot22:28
mwhudsoni dropped to 3g the other day and then forgot and did things like downloading docker images...22:37

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