/srv/irclogs.ubuntu.com/2013/06/14/#juju-dev.txt

wallyworld_fwereade__: hey, thanks for the reviews now go to bed!00:09
thumperfwereade__: are you up again?00:11
thumperwallyworld_: want to do an old fashioned review? https://code.launchpad.net/~thumper/golxc/mockable/+merge/16931700:31
wallyworld_sure00:31
thumperdiff still updating00:31
wallyworld_i really don't like roetveld00:31
thumperfor latest additions00:31
thumperyou're all good now00:32
thumperwallyworld_: also, can I have a hangout with out to teddy-bear some design ideas?00:33
wallyworld_sure00:35
thumperhmm...00:41
* thumper needs a recursive find and replace00:42
thumperwallyworld_: thanks for the golxc review, will get to those01:07
thumperjust doing a massive move branch01:07
wallyworld_np01:07
wallyworld_i wish we used interfaces more in juju01:08
thumperwallyworld_: fwereade__ asked to have environs.Instance moved to instance.Instance01:08
thumperso container.Container doesn't need environs.Instance01:08
wallyworld_ok, sounds good01:08
* thumper goes to make lunch01:08
thumperwallyworld_: chat?01:33
wallyworld_sure01:34
thumperhttps://plus.google.com/hangouts/_/3fc078d1d8dacd2c85f1f72fb71d3ed67d97b9c1?hl=en01:34
thumperwallyworld_: you have two reviews02:08
thumperwallyworld_: trivial review for you Rietveld: https://codereview.appspot.com/1025305302:12
* wallyworld_ looks02:15
thumperwallyworld_: happy for a trivial on that?02:18
wallyworld_yep02:18
* wallyworld_ looks for the other review02:18
* thumper woners02:18
thumperwoners02:18
wallyworld_try again02:18
thumperwonders?02:19
wallyworld_wonders perhaps why the D key is broken?02:19
thumperI typed woners again first tiem02:19
wallyworld_tiem?02:19
thumperour tarmac lander checks for two LGTMs02:19
wallyworld_:-P02:19
thumpertime02:19
thumperpierce off fuck knuckle02:19
wallyworld_now, now. public forum :-P02:20
wallyworld_i forgot about the tarmac thing02:20
wallyworld_maybe we need to patch it to allow "LGTM trivial" through02:20
thumperwallyworld_: yeah, or perhaps we should just get people to review in lp :)02:21
thumperto get the two reviews from the merge propose02:21
wallyworld_PLEASE YES02:21
thumperproposal02:21
thumperthat way we can check for a trivial tag02:21
wallyworld_thumper: i'm sure i didn't merge your branch - only trunk. i last merge late yesterday i think. i normally merge one last time anyway prior to submitting02:25
thumperwallyworld_: that change wasn't in trunk02:25
wallyworld_hmmmm.02:25
* wallyworld_ is confused02:26
thumperhowever, I have done things like this with this workflow02:26
thumperswitch to someone elses branch to look02:26
thumpercreate a new brack with "switch -b new-work" for something new02:26
wallyworld_nah, didn't do that02:26
thumperhowever since I wasn't on trunk, it starts with the last revision of the other branch02:26
wallyworld_anyways, i'll sort it out02:26
wallyworld_after lunch :-)02:26
thumperkk02:28
=== tasdomas_afk is now known as tasdomas
* thumper off early due to late work last night04:41
thumperciao everyone04:41
TheMuemorning07:24
TheMuefwereade__: thx ;) the resumer is indeed not very complex.07:34
fwereade__TheMue, haha, yeah :)07:34
TheMuefwereade__: hmm, somehow rogers and my branch merge proposals of yesterday don't go into trunk but they have status Approved07:38
TheMuefwereade__: any idea as an old launchpad user?07:38
jamTheMue: https://code.launchpad.net/~themue/juju-core/025-cleaner-worker/+merge/169228 ?07:38
jamAs I warned, it doesn't have a Commit Message07:38
jamyou can copy the description into "Set Commit Message"07:39
fwereade__jam, btw, thank you ever so much for doing all that work07:39
jam(its probably the biggest case where things fail for people with Tarmac, I tried to be upfront that it is a failure mode)07:39
jamI've had that problem as well07:39
jamthere is a patch somewhere that has tarmac set it back to Needs Review with a note that it needs a commit message, which at least avoids the black-hole of 'why isn't this working'07:40
jambut I haven't tracked it down yet.07:40
TheMuejam: Hmm, I thought I have something in the commit message. *wonder*07:40
jamTheMue: https://code.launchpad.net/~themue/juju-core/025-cleaner-worker/+merge/169228 you have a Description set, but not a Commit Message07:40
jamseparate fields07:40
jam(Launchpad models it as one is the conversation you want to have, vs the thing you want saved for posterity)07:41
TheMuejam: *aaargh* have to learn this first, thanks07:41
jamTheMue: as an added bonus, I believe LP's resubmit actually removes a commit message if it was set in the original proposal. And *that* is pretty stupid. :)07:42
TheMue*drumroll* will see now07:42
jamTheMue: no proposals for your prerequisite branch07:43
jamTheMue: I'm cheating by looking at the tarmac log07:43
jamyour 024-cleanup-watcher is marked as 'this must land before I can land 025' but you don't have '024' proposed for merging (and approved)07:44
TheMuejam: that is already merged. do i have to resubmit it too?07:44
jamTheMue: I think it is just tarmac confused because of the resubmit07:44
* TheMue is sometimes really astonished07:44
jamthe old proposal was against a different branch, so it isn't seeing it.07:44
TheMuejam: yes, it has been before the switch07:45
jamBecause you used 'resubmit' things got copied across that aren't relevant (It is no longer a prerequisit)07:45
jamTheMue: fortunately most of this irons itself out naturally with time, I'll unstick it in a sec07:45
TheMuejam: thankfully my next branch is one of the post-switch-era07:46
TheMuejam: great, thanks. otherwise i would have resubmitted and approved it (with commit message)07:46
jamTheMue: fortunately for prerequisite requirements, Tarmac *does* post to the request: https://code.launchpad.net/~themue/juju-core/025-cleaner-worker/+merge/169228/comments/37648607:47
jamTheMue: what other branch is affected?07:48
TheMuejam: nice guy ;)07:48
jamTheMue: pre-commit hook is now running. It failed to merge, though.07:49
TheMuejam: aha?07:49
jamTheMue: my fault07:49
jamI made a change which broke the tarmac config07:50
jamwill fix now07:50
TheMuejam: and i'll change my "Getting started" document with our usage of the tools and the procedures07:51
jamTheMue: precommit now firing again07:52
* jam crosses fingers07:52
jamTheMue: it is currently on cmd/juju tests, so looks pretty good. We'll find out in about 15min.07:54
TheMuejam: great, fantastic work07:55
jamTheMue: sorry it didn't work first time right away, but thanks for being patient07:55
TheMuejam: no problem, typical migration time experience07:55
TheMuejam: i'm more happy about your effort for tarmac07:56
TheMuehmm, sound somehow wrong07:56
TheMuesounds07:56
TheMuejam: happy about the work you did :)07:57
jamthanks07:57
TheMuejam: so to get sure: if it fails the status will be set to "Needs review" again, but currently no mail notification?07:58
jamTheMue: it should set the status, and post the failure to the Launchpad proposal, which should generate an email for you07:58
jamthe only thing it doesn't send the email for (but should) is missing a commit message.07:58
TheMuejam: ok, thanks07:59
jamTheMue: I certainly see emails from earlier, check if you got them as well08:00
* TheMue now also has an eye on the video stream from Toulouse, where the A350XWB starts for its first flight08:00
TheMueAh, just took of, great!08:01
jamTheMue: and it has landed08:10
TheMuejam: yep, just seen, fantastic. great job!08:12
=== danilos__ is now known as danilos
* TheMue is at lunch10:26
mgzdanilo, laaaging, you take over for a sec :)12:15
mgzyou can also install a different editor if you  like :P12:15
danilosmgz, I just tried '-not -name' on find and it works (though -exec seems harder since it doesn't return the subprocess return code, so I am leaving that as xargs :))12:46
TheMue*pinDrop*13:43
mgzping drop? :)13:44
TheMuemgz: no, just a pin drop, it's so quiet here13:45
TheMuemgz: but ping drop sound better on irc, indeed13:46
TheMuesounds13:46
=== wedgwood_away is now known as wedgwood
Makyofwereade__, chance I could get another look at https://codereview.appspot.com/10237043/ SetCharm soon?15:05
fwereade__Makyo, sorry, ofc15:06
Makyofwereade__, thanks, much appreciated :)15:06
fwereade__Makyo, LGTM, someone else review it too please :)15:21
Makyofwereade__, thanks.15:21
TheMueMakyo: 2nd LGTM ;)15:29
MakyoTheMue, Thanks \o/15:29
TheMueMakyo: yw15:29
rogpeppe1TheMue: you have a review15:46
TheMuerogpeppe1: yust seen the mail, thanks15:47
=== gmb`` is now known as gmb
TheMuerogpeppe1: the non-fatal error is simply due to the fact that it may happen during a short network problem but shall be automatically retried later (currently each minute).15:50
rogpeppe1TheMue: how is that different from any other error we encounter in the other workers when talking to the state?15:51
TheMuerogpeppe1: if the resume fails what would we win if we let the worker crash?15:51
TheMuerogpeppe1: the cleaner also only logs and doesn't crash15:51
rogpeppe1TheMue: if the state is borked because its connection is broken, won't we need to reconnect to it?15:51
* rogpeppe1 wishes he had a better understanding of mgo failure-modes15:52
TheMuerogpeppe1: me too15:52
TheMuerogpeppe1: imo both, cleaner and resumer, don't have an own state that me be confused by an error beside their connection to mongo15:53
TheMuerogpeppe1: so assuming that the connection is able to reconnect they can repeat their work15:54
TheMuerogpeppe1: but indeed, i'm right now not sure with this connection15:54
rogpeppe1TheMue: yeah, i dunno15:55
rogpeppe1niemeyer: ping15:55
niemeyerrogpeppe1: Hea15:57
niemeyerheya15:57
rogpeppe1niemeyer: yo!15:58
rogpeppe1niemeyer: how's tricks?15:58
niemeyerrogpeppe1: Going :)15:59
=== tasdomas is now known as tasdomas_afk
rogpeppe1niemeyer: a couple of questions15:59
niemeyerrogpeppe1: Shoot.. I may not be able to answer them right now because lunch is waiting for me, but perhaps I can think over lunch.16:00
rogpeppe1niemeyer: just hoping to avoid delving into the source of mgo and wondering: if you get an error, is it necessary to reconnect to mongo, or will it happen automatically?16:00
niemeyerrogpeppe1: It will reconnect by itself, but!16:01
niemeyerrogpeppe1: The error on a session, after a connection is abruptly broken, won't go away until you either: 1) discard the session and create a new one; or 2) call Refresh on it16:01
rogpeppe1niemeyer: second: how easy would it be to add non-authorized s3 access to public-access buckets to goamz? and would you accept a patch that does that?16:01
niemeyerrogpeppe1: Can't parse the second question16:02
niemeyerrogpeppe1: I'd be very much against adding non-authorized access to public buckets.. (!? :-)16:02
rogpeppe1niemeyer: ok. even though they're open access?16:02
niemeyerrogpeppe1: Sorry, I jokingly meant the question makes no sense16:03
TheMueniemeyer: open read access, to be more specific16:03
rogpeppe1niemeyer: currently you need amazon credentials to access them even though amazon doesn't require them, i think16:03
rogpeppe1niemeyer: when using goamz, that is16:03
rogpeppe1niemeyer: so... when does mgo reconnect by itself?16:04
rogpeppe1niemeyer: i'm not helping here by mixing the two questions up together :-) let's deal with the first one first, shall we?16:04
niemeyerrogpeppe1: I think it'd be okay to accept empty credentials for s3, yeah16:04
niemeyerrogpeppe1: I haven't thought about the implications of that in the code base, but I'd be happy to analyze with you a patch that does that16:05
niemeyerrogpeppe1: mgo reconnects whenever necessary16:05
rogpeppe1niemeyer: our existing plan was to just talk directly to s3 and parse the xml ourselves, but i thought that if it's easy to do in goamz we should probably do that16:06
niemeyerrogpeppe1: and once every few seconds either way, to keep the cluster state up-to-date16:06
rogpeppe1niemeyer: but "after a connection is abruptly broken" it's not necessary?16:06
rogpeppe1niemeyer: maybe i'm not getting the terminology - a "session" is a single connection? or a set of connections?16:07
niemeyerrogpeppe1: A session is an *mgo.Session16:07
niemeyerrogpeppe1: If you see a connection error on a session, that error doesn't go away until (1) or (2), as stated16:07
niemeyerrogpeppe1: You don't have to reconnect manually, you just need to ack the error via closing and recreating, or via the Refresh method16:08
niemeyerrogpeppe1: This is just because Bad Stuff could happen if a connection was recreated behind your bakc16:08
niemeyerback16:08
rogpeppe1niemeyer: i think i need to be refreshed on the terminology here.16:10
rogpeppe1niemeyer: a Session corresponds to... a single TCP connection?16:10
niemeyerrogpeppe1: http://godoc.org/labix.org/v2/mgo#Session.SetMode16:11
niemeyerI'll have lunch while you read this16:11
niemeyerbiab16:11
rogpeppe1niemeyer: ah, perhaps you mean that once you've got a *Session it always automatically reconnects?16:12
rogpeppe1niemeyer: enjoy16:13
TheMuerogpeppe1: btw, List() and URL() already work of the reader, have been trivial, like Get() will be too ;)16:14
rogpeppe1TheMue: ok, cool16:15
TheMuerogpeppe1: http get, unmarshalling the two nested structs, iterate of contents, fetch key field, strings.HasPrefix(), simple16:16
rogpeppe1niemeyer: for when you come back: when can you see a connection error on a session? only at Dial time? or can you get a connection error at any later point? (in which case, how can you tell if it's a connection error so you know to call Refresh or discard the session?)16:16
TheMueso, me has to leave for today, we'll continue on Monday morning16:17
TheMuehave a nice weekend16:17
rogpeppe1niemeyer: i've also got to go unfortunately. i'd like to continue the conversation though, as my understanding of this area is lamentably poor and it affects how we will approach some things.16:34
rogpeppe1niemeyer: have a great weekend16:34
rogpeppe1and good weekends to all!16:34
niemeyerrogpeppe1: You can get a socket error at any point16:40
niemeyerrogpeppe1: It's a normal network connection we're talking about16:40
niemeyerrogpeppe1: Supposedly, you won't want to continue doing whatever was being done on any unknown error16:41
niemeyerrogpeppe1: Re-establishing a connection may happen to a different primary, and a pretty different state from what was being accessed before16:41
niemeyerrogpeppe1: That's why we cannot simply transparently re-establish the connection16:42
FunnyLookinHatSo - I think this might be one of the last few issues barring Rackspace OpenStack support for JUJU: https://bugs.launchpad.net/goose/+bug/112456119:13
_mup_Bug #1124561: the Content-Length header is missing <Go OpenStack Exchange:Invalid> <https://launchpad.net/bugs/1124561>19:13
FunnyLookinHatI can't imagine why the requests wouldn't have the correct Content-Length value19:14
FunnyLookinHatEven adding Content-Length: 0 seems to be a fix ?19:14

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