/srv/irclogs.ubuntu.com/2014/10/27/#juju-dev.txt

fwereadewallyworld, anastasiamac: if I wake up tomorrow with even a cursory pre-review of http://reviews.vapour.ws/r/263/diff/ I will be most grateful00:32
* fwereade bed right now00:32
wallyworldok, will do00:33
fwereade<300:33
wallyworldgood night :-)00:33
anastasiamacfwereade: k :-)00:34
bigjoolshey folks, what's the quickest you've seen an LXC come up, given its image is already cached?00:52
stokachubigjools: 32 seconds00:52
bigjoolsstokachu: precisely?  lol00:52
stokachubigjools: yea ive got a counter00:52
bigjoolsthat's fairly swift, thanks00:53
stokachuthats using ubuntu-cloud template btw00:53
stokachuregular ubuntu is slightly longer00:53
bigjoolswe're trying to work out if it's a problem when juju uses maas to make LXCs if the DNS entry takes up to a minute to appear00:53
stokachuand with lxc-clone enabled00:53
stokachubigjools: im actually testing juju+maas 1.7 ill let you know if i see anything like that00:54
bigjoolsstokachu: well this feature is not present yetr00:54
stokachuah ok00:54
bigjoolswe're working on it now, but trying to get a feel for what will be a problem00:54
bigjoolswe're having to make some compromises00:54
stokachucool, understood00:54
bigjoolshttps://code.launchpad.net/~gmb/maas/add-ptr-records-bug-1382190/+merge/239493 if you're interested00:54
stokachunice will take a look00:55
bigjoolsstokachu: wait, are you working on your Sunday?!00:56
stokachubigjools: yea :( trying to get our unmanaged installer ready for tuesday's lds release00:56
stokachuso we're testing daily maas 1.7 right now00:56
bigjoolsstokachu: ah ok. LXCs don't get DNS until that branch lands :)00:57
stokachugood to know, fortunately we're using KVM for our bootstrap node in maas00:57
stokachuso it works well00:57
bigjoolsstokachu: ok so what would be good to know is if a delay getting the DNS entry up after the LXC appears will be a problem in practice00:59
stokachubigjools: ok cool, i subscribed the team to that bug and added a note on our tasklist to keep an eye on that01:00
bigjoolsgreat thanks01:00
stokachunp01:01
anastasiamacaxw, wallyworld: isLoopback is great idea but it does not work for explicit "localhost"...01:46
axwanastasiamac: no, you'd still need a string comparison for that01:46
axwyou're just cutting out the comparison to 127.0.0.1 and ::101:46
anastasiamacaxw: k... m with u :-)01:47
anastasiamacaxw: it looks like it does not cater for ip where hostport is only ::1 either...01:54
anastasiamacaxw: to be fair, I suspect that it's url.parse that does not cater for this case...01:54
anastasiamacaxw: just how it does not cater for malformed urls...01:55
axwanastasiamac: ah, no, you're right, SplitHostPort expects there to be a port... in that case if you get an error you could tack on a ":0" and try again. starting to get a little convoluted...01:56
anastasiamacaxw: hmm... do u think that mayb regular experession could work neater? it will abbrv8 the if- and is easier to modify to cater for "funny" cases...01:58
axwanastasiamac: actually, is the port even optional? I'm not sure there is a default port for apt proxies?02:01
anastasiamacaxw: from apt.conf man page... "  http02:03
anastasiamac       HTTP URIs; http::Proxy is the default http proxy to use. It is in02:03
anastasiamac       the standard form of http://[[user][:pass]@]host[:port]/. Per host02:03
anastasiamac       proxies can also be specified by using the form http::Proxy::<host>02:03
anastasiamac       with the special keyword DIRECT meaning to use no proxies. If no02:03
anastasiamac       one of the above settings is specified, http_proxy environment02:03
anastasiamac       variable will be used."02:03
axwok02:03
anastasiamacaxw: it looks like port could be optional... unless square brakcets have other meaninng...02:03
axwnope, that would mean optiona02:03
axwl02:03
anastasiamacaxw: ;-(02:04
anastasiamaci'll do a regexp for now... we can alsways neat it up once url.parse and net.IP.isLoopback cater for every possibility... :-)02:04
axwokey dokey02:05
anastasiamacaxw: i do prefer to call on framework rathern than rely on regexp02:05
anastasiamacaxw: thnx for pointing me in the right (i.e. proper) direction! :-)02:05
axwnps02:05
bigjoolsfolks, when juju destroys an environment, does it keep issuing commands to destroy individual machines if it later notices that one is not in the state it expected (ie getting destroyed)?  This might be provider-specific, in which case I'm talking about maas.02:15
bigjoolsaxw: you worked on the maas provider recently :) --^02:16
axwbigjools: I'll check what it does02:17
bigjoolscheers02:17
axwI think it issues a single release call02:17
axwbigjools: http://pad.lv/131901602:18
axwit does a single release API call02:18
axwbigjools: why do you ask?02:18
bigjoolsaxw: because https://bugs.launchpad.net/maas/+bug/138161902:18
mupBug #1381619: Failed to destroy-environment when node is in commissioning or new state <cloud-installer> <oil> <juju-core:Triaged> <MAAS:Triaged> <https://launchpad.net/bugs/1381619>02:18
bigjoolsaxw: ignore the bug title, look at what greg posted02:19
bigjoolsI'll need to explain some background perhaps:02:19
bigjoolswe added some more states. It used to go from ALLOCATED straight to READY as soon as an API call was issued to release the node, however now it goes via a RELEASING state02:19
bigjoolsbut because this broke some API users, we folded RELEASING into ALLOCATED so that API users never see it02:20
bigjoolsI wondered if juju was issuing a release call, and still seeing ALLOCATED when in reality it's RELEASING, so juju issues another release?02:20
axwbigjools: ah ok. nope, we don't interpret the error or retry at the moment02:21
bigjoolsoh ,weird then02:21
axwgood to know for the bug I mentioned tho...02:21
bigjoolsyeah02:21
axwI'll paste that in there02:21
bigjoolsaxw: how does it know when the env is destroyed?  Or does it just fire and forget?02:22
axwbigjools: it'll do do a release of all nodes, and check if it passed/failed based on HTTP status code only02:23
bigjoolsok02:23
bigjoolshmmm02:23
bigjoolsthat bug makes no sense then, unless people were mannually titting about with things first02:23
axwbigjools: hmm. actually, Bootstrap will do a release of the bootstrap node if it manages to acquire it and then something goes wrong02:24
axwthen when the env is destroyed, it'll try to release it again02:24
bigjoolsah02:25
axwI *think* anyway02:25
bigjoolsaxw: so releasing twice?02:25
axwwhy did the instance stop showing up tho? i.e. why "ERROR bootstrap failed: refreshing addresses: no instances found02:25
axwStopping instance..."02:25
bigjoolsNFI what was going on there02:25
bigjoolsit's a shame people don't report what actions they were taking, and just post log snippets02:26
axwbigjools: actually no, that error message greg pasted is from the first attempt to release02:27
axwthere may or may not be a second attempt, depending on what MAAS returns to Juju when it tries to list nodes with agent-name later, but I don't think it's relevant02:28
bigjoolsaxw: looking at the event log, it did fail while coming up02:28
bigjoolswell02:28
bigjoolssomething caused bootstrap to release the node while it was deploying02:29
axw(the second attempt would occur after that error is listed)02:29
bigjoolsI asked greg to file another bug with more info02:31
axwwallyworld: can you please take a look at http://reviews.vapour.ws/r/137/diff/2-3/03:28
wallyworldsure, justing finishing a review, will look real soon03:28
axwthere's a drive by fix to ssh/run_test.go, which failed when I tried to land my change once03:28
axwyep no rush03:28
axwthe main change is that I've made the metadata commands use environs.New, rather than environs.Prepare; i.e. they require an existing env now03:29
wallyworldaxw: i think the changes are ok - any env should already be existing when using those metadata commands03:47
axwwallyworld: thanks. utils/ssh is used by testing, so can't use the existing ShortWait/LongWait03:48
wallyworldah ok03:48
* wallyworld -> get more coffee, it's an emergency03:50
axwwallyworld: I've removed myself from that credential bug and moved it back to the planning lane. azure and joyent still need doing.04:11
wallyworldaxw: ok, np04:31
mattywmorning everyone08:08
wallyworldaxw: if you get a chance before your EOD, cloud you look at http://reviews.vapour.ws/r/264/ ? it's a large number of file but 99% of the changes are mechanical - the tools stream needs to be added as a parameter to many test methods08:42
axwwallyworld: ok08:43
wallyworldty, if you don't get to it, that;s fine08:43
axwnah I need a break from storage, will look now08:44
voidspacemorning all09:04
lazyPowero/ morning core devs09:09
wallyworldaxw: thanks for review :-) i prefer to use string literals in tests to cause breakage when things change, so that tests are thought about09:27
jammorning voidspace09:28
jamvoidspace: did you see: https://github.com/juju/juju/pull/962 wallyworld wants to cache your lookup, which I think we were talking about doing a different way09:29
jamah, read it wrong, you proposed it :)09:30
jamthe email comes as "no-reply" and then is responded by "ian" so the mail preview always gives me the wrong impression09:30
* wallyworld doesn't want to cache the lookup - the pr implements a cache and i had a query about it09:30
jamwallyworld: we can't change vpc at all for the lifetime of an environment09:31
axwwallyworld: ok09:31
jamwallyworld: instances in 1 vpc can't communicate via private network to instances in another vpc09:31
jamwallyworld: so the "lifetime of juju process" is a misnomer09:31
jamit is "lifetime of a juju environment"09:31
wallyworldjam: ok, thanks. the pr said the vpc *could* change09:31
wallyworldit was unclear if that would be in the lifetime of an env or not09:31
jamwallyworld: first thoughts were that it could, further thinking realized "no we can't actually support that"09:31
wallyworldok, np. i think then my only concern (from memory) is that a muctex should be used09:32
wallyworldmutex09:32
voidspaceyeah, my mistake in the description09:34
voidspacethe vpc changing would be "bad" for an environment - but it isn't likely to happen during the lifetime of a process anyway09:34
* TheMue wonders about the Google Calendar. It shows the correct time now after switching back from DST, but the alerts are for a false time?!?!?!09:34
voidspacewallyworld: I'll add the mutex09:35
wallyworldvoidspace: ok, thanks, that then conforms to existing practice09:35
voidspacewallyworld: that's in code already committed - it was just missed in the review of that code09:35
voidspaceeasy to add it now09:35
wallyworldvoidspace: np. i also had a question about one of the tests09:36
voidspacewallyworld: yes, I just answered that09:36
voidspacewallyworld: the test is the same because I want to *prove* that cached value is used09:36
voidspacewallyworld: so even after changing what the api would return I expect to get the previous value back09:36
wallyworldah, let me take another look09:36
voidspacewallyworld: proving that a second api call wasn't made09:36
voidspacewallyworld: that's the intent09:36
wallyworldvoidspace: i may be dumb, but from what i can tell, the code could still make an api call and return those result values and make the test pass. the more correct approach would be to mock out the api call and put in an assert that it is not called09:40
jamTheMue: you didn't get your reminder for our 1:1? I didn't see you around, I should have pinged, I guess09:42
voidspacewallyworld: if it made an api call it would get the opposite result09:42
voidspacewallyworld: if you remove the caching and run the test it fails09:42
voidspacewallyworld: I did check that09:42
voidspacewallyworld: also, with the mutex09:42
wallyworldvoidspace: ok, then i was being dumb :-)09:43
TheMuejam: I got it, for in 18 minutes. And later I thought that it would conflict with our standup.09:43
voidspacewallyworld: there is a mutex in the call to e.ec2()09:43
voidspacewallyworld: the common pattern in ec2.go where e.ec2() is used seems to be *not* to use an extra mutex09:43
TheMuejam: but no I got the alert for the standup, also one hour too late.09:43
wallyworldvoidspace: ok, np. i missed that nuance09:43
jamTheMue: are these email alarms or popup ones?09:44
TheMuejam: email09:44
voidspacewallyworld: the mutex in use seems to be a config mutex - preventing the ec2 configuration changing whilst we're building the ec2 instance09:44
voidspacealthough it doesn't prevent it changing whilst we're using it :-/09:44
wallyworldvoidspace: yeah, that was my worry09:45
wallyworldvoidspace: anyway, that's a separate issue it seems, so i marked it lgtm09:45
voidspacewallyworld: locking every use would serialise all our api calls though09:45
voidspacewallyworld: awesome, thanks09:45
wallyworldnp, thanks for putting up with my questions09:45
voidspaceheh :-)09:45
TheMuejam: but simply won't care for them in the future now as I now it :D and will be at standup at the correct time09:45
voidspacewallyworld: I'll change the PR description before merging, so the comment about default-vpc is correct09:46
wallyworldawesome, ty09:46
fwereadewallyworld, thanks for the review09:55
fwereadewallyworld, lots of that stuff is preexisting, but now someone's complained about them I can muster up the emotinal strength to work on some of them a bit ;p09:55
wallyworldfwereade: np, it looks great but as i said, i am unfamiliar with the finer detail09:55
fwereadewallyworld, it needs more steps before it's really approaching properly sane tbh09:56
wallyworldfwereade: yeah, i figured as much, hard to tell what was new vs moved09:56
fwereadewallyworld, that's the trouble09:56
wallyworldeat an elephant one bite at a time09:56
fwereadewallyworld, exactly09:57
fwereadewallyworld, and I've only really been going on this path for a week and it's already feeling noticeably better09:57
wallyworldyep :-)09:57
fwereadewallyworld, actions needs a bunch of work too09:57
wallyworldif it all works, i reckon commit what you've done so far09:57
wallyworldso it doesn't bit rot09:57
fwereadewallyworld, well, it's worth another pass to fix your suggestions09:57
wallyworldok09:57
wallyworldthey were not mandatory09:57
wallyworldif the code was existing09:58
wallyworldbut would be nice to see them fixed sometime09:58
fwereadewallyworld, yeah, I reserve the right to ignore the ones that turn out to be rabbit holes09:58
fwereadewallyworld, at least for this branch09:58
wallyworldyep, np there09:58
jamTheMue: standup ?09:59
fwereadewallyworld, but I am very firmly trying to steer a happy course between fix-only-what's-needed and FIX-ALL-THE-THINGS, cos the former leads where we are today and the latter stops me doing anything directly09:59
wallyworldfwereade: +10009:59
TheMuejam: coming, my clock say :59 ;)10:00
=== ashipika is now known as ashipika_afk
fwereadewallyworld, just pushed a couple of updates, would you give it a quick once-over? I didn't fix the yucky docstring because whenever I start trying to edit that file I start pulling on loose threads everywhere and get sucked in10:28
wallyworldsure10:28
wallyworldfwereade: changes look sound10:37
fwereadewallyworld, awesome10:37
fwereadewallyworld, is that a ship-it, then? :)10:38
wallyworldfwereade: if you are happy, yeah :-) as i said, take my +1 with a little skepticism :-)10:41
wallyworldbut i like the direction it is heading very much10:41
fwereadewallyworld, cool10:42
fwereadewallyworld, I'm making a big effort to avoid changing functionality10:42
fwereadewallyworld, not that it always works, I just realised that I broke relation settings caching in one of the previous branches, so that's th enext one before I can fix actions10:43
wallyworldyep, tests will tell us :-)10:43
hazmatsomething in 1.21alpha2 seems to have broken the allwatcher11:06
hazmatits no longer reporting all the services in an environment11:06
perrito666morning11:15
natefinchmorning11:15
mattywtasdomas, as OCR could you take a look at this http://reviews.vapour.ws/r/265/?11:16
* perrito666 tries to convince his ubuntu that it can upgrade to a new version11:16
voidspacejam: so I haven't yet found the neutron api for assigning a private p address11:18
voidspacejam: one example I saw created a port to reserve the address11:19
voidspacehttp://blog.felipe-alfaro.com/2014/05/09/fixed-ip-addresses-with-openstack-neutron-for-tenant-networks/11:20
voidspaceI'm not sure a port is quite what we want11:21
voidspacehttps://wiki.openstack.org/wiki/Neutron/APIv2-specification#Create_Port11:21
voidspaceThe APIv2 spec doesn't seem to have an alternative api though11:21
voidspaceI'll look and see if dimiter has written about this in the networking spec11:21
jamvoidspace: I'm back in our 1:1 hangout11:26
voidspacejam: ok11:26
jamI found "UpdatePort" which I think is what we want11:27
voidspacejam: except the addresses you provide overwrite the existing ones11:27
jamvoidspace: yeah11:27
voidspacejam: so effectively that would be manual management11:27
jamI don't see a way to "request a new one"11:27
jamvoidspace: I'm seriously considering manual management11:27
jamvoidspace: as that gives us a token11:28
jam"this IP address that I'm assigning is going to go to this LXC"11:28
perrito666I would really appreciate a review on this http://reviews.vapour.ws/r/238/ looks big but its not11:29
tasdomasmattyw, reviewed your PR - looks good11:29
mattywtasdomas, thanks very much11:40
TheMueHmm, did something changed on runTransaction()? My so far working migration now aborts since I merged master.12:08
TheMueSadly it doesn't says why it is aborting.12:08
fwereadeperrito666, LGTM with trivials12:16
fwereadeperrito666, good change, thanks12:16
perrito666fwereade: tx for the review12:20
fwereadejam, can I send you into #juju-gui to have a talk with frankban about something networky-looking please?12:20
* perrito666 visists a friend company for coworking for the day and he gets his space bar fixed12:20
fwereadejam, no public networks from the AllWatcher: http://pastebin.ubuntu.com/8703311/ (although I see a localhost with public scope..?)12:21
frankbanfwereade: yeah, but no ipv4 address with public scope12:23
fwereadefrankban, indeed, but localhost doesn't helpmost people very much ;p12:24
frankbanfwereade: yeah, and this breaks local quickstart usage12:24
fwereadefrankban, I'm sorry I can't give you my full attention right now -- dimitern may be on a swap day? otherwise jam or TheMue are most likely to have something relevant to say about networking12:25
fwereadefrankban, it sounds like a critical bug regardless, please go ahead and report it12:25
frankbanfwereade: this seems to be part of a more general problem with the mega-watchers: hazmat filed bug 138614312:27
mupBug #1386143: 1.21 alpha 2 broke watch api, no longer reports all services <api> <regression> <juju-core:Confirmed> <https://launchpad.net/bugs/1386143>12:27
fwereadefrankban, ok, cool, would you add it to that bug then (assuming status gives you what you want, but the watcher is broken?)12:28
frankbanfwereade: sure, and thanks12:29
fwereadewaigani, heads up: ^^ I think you/menn0/thumper have been in state lately?12:29
jw4fwereade: morning; were you saying you were going to do a bunch of refactoring in actions?12:32
fwereadejw4, have you been seeing the changes going by in uniter?12:33
fwereadejw4, it's an extension of that really -- trying to move context/runner related stuff out of uniter12:33
jw4fwereade, ah, you mean the hook context stuff?  I haven't caught up the last 24 hours yet :)12:34
jw4fwereade: sure  I remember now12:34
fwereadejw4, in particular, I think the validation stuff needs to move into the context package12:34
jw4fwereade: kk12:34
fwereadejw4, and the RunActions stuff needs at least *some* explicit testing beyond "RunAction fails on a non-action context"12:34
fwereadejw4, but, I'm getting there12:34
fwereadejw4, I'm 90% focused on structural stuff and testability12:35
jw4fwereade: you're on a tear... did you rest this weekend at all?12:35
fwereadejw4, I just managed to ignore everything else and focus on code for the week :)12:35
fwereadejw4, the weekend was mostly relaxed12:35
jw4fwereade: lol... good12:35
fwereadejw4, once I've got a load of the uniter stuff out of the way I should be able to rework the modes into an explicit hook queue12:36
fwereadejw4, it's what I "should" be doing right now but I need to clear the underbrush first iyswim12:36
jw4fwereade: yep, yep12:36
jamfrankban: is this on EC2? And do you have default-vpc available there?13:14
jam172.* looks suspiciously like the cloud-local addresses EC2 likes to give out13:14
jamah, I guess this was a local environ13:15
jamso not ec213:15
jamvoidspace: since you're on at this time, do you have a chance to look at the networking part of bug #1386143 ?13:16
mupBug #1386143: 1.21 alpha 2 broke watch api, no longer reports all services <api> <regression> <juju-core:Confirmed> <juju-gui:Triaged> <juju-quickstart:Triaged> <https://launchpad.net/bugs/1386143>13:16
frankbanjam: the addresses problem is on a local env, yes13:25
jamfrankban: so I think the issue is that the 10.* address *is* the public address on local13:25
frankbanjam: exactly, and it was previously13:25
voidspacejam: sure13:41
=== ChanServ changed the topic of #juju-dev to: https://juju.ubuntu.com | On-call reviewer: see calendar | Open critical bugs: 1386204
sinzuinatefinch, jam, can you find someone to fix a test that fails when we increment to alpha3? bug 138620413:49
mupBug #1386204:  metadataSuite.TestAsJSONBuffer fails when version is alpha3 <ci> <regression> <test-failure> <juju-core:Triaged> <https://launchpad.net/bugs/1386204>13:49
mgzeric wrote the test, but should be pretty simple for anyone to fix up13:51
jamvoidspace: so I'm guessing how we determine public vs private cahnged,13:51
voidspacejam: ok13:52
voidspace*looks* like it should be easy...13:52
voidspacea backup test13:57
voidspacejam: ah, I thought you were referring to 138620413:58
voidspacesinzui: jam: 1386204 we can fix by formatting the current version into the test data13:58
voidspacecurrently it's hardcoded and will fail every time the version changes13:59
voidspacesinzui: jam: I'll propose a branch for that13:59
sinzuithank you voidspace14:00
sinzuivoidspace, you might want to merge https://github.com/juju/juju/pull/970 to get the version change too.14:01
perrito666natefinch: ericsnow wwitzel3 getting there14:04
voidspacesinzui: I have a branch that works with trunk (trivial) and also passes with the version changed manually14:08
voidspacesinzui: I'll just propose it separately14:08
sinzuithank you voidspace14:09
voidspacehttps://github.com/juju/juju/pull/971/14:13
voidspaceThere's no reviewboard url yet14:13
voidspacenatefinch: care for a (hopefully) easy review?14:14
mgzvoidspace: seems fine to me14:14
voidspacemgz: cool, will this merge or do I need to force?14:14
* voidspace is grabbing coffee14:16
mgzit is the blocking bug, so you just need to mark as fixes-NNN14:17
perrito666ericsnow: natefinch wwitzel3 the call got unusable14:28
=== ChanServ changed the topic of #juju-dev to: https://juju.ubuntu.com | On-call reviewer: see calendar | Open critical bugs: 1386204 1385289
sinzuinatefinch, jam I have escalated Bug #1385289 because the last 8 devel revisions tested failed because upgrades consistently timeout on all providers...including stable and devel maas14:37
mupBug #1385289: local storage migration is very slow <ci> <regression> <test-failure> <upgrade-juju> <juju-core:Triaged> <https://launchpad.net/bugs/1385289>14:37
natefinchperrito666: np14:38
voidspaceericsnow: I didn't see a reviewboard review created for this PR14:44
voidspaceericsnow: https://github.com/juju/juju/pull/97114:44
ericsnowvoidspace: checking14:44
ericsnowvoidspace: looks like github is rate-limiting the requests14:46
ericsnowvoidspace: I'll see if I can work around that better (may not happen immediately)14:47
voidspaceericsnow: does it just drop them you think?14:47
voidspaceericsnow: ok, np14:47
ericsnowvoidspace: I'm thinking it drops requests ("API rate limit exceeded ...")14:48
ericsnowvoidspace: I should be able to work around that though14:48
ericsnowvoidspace: did it not create a review request at all?14:49
voidspaceericsnow: as far as I can tell not14:49
voidspacesinzui: how can tell which revision was used for the 1.21alpha2 release?14:49
voidspacesinzui: looking for the version number change in the commit history?14:49
ericsnowvoidspace: bummer (I would have expected it to make one)14:49
ericsnowvoidspace: in the meantime you can use rbt post14:50
voidspaceericsnow: no need on this occasion, but thanks14:50
ericsnowvoidspace: k14:50
sinzuivoidspace, https://github.com/juju/juju/releases14:50
sinzuivoidspace, reports.vapour.ws will one day republish that ^ info14:51
voidspacesinzui: ah, cool - thanks14:51
voidspaceI checked my tags in my local clone, but I don't have them all14:52
voidspacemaybe this is a git thing14:52
voidspaceI have the major release tags, but not the alphas14:52
voidspacewell, minor release tags14:52
voidspaceah14:53
voidspacegit pull upstream master  --tags14:53
voidspacenow I have them14:53
voidspacesinzui: my fix for issue 1386204 landed14:55
voidspacesinzui: I've marked it as fix committed14:55
sinzuivoidspace, rock14:55
TheMueGna, first needed to find why PR failed (overlapping change regarding DocID) and now the fixes block it. :)15:34
voidspaceIs anyone else looking at bug 138614315:47
voidspacehttps://bugs.launchpad.net/juju-core/+bug/138614315:47
mupBug #1386143: 1.21 alpha 2 broke watch api, no longer reports all services <api> <regression> <juju-core:Triaged> <juju-gui:Triaged> <juju-quickstart:Triaged> <https://launchpad.net/bugs/1386143>15:47
voidspacefrankban: ping15:50
voidspacenow do I get the megawatcher output?15:58
voidspaceBug report above states "Probably a side effect of this regression: on local environments, the mega-watcher for machines no longer reports the ipv4 address in the public scope"15:59
frankbanvoidspace: pong16:02
voidspacefrankban: hey16:02
voidspacefrankban: see above16:02
voidspacefrankban: I'd like repro instructions for getting the mega-watcher log16:02
voidspacefrankban: as you reported for bug 138614316:03
mupBug #1386143: 1.21 alpha 2 broke watch api, no longer reports all services <api> <regression> <juju-core:Triaged> <juju-gui:Triaged> <juju-quickstart:Triaged> <https://launchpad.net/bugs/1386143>16:03
frankbanvoidspace: ok16:03
frankbanvoidspace: do you have quickstart installed? otherwise I can quickly write a script to see the mega-watcher output16:05
voidspacefrankban: I don't have it installed no16:06
voidspacefrankban: I'm happy to install it if it helps16:06
voidspaceis it just from juju-plugins?16:06
frankbanvoidspace: no, ok I am adding dupe instraction re quickstart to the bug16:07
voidspacefrankban: cool, thanks16:07
voidspaceOk, I now have juju-quickstart installed16:16
voidspacefrankban: so, running juju-quickstart dies with:16:19
voidspacehttp://pastebin.ubuntu.com/8706138/16:19
voidspacefrankban: is this the error you're getting?16:19
voidspaceI'd still like to be able to see the megawatcher output directly16:20
frankbanvoidspace: no, this is a very old version of quickstart16:20
voidspacefrankban: hah, ok16:20
voidspaceI need to add the right ppa then16:20
voidspaceI assumed I had it already16:20
voidspacefrankban: is the version in the juju-stable ppa correct?16:20
frankbanvoidspace: yeah, added instructions for that too in https://bugs.launchpad.net/juju-core/+bug/138614316:20
mupBug #1386143: 1.21 alpha 2 broke watch api, no longer reports all services <api> <regression> <juju-core:Triaged> <juju-gui:Triaged> <juju-quickstart:Triaged> <https://launchpad.net/bugs/1386143>16:20
voidspaceor should I get from source16:20
voidspacefrankban: thanks16:20
frankbanvoidspace: did not mention it, but the current version in the PPA is juju quickstart v1.4.416:21
frankbanvoidspace: FWIW sometimes I use this quick and dirty script to observe the juju megawatcher: http://pastebin.ubuntu.com/8706233/16:25
voidspacefrankban: awesome, thanks16:26
* perrito666 just now realizes that the build is blocked17:37
voidspacefrankban: so I've relinked the /usr/bin/juju* binaries to my built ones (so I can use juju-quickstart) and I'm doing git bisect18:00
voidspacesee if I can tell where this broke18:00
voidspacefrankban: as the bug is reported against alpha2 I'm assuming alpha 1 is known good18:00
frankbanvoidspace: I am not sure about that18:03
frankbanvoidspace: FYI the env var JUJU can be used in quickstart to override the JUJU binaty location, so that you don't have to relink the distro juju18:03
frankbanbinary even18:04
voidspacefrankban: hah18:04
voidspacefrankban: that would be better...18:04
voidspacefrankban: so we're not sure that 1.21 alpha 1 is good18:05
voidspacefrankban: so I need to go back and find the last good release and bisect from there18:05
frankbanvoidspace: I did not test that18:05
voidspacefrankban: ok, thanks18:06
tvansteenburghvoidspace: i've been using deployer with alpha1 since it came out w/ no problem18:06
frankbannp, thank you for looking at that18:06
tvansteenburghvoidspace: (fwiw), i think this broke in alpha218:06
voidspacetvansteenburgh: cool, thanks18:07
voidspacetvansteenburgh: I'm mid-bisect so stopping to double check would be "inconvenient"18:08
voidspacealthough I'll probably check on my laptop anyway18:08
voidspacewasting time on a bisect that can never work would be *worse*18:08
frankbanvoidspace: I suppose you already noticed that, but FYI the addresses bug (quickstart) is only part of the bigger problem (and we assumed to be related but we are not really sure), the bigger problem being entities (e.g. services) not listed in the mega-watcher responses18:08
frankbanvoidspace: if you are tackling also that, then my watch script can be useful while bisecting, e.g. bisect, bootstrap, deploy one or two services, run the script to see the watcher response reflect the status, etc.18:09
hazmattvansteenburgh, alpha2 is the breaker18:24
hazmatalpha1 is fine18:24
hazmattvansteenburgh, this has nothing to do with deployer per se18:24
hazmattvansteenburgh, this is just core having broken the all|mega-watcher18:24
tvansteenburghhazmat: understood, i was just trying to help voidspace limit the breadth of his bisect :)18:24
hazmatright18:25
hazmatvoidspace, you have a script already?18:25
=== ChanServ changed the topic of #juju-dev to: https://juju.ubuntu.com | On-call reviewer: see calendar | Open critical bugs: 1385289
hazmatthe issue is that you'll need to cross grade your api servers to match your bisect or bootstrap per.. ick18:25
voidspacehazmat: no, but it's not a comlex set of steps18:50
voidspacehazmat: I'll destroy-environment and go install ./... in between each bisect18:50
voidspacehazmat: (had to stop - restarting now)18:51
voidspacehazmat: it's building a local environment, so not complex18:51
voidspacehazmat: I'll probably script it18:51
natefinchperrito666: your restore worker is LGTM19:02
perrito666natefinch: tx, I just got power back19:47
perrito666apparently 40°C exceeds what the power converters can handle19:47
ericsnowwhat would cause "state changing too quickly; try again soon" when running a transaction?19:50
wwitzel3ericsnow: not sure, the only place that error comes from is the txn transactionRunner.Run19:53
perrito666ericsnow: wwitzel3 most likely too many retries to run a tx.Op with no success19:53
ericsnowwwitzel3: yeah, and I'm not exactly sure what I did to change the existing behavior19:54
wwitzel3ericsnow: and the body of that is just a for loop that used nrRetries (set to 3) .. so after 3 attempts, the if none of the return paths in the for loop hit, you get that error.19:54
ericsnowperrito666: what does the retries?19:54
cmarsericsnow, that error is often (though not always) a bug in the logic for state changes.19:54
ericsnowcmars: I'm introducing a separate DB just for backups and running backups-related queries against that19:55
cmarsericsnow, a transaction that fails to maintain the assert condition for the duration of the operation will error out that way19:56
ericsnowcmars: I'll look into that19:56
cmarsericsnow, for example your operation negated the assert condition, that'd be a logic bug19:56
cmarsericsnow, could also be a concurrency issue, in which you're requiring conditions that fail to converge when you'd expect19:57
fwereadecmars, hey, did you come to a conclusion about service-owner?20:02
cmarsfwereade, service-owner.. the context escapes me atm20:02
fwereadecmars, we added it to hook contexts as part of the initial abortive metrics spike20:03
fwereadecmars, AFAIK nobody uses it20:03
fwereadecmars, I'd really like to just delete it and hope nobody notices20:03
fwereadecmars, also, would you confirm that we'll be dropping the allow-add-metrics-only-in-some-hooks? because I'd like to drop it right now ;p20:05
=== viperZ28_ is now known as Viperz28
thumpernatefinch: hey20:31
natefinchthumper: yo coming20:31
natefinchwwitzel3: lxc meeting?20:33
perrito666rick_h_: how do you remove the tool bar form gvim?20:57
natefinchperrito666: install emacs ;)20:57
katcodid someone say emacs?20:59
natefinchheh21:01
perrito666natefinch: sadly I only have 10 fingers in my hand21:01
katcono worries, they sell foot pedals now!21:01
menn0perrito666, katco: I use Emacs with Evil which reduces the need for non-standard appendages21:08
menn0https://gitorious.org/evil/pages/Home21:08
menn0it also requires that your brain has been rewired for Vim bindings but mine already was :)21:08
menn0it's a really well written extension anyway21:08
katcomenn0: i've used that when vim ppl try to help me out at my keyboard21:10
katcomenn0: i hear good things21:10
natefinchevidenly redhat is branching out.  My daughter played with some of these at school: http://2.bp.blogspot.com/-3c1hIpxVvms/T5CvbwxJV7I/AAAAAAAABZ0/xDYY4yOkm9E/s1600/easter+scentos.jpg21:15
waiganithumper/menn0 what should I test for when a machine has not instanceid and there is no instanceData doc?21:18
menn0waigani: I think so. The test should ensure that a warning is logged.21:18
waiganimenn0: okay, cheers21:19
menn0waigani, thumper: bug 1386143 could be due to migration changes ...21:34
mupBug #1386143: 1.21 alpha 2 broke watch api, no longer reports all services <api> <regression> <juju-core:Triaged> <juju-gui:Triaged> <juju-quickstart:Triaged> <https://launchpad.net/bugs/1386143>21:34
alexisbwaigani, hey there21:35
alexisbI need to chat with mramm before we meet, mind if I am a few minutes late?21:36
thumpermenn0: hmm... ya think?21:39
menn0waigani, thumper: in fact I think we already fixed that bug but it didn't make alpha2. this is probably due to the doubled up env UUID prefixing in the allwatcher.21:39
thumperah...21:40
fwereadewallyworld, ping21:40
thumpersinzui: what is the process for broken alphas?21:40
waiganialexisb: when are we meeting?21:40
menn0thumper: the fix is part of the machines colleciton change21:40
thumpersinzui: do we just try the next alpha?21:40
* thumper nod21:40
thumpers21:40
menn0thumper: shall I dig in to this a bit?21:41
wallyworldfwereade: am in a meeting, will ping soon21:41
thumpermenn0: yeah, have a quick dig and see if the machine fixes did fix it21:41
cmarswallyworld, ping me as well when you're done21:41
menn0thumper: k21:41
waiganialexisb: just ping we when you're ready21:42
fwereadewallyworld, cool, talking to cmars about the interactions between metrics and status21:44
fwereadewallyworld, rough eta?21:44
fwereadethumper, menn0, waigani: o/21:44
thumpero/21:44
wallyworldfwereade: 30 mins?21:44
waiganifwereade: hey21:44
fwereadethumper, menn0, waigani: hazmat had a bug about AllWatcher not notifying about important stuff; frankban had probable confirmation; can I rest assured that you guys are loking into  it/on it?21:45
waiganifwereade: sounds like the above bug?21:46
thumperfwereade: yeah, menn0 is looking into it now21:46
fwereadewaigani, menn0, thumper: yay, you're already on it, I am redundant :)21:46
sinzuithumper, we fix them in the next alpha. We want to release alpha3 this week21:49
fwereadewallyworld, cmars: please talk when you're both free21:50
fwereadewallyworld, cmars: will try to be back in half an hour, if not I think you have enough to talk about21:50
* fwereade goes to play some lego star wars21:51
alexisbwaigani, sent you a reschedule22:06
waiganialexisb: sweet, thanks22:06
waiganimenn0: http://reviews.vapour.ws/r/177/22:08
menn0waigani: I'm going to be a while... looking at this regression22:09
waiganimenn0: all good, I'll move onto sequences22:10
menn0waigani: sounds good. that's not going to rely on the instancedata branch22:10
waiganimenn0: I'll put my initials next to what I'm working on in the MESS doc22:10
menn0waigani: good idea22:11
menn0waigani: I'll do the same22:12
menn0waigani: remember to add LK cards as you go as well22:12
waiganimenn0: sigh, I'll add those now. I added your username in the MESS doc22:13
menn0waigani: cheers22:13
voidspac_menn0: ping22:20
menn0voidspac_: hey22:20
voidspac_menn0: hi, how's it going?22:20
voidspac_menn0: are you working on 1386143?22:20
menn0voidspac_: not too bad22:21
menn0voidspac_: I am indeed22:21
menn0voidspac_: I suspect it's already been fixed by Jesse and I22:21
voidspac_menn0: I started to look at it - my intention was to do a git bisect22:21
ericsnowvoidspac_: thanks for taking care of that backup metadata test :)22:21
menn0voidspac_: we noticed the problem and fixed it but the branch didn't land before alpha2 was fixed22:21
voidspac_menn0: but following the repro instructions on the bug I couldn't get juju-quickstart working even with 1.20!22:21
voidspac_menn0: hah22:21
menn0voidspac_: s/fixed/cut/22:22
voidspac_menn0: what is the problem?22:22
voidspac_ericsnow: no problem, easy fix22:22
menn0voidspac_: a buggy change introduced as part of env UUID migrations22:22
voidspac_menn0: ah right, can I look at your branch?22:22
voidspac_menn0: I started looking through the diff between 1.21 alpha 1 and alpha 222:23
voidspac_it's about 8000 lines or something...22:23
menn0if it's what I think it is then the fix is already merged.22:23
menn0voidspac_: it'll be part of 69c60b6fb293a7e6ea3a32d6365cf5eccd257fa522:25
voidspac_menn0: doesn't look like anything landed on trunk22:25
menn0voidspac_: the bottom of megawatcher.go22:25
voidspac_menn0: ah, right - so trunk should already be unbroken22:26
menn0voidspac_: the docID method was adding the environment UUID onto ids that already had it22:26
voidspac_menn0: I'll try it with the repro instructions22:26
menn0voidspac_: I'm doing the repro with master now22:26
voidspac_menn0: cool22:27
menn0voidspac_: looking better so far. there's unit deltas coming out of the allwatcher with master where there wasnt with alpha222:32
rick_h_perrito666: https://github.com/mitechie/pyvim/blob/master/.vimrc#L11622:32
menn0voidspac_: quickstart works with master so it looks like the problem is fixed \o/22:34
voidspac_menn0: awesome, great news22:34
wallyworldfwereade: sorry, free now, too late?22:35
menn0voidspac_: I'll try one more thing to confirm and then will update the ticket22:35
wallyworldcmars: hi, did we need to talk?22:36
fwereadewallyworld, cmars: heyhey22:37
cmarswallyworld, yeah, wanted to catch up on status stuff22:37
wallyworldsure22:37
cmarsand other things22:37
wallyworldhangout?22:37
fwereadeone of you statr one please :)22:37
wallyworldwe can use this one https://plus.google.com/hangouts/_/canonical.com/ian-tim22:38
fwereadewallyworld, joined22:39
wallyworldfwereade: cmars posted one aove22:39
wallyworldhttps://plus.google.com/hangouts/_/gqzen7cwgsho4s6fxwqrgoc7dma?hl=en22:39
=== hatch__ is now known as hatch
=== hatch is now known as Guest35185
menn0voidspac_, thumper, waigani: regarding bug 1386143... quickstart and the GUI are definitely working with master. still doing a few more checks though.23:00
mupBug #1386143: 1.21 alpha 2 broke watch api, no longer reports all services <api> <regression> <juju-core:Triaged by menno.smits> <juju-gui:Triaged> <juju-quickstart:Triaged> <https://launchpad.net/bugs/1386143>23:00
waiganimenn0: good to hear!23:00
thumpermenn0:  good23:03
thumperthanks23:03
waiganimenn0/thumper manual upgrade testing, deploy wordpress and mysql before upgrade?23:04
waiganianything else?23:04
menn0waigani: I have a script which also sets up some subordinate units23:05
menn0waigani: I think I've sent it to you before23:05
waiganimenn0: yeah I just remembered that, looking for it now...23:05
menn0waigani: that's what I've been using23:05
waiganithumper/menn0: http://reviews.vapour.ws/r/269/23:20
perrito666katco: but tell me, does you editor clean and refreshes like mine? https://dl.dropboxusercontent.com/u/7254758/Photo%2027-10-14%2019%2017%2054.jpg23:28
perrito666and no, I did not go to te supermarket just for the sake of this discussion23:29
waiganiperrito666: lol23:30
rick_h_menn0: <3 glad to hear about bugs already fixed23:59

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