/srv/irclogs.ubuntu.com/2015/04/24/#juju-dev.txt

menn0jw4: i will keep digging now00:00
wallyworldericsnow: why the dial changes?00:00
jw4menn0: I'll be in and out for the next few hours... making supper for kids, and then school open house - I'll try to get on longer later00:00
menn0jw4: no worries00:00
ericsnowwallyworld: in 1.2 http.Transport doesn't have the KeepAlive field, so I had to manually create the same effect00:04
wallyworldok00:05
ericsnowwallyworld: thanks for the review :)00:09
wallyworldnp00:09
mupBug #1447853 was opened: Local charms are not added to storage on upgrade to 1.22.x <charms> <regression> <storage> <upgrade-juju> <juju-core:Triaged> <https://launchpad.net/bugs/1447853>00:19
wallyworldmenn0: fixes pushed when you get a chance00:23
menn0wallyworld: kk00:23
menn0wallyworld: ship it00:26
wallyworld\o/00:26
wallyworldty00:26
mupBug #1447853 changed: Local charms are not added to storage on upgrade to 1.22.x <charms> <regression> <storage> <upgrade-juju> <juju-core:Triaged> <https://launchpad.net/bugs/1447853>00:31
mupBug #1447853 was opened: Local charms are not added to storage on upgrade to 1.22.x <charms> <regression> <storage> <upgrade-juju> <juju-core:Triaged> <https://launchpad.net/bugs/1447853>00:40
sinzuiwallyworld, I am exhausted. I haven't found much. I split bug 1447846 from the other upgrade issue and captured some unit log00:52
mupBug #1447846: Hooks don't fire after upgrade 1.23.0 <hooks> <regression> <upgrade-juju> <juju-core:Triaged by menno.smits> <juju-core 1.23:In Progress by menno.smits> <https://launchpad.net/bugs/1447846>00:52
wallyworldsinzui: ty, menn0 is working that bug at the moment00:53
sinzuiwallyworld, mgz and I also discovered bug 1447853, but I know have a cheep work around00:53
mupBug #1447853: Local charms are not added to storage on upgrade to 1.22.x <charms> <regression> <storage> <upgrade-juju> <juju-core:Triaged> <https://launchpad.net/bugs/1447853>00:53
wallyworldah bollocks, saw that float past00:53
wallyworldwill have to fix for 1.2400:54
sinzuiwallyworld, the work around is to upgrade-charm --force. it works a minute later :)00:54
wallyworldat least there is that00:54
=== kadams54-away is now known as kadams54
ericsnowanyone have a minute to review a patch for a very mechanical change: https://github.com/juju/govmomi/pull/202:01
menn0fwereade: ping?02:30
menn0jam: ping?02:34
menn0wallyworld: i have a learned a lot more about the hook not firing bug03:00
menn0wallyworld: not sure I know how to fix it though03:00
wallyworldoh?03:00
wallyworlddid you want to talk?03:01
menn0wallyworld: having jam or fwereade around would be handy. it's leader related.03:01
wallyworldoh joy03:01
wallyworldjam will be online soonish03:01
menn0wallyworld: quick chat would be good03:01
wallyworldok, same hangout03:01
menn0wallyworld: i'm there now03:02
=== kadams54 is now known as kadams54-away
wallyworldmenn0: if you get a chance, but doesn't matter if not http://reviews.vapour.ws/r/1481/03:25
menn0wallyworld: got it03:26
jw4menn0: does that mean it's not related to my changes?03:40
menn0jw4: at this stage it's looking like the hooks not firing issue is related to the leadership work03:41
menn0jw4: i'm not any wiser about that mode error in the logs though03:41
jw4menn0: well I know about the error - that's not critical03:42
jw4menn0: cool, I'll try and dig into it too03:42
jw4for my edification03:42
menn0we just had an earthquake, 6.4 but very deep03:43
jw4whoa03:44
menn0because of the depth it wasn't that severe03:44
jw4menn0: any damage03:44
menn0but my chair was rolling around by itself03:44
menn0no damage i think but it was a strange rolling feeling and went on for a while03:45
menn0i've only experienced short "bangs" up until now03:45
anastasiamacmenn0: is south island sinking?03:45
jw4that's freaky... are earthquakes common in that area? Pacific Rim and all03:45
menn0yep, quite common in NZ03:45
jw4anastasiamac: he's ignoring the question... I think he's rescuing pets or something03:48
menn0anastasiamac: probably :)03:49
jw4quite a bit of activity recently: http://www.geonet.org.nz/quakes/felt03:50
anastasiamacjw4: :D03:51
jw4:)03:51
anastasiamacmenn0: u should have apost-earthquake party, considering it's friday03:51
menn0anastasiamac: they're a little too common to be having parties for each one :)03:56
anastasiamacmenn0: on a serious note, it's gr8 that it was deep. 6.4 sounds really scary... :))03:57
menn0anastasiamac: yes. this one was the same magnitude as the one that did this a few years ago: http://en.wikipedia.org/wiki/2011_Christchurch_earthquake03:59
menn0the city is still a long way from recovering from that one04:00
wallyworldmenn0: the earth moved for you in cape town as well didn't it?04:09
menn0wallyworld: ssh not in public :)04:10
mupBug #1447895 was opened: Panic if jujud restarts while action is running <actions> <juju-core:New> <https://launchpad.net/bugs/1447895>04:11
mupBug #1447899 was opened: upgrade fails if no explicit version is specified <upgrade-juju> <juju-core:Triaged> <https://launchpad.net/bugs/1447899>04:11
jw4nice sleuthing menn004:28
menn0jw4: with the hook not firing bug?04:28
jw4yeah04:28
jw4finding the WatchLeadershipSettings missing document04:29
menn0wallyworld, jw4: bingo!04:50
menn0wallyworld, jw4: I have a fix for the hook not firing issue04:50
menn0wallyworld, jw4: adding an upgrade step that adds the leadership documents in the settings collection fixes the issue04:51
menn0wallyworld, jw4: I hacked it in without tests so let me sort that out before proposing04:51
jw4menn0: suh-weet!04:52
menn0wallyworld, jw4: initial, rough fix for hooks not firing issue04:59
menn0https://github.com/mjs/juju/tree/1447846-hooks-dont-fire-after-upgrade-1.2304:59
menn0writing the tests now04:59
jw4other than missing docstring on https://github.com/juju/juju/compare/1.23...mjs:1447846-hooks-dont-fire-after-upgrade-1.23#diff-d7b2b2c8e8ce6dfc1b7f09c3cf9744d1R120305:04
jw4and forthcoming tests...05:04
jw4looks great menn005:04
wallyworldmenn0: branch looks good, still want to understand why listener hangs if there's no record. i think that's poor behaviour05:13
jw4wallyworld: I bet it's because the watcher isn't returning an initial empty event, like it's supposed to05:14
jw4wallyworld, menn0 it was a little tricky getting that initial guaranteed event in the Action Watchers, so I wouldn't be surprised if the Leadership Watchers have a problem there too05:15
menn0jw4: I think the problem here is that the code assumes the leadership doc will be there b/c it is for services created under 1.2305:15
menn0jw4: but someone forgot to write this upgrade step05:16
jw4the Watchers (afair) are supposed to guarantee an initial event, possibly empty, even if there are no records...05:16
menn0jw4: and without the doc there when the watcher is created the initial event isn't fired05:16
menn0jw4: are you sure about that?05:16
jw4menn0: yeah, I think you're right, but I remember fwereade stressing to me the importance of that... (but I could be remembering wrong)05:16
jw4(the importance of the initial, possibly empty, guaranteed event)05:17
menn0jw4: yeah, I know there's been talk about this but I'm not exactly sure what should happen05:17
jw4hopefully fwereade will be on soon and will chime in... I guess it's EOD for you though now (and EOW)05:18
menn0jw4: i've got a bit more time left05:19
menn0jw4: i'm going to try and get this fix done as much as I can05:19
menn0jw4: regardless of what the watchers are supposed to do I'm pretty sure we want this upgrade step05:20
jw4menn0: regardless, I think your fix is appropriate in this case05:20
wallyworldjw4: exactly, but to me that's not how i thought the watchers worked05:20
wallyworld+105:21
jw4wallyworld: yeah, I'm fairly confident that's how I was instructed to implement the actions related watchers, but we should verify05:21
* jw4 off to bed05:32
=== urulama__ is now known as urulama
menn0wallyworld: ping05:51
wallyworldyo05:52
menn0wallyworld: i have to EOD very soon05:52
wallyworldone sec05:52
wallyworldback05:54
menn0wallyworld: just need to hand over the fix for this05:54
menn0wallyworld: pushing now...05:54
menn0wallyworld: give me a sec05:54
wallyworldsure, is it ready to land after review?05:54
wallyworldor tests needed?05:54
menn0wallyworld: the hard tests are done05:55
menn0wallyworld: just needs a test for upgrade step idempotency05:55
wallyworldok05:56
menn0it's here: https://github.com/mjs/juju/tree/1447846-hooks-dont-fire-after-upgrade-1.2305:58
wallyworldmenn0: i'll either do it or hand over; it's my son's birthday today and i have to go to dinner soonish. either way will be done. thanks for fixing05:58
menn0it's ready to go apart from that one test05:58
menn0if no-one gets it done today it'll take me almost no time on Monday05:59
menn0wallyworld: and we need to forward port to master05:59
wallyworldok, np. tbh, i don't think we are cutting a release on friday anyway05:59
wallyworldbut it's now done so the risk is removed06:00
menn0wallyworld: ok good06:02
menn0wallyworld: well have a good night and a weekend06:02
menn0speak to you next week06:02
wallyworldfwereade: you online?06:54
wallyworldfwereade: hiya10:17
wallyworldTheMue: hi there, you ocr? would love a review of this so as it needs to land for 1.24 http://reviews.vapour.ws/r/1481/ it removes a feature flag10:28
wwitzel3jam: ping11:13
mattywwwitzel3, ping?11:27
wwitzel3mattyw: pong11:30
fwereadewallyworld_, so do we still serve client facade v0? I'm not seeing where we do11:40
fwereadewallyworld_, and that would STM to be a problem...11:40
wallyworld_fwereade: ah, right, i wasn't sure about that. i wasn't sure what the exact mechanism was there11:41
fwereadewallyworld_, the ideal, I think, is to *never touch* the client API, and carve off changing functionality into more service-specific facades11:42
fwereadewallyworld_, otherwise you have to have an almost-perfectly-cloned Client facade11:42
fwereadewallyworld_, then when (say) storage evolves, it shouldn't need to hit more than one or two small facades11:43
fwereadewallyworld_, rather than dragging the Client mess into the equation every time11:43
fwereadewallyworld_, what actually changed on Client?11:44
wallyworld_fwereade: yeah sadly i think you are right, i'll have to do that, but will miss the branching of 1.24. bollocks. will have to forward port11:44
fwereadewallyworld_, bad luck :(11:44
wallyworld_fwereade: new params to 2 apis were added11:44
wallyworld_fwereade: if a newer client adds additonal params to the call, they will be ignored, but we need a way to tell the user11:45
wallyworld_hence the api bump11:45
fwereadewallyworld_, yeah, indeed, it really is a different API11:45
fwereadewallyworld_, so I *think* that the right thing to do11:46
fwereadewallyworld_, is to pull out a Service service facade from client11:46
wallyworld_yeah, i suspect so too11:46
wallyworld_i'll revisit over the weekend11:46
wallyworld_i really want to remove the flag for 1.2411:47
perrito666morning12:35
mgzperrito666: wala12:44
redelmannperrito666, ¿good? morning12:45
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
katcowwitzel3: ericsnow: stand up14:02
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== liam_ is now known as Guest67926
alexisball, looking at this: https://bugs.launchpad.net/juju-core/+bug/144784615:56
mupBug #1447846: Hooks don't fire after upgrade 1.23.0 <hooks> <regression> <upgrade-juju> <juju-core:Triaged by menno.smits> <juju-core 1.23:In Progress by menno.smits> <https://launchpad.net/bugs/1447846>15:56
alexisb^^^ based on menno's last comment is this something someone can pick up and complete today?15:57
jw4alexisb: menn0 said it's almost done.. just one test for idempotency left15:57
katcoalexisb: yeah looks doable for someone to pick up15:58
alexisbkatco, can you please delegate15:58
katcoalexisb: sure15:58
alexisbthanks15:58
katcomoonstone are all currently working on bugs. any volunteers?15:59
katcocherylj: perrito666: do you two have capacity to land a simple bug?16:03
=== urulama is now known as urulama__
perrito666katco: sorry I dont feel really reliable right now.16:07
katcoperrito666: no worries. feel better soon17:04
katcocherylj: sorry i lost connection. can you take that bug?17:04
natefinchman I really hate that we require go 1.2 for juju, it totally screws up my development environment for everything else... and many projects already require 1.3+17:23
katconatefinch: here's my setup17:26
katconatefinch: ~/.local/go-1.{2,3,4}17:26
katconatefinch: ~/.local/go -> go-1.2 during day17:26
katconatefinch: export GOPATH=~/.local/go17:26
katconatefinch: there is some churn with having to rebuild utils17:26
ericsnowhmmm...virtualenv for go...17:27
katcoericsnow: or there's that :)17:27
natefinchericsnow: there's a tool for that... forget which of the myriad tools out there it is.  of  course, as katco said, you can always just run them side by side.17:29
katconatefinch: wwitzel3: planning time!17:32
wwitzel3I'm there?17:32
wwitzel3is it not in moonstone? .. (checks calendar)17:33
natefinchwwitzel3: not moonstone17:34
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
wwitzel3cmars: http://reviews.vapour.ws/r/1484/17:50
cmarswwitzel3, so i guess CI is going to set that feature flag to get that test to pass? what's the difference between not registering the provider vs. blocking bootstrap?17:55
wwitzel3cmars: the code on the unit doesn't see the provider as registered since the flag is local17:57
wwitzel3cmars: jam pointed this out no the ML and the QA ran in to it with CI tests17:57
aznashwanhey; could I please get a quick review on http://reviews.vapour.ws/r/1486/17:58
cmarswwitzel3, ok, got it. so this moves the featureflag check to the client? in what context does environ.Bootstrap run?17:58
cmars(environ's not an area of the codebase I'm familiar with)17:58
aznashwanit's a simple module; ~100 lines of code that actually does something17:58
wwitzel3cmars: just during juju bootstrap18:03
=== kadams54 is now known as kadams54-away
natefinchcmars: quick review?  http://reviews.vapour.ws/r/1487/diff/#18:34
wwitzel3cmars: thanks for the review18:40
perrito666 /query alexisb19:53
perrito666well, another bug in my irc client19:53
perrito666I should stop using daily snapshots19:53
natefinchsometimes I think Juju is the biggest example of what not to do with interfaces :/20:24
perrito666you exagerate20:25
natefinchperhaps slightly20:25
natefinchthere might be a few worse examples in the world ;)20:25
natefinchI like the way everything is a nice generic interface and then in the comments we just say "this is for precise020:27
natefinchs/0/"20:27
perrito666natefinch: I think that is an example on how not to used a typed language20:34
mgzanyone still around for trivial reviews?21:10
mupBug #1448308 was opened: Skipped TestUniterUpgradeConflicts on ppc64 <skipped-test> <test-failure> <juju-core:Triaged> <https://launchpad.net/bugs/1448308>21:16
ericsnowmgz: sorry I missed that format stuff :/21:21
ericsnowanyone around that feels comfortable reviewing http://reviews.vapour.ws/r/1490/21:22
ericsnowit fixes the "hooks not firing" bug21:23
ericsnow#144784621:23
mupBug #1447846: Hooks don't fire after upgrade 1.23.0 <hooks> <regression> <upgrade-juju> <juju-core:Triaged by menno.smits> <juju-core 1.23:In Progress by ericsnowcurrently> <https://launchpad.net/bugs/1447846>21:23
mgzericsnow: I can look21:23
ericsnowmgz: oh, cool21:23
mgzericsnow: I also have a trivial ppc64 test skip branch21:24
ericsnowmgz: note that I only added the idempotency test, menn0 did the rest21:24
mgz/148821:24
ericsnowmgz: I'll take a look21:24
mgzericsnow: yeah, I already looked over menno's branch21:24
ericsnowmgz: nice21:24
ericsnowmgz: I'm pretty sure I got the idempotency check right21:25
ericsnowmgz: in the bug you make it sound like skipping the test might be masking a real bug21:27
mgzericsnow: it might be, but we hav ehte bug, and know we need to do functional testing of the leadership stuff21:28
ericsnowmgz: k21:28
ericsnowmgz: so 1448308 will be closed only as soon as we resolve the issue (and not when the skip-the-test patch merges), right?21:29
mgzericsnow: how-upgrades-work question21:29
ericsnowmgz: sure21:29
mgzericsnow: indeed, I'm keeping the skipped-tests bugs open, because we keep filing bugs and linking them in the codebase, but counting them as fixed when the test is skipped21:30
mgzwhich is wrong...21:30
ericsnowmgz: cool, then LGTM21:31
mgzI'm on 1.23.0 which did not do this step, my state server notices there's a 1.23.2 with this fix and downloads it... how does it know to run this step?21:31
mgzwe just always do steps on new versions and the steps must apply?21:32
mgzeven minor ones, right?21:32
ericsnowmgz: I'm not sure, but...the idempotency invariant of upgrade steps ensures it's a noop if you're already okay21:33
mgzright21:33
ericsnowI expect it simply runs all the steps21:34
mgzericsnow: test changes look good21:37
ericsnowmgz: k, cool21:37
ericsnowmgz: it made sense to factor out that stuff into helpers :)21:38
mgzI'd be somewhat interested in a test that ran the step on a as-if just bootstrapped system, no services21:38
mgzwe don't try and do all error paths in these things, but that one does seem relevent21:39
ericsnowmgz: so basically the same thing as the existing test but without adding any services first?21:41
mgz(it should just return success without running any ops basically)21:42
mgzericsnow: yup21:42
ericsnowmgz: I'll add such a test!21:42
mgzericsnow: lgtm21:42
mgzhm, can I shipit and leave a comment in the same thing? not sure on the magic21:43
mgzI guess I jsut include that string in my text huh.21:43
ericsnowmgz: so is it correct that CI covers the upgrade scenarios now (i.e. the bug trigger will get exercised)?21:58
mgzericsnow: see all the failures on upgrade jobs on 1.23 and trunk :)21:59
ericsnowmgz: that's what I figured :)22:00
ericsnowmgz: thanks for the review22:00
mgzhttp://reports.vapour.ws/releases/255722:00
mgz"panic: rescanned document misses transaction in queue" ...that one's new to me22:30
=== kadams54-away is now known as kadams54
ericsnowmgz: yeah, me too :\22:43
ericsnowmgz: hmmm...see #131836622:47
mupBug #1318366: jujud on state server panic misses transaction in queue <cloud-installer> <landscape> <orange-box> <panic> <performance> <sm15k> <juju-core:Fix Released by menno.smits> <juju-core 1.20:Fix Released by menno.smits> <juju-core (Ubuntu):Fix Released> <https://launchpad.net/bugs/1318366>22:47
fwereadeericsnow, menn0, dammit, sorry, thanks22:48
ericsnowmgz: I'm going to ask menn0 to double check the upgrade step and tests when he gets a chance; that failure is a little suspicious.23:00
mgzericsnow: seems wise, we're not in a rush now23:06
ericsnowmgz: yep :)23:07
=== kadams54 is now known as kadams54-away

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