/srv/irclogs.ubuntu.com/2014/03/06/#juju-dev.txt

davecheneythumper: wallyworld_ axwalk (absent): trying to get you ppc testing resources asap00:01
wallyworld_oh?00:01
wallyworld_we doing some ppc work?00:02
davecheneywallyworld_: yes, it turns out I know things that you don't know (yet)00:06
wallyworld_that wouldn't be hard to do00:06
thumperwallyworld_: oh hai00:38
wallyworld_yello00:38
* thumper is munching00:39
thumperwallyworld_: you'll get all the goss at our meeting00:39
waiganiwallyworld_: can I pick your brain? I'm finding it hard to understand TestWatchEnvironConfig in state_test.go00:40
wallyworld_ok00:40
waiganimight be easier via a hangout, but I'll try via irc first00:40
waiganiIt sets "default-series" to "another-series" and then uses s.State.WatchEnvironConfig to grab the config object.00:40
* wallyworld_ looks00:40
waiganithen it tests to that the change DID NOT take effect00:41
waiganithis fails as it did take effect, as would be expected00:41
wallyworld_WatchEnvironConfig doesn't get the config, it gets a watchr00:42
waiganiso then, I changed the test to assert that the change did take place and that failed too00:42
wallyworld_s.State.EnvironConfig() gets the config00:42
waiganiyep00:43
wallyworld_you said above it got a config object00:43
wallyworld_i just wanted to clarify :-)00:43
waiganiso WatchEnvironConfig returns 'got'00:43
waiganiwhich is the (changed?) config00:43
waiganiit then compairs that against state:00:44
waiganic.Assert(got.AllAttrs(), gc.DeepEquals, cfg.AllAttrs())00:44
wallyworld_no, w.Changes() returns goy00:44
wallyworld_got00:44
wallyworld_w := s.State.WatchEnvironConfig() returns a watcher00:44
waiganisorry, yes the point is the same though00:44
wallyworld_sort of00:44
waiganiso Changes returns a changed config object right?00:45
waigani*w.Changes()00:45
wallyworld_yes, in this case i think so. it doesn;t always, it depends on the watcher. sometimes it returns an empty struct. let me check00:46
waiganiso why would the test want to assert that there was no change by compairing the changed cfg with state cfg?!?00:46
wallyworld_it doesn't00:47
wallyworld_the assertNoChange method is different00:47
wallyworld_case got := <-w.Changes():00:47
wallyworld_c.Fatalf("got unexpected change: %#v", got)00:47
waiganiI'm talking about the c.Assert(got.AllAttrs(), gc.DeepEquals, cfg.AllAttrs()) line00:47
wallyworld_is the no change check00:47
wallyworld_that's for testing changes, not no changes00:48
wallyworld_you said "no change"00:48
waiganiit fails because the changed cfg != state cfg00:48
wallyworld_in which case the changes haven't been applied00:49
waiganibut they have and it fails00:49
wallyworld_and/or sent in the event00:49
wallyworld_you have some code I can look at?00:50
waiganiyep00:50
waiganiumm, should I put a comment next to this test, finish my branch and propose it (even though it has failing tests?)00:51
wallyworld_you can create a wip merge  proposal00:51
wallyworld_and ask me to look at that00:51
waiganioh, okay00:51
wallyworld_use the -wip option for lbox i think00:51
wallyworld_don't worry about finishing anything, just propose00:52
wallyworld_and i can easily see the current state of it00:52
waiganiyeah? Okay00:52
wallyworld_although i have a meeting in 8 minutes00:52
waiganioh, well, shall we aim for after our standup?00:52
wallyworld_because it is wip, it won't be marked as ready for review00:53
wallyworld_after standup works00:53
waiganigreat, thanks :)00:53
wallyworld_propose whenever though and i might get to see if before standup00:53
waiganiwallyworld_: could you please take a look at TestEnvironConfigWithoutAgentVersion ( you can now set an agent version - to allow upgrades) and TestWatchEnvironConfig.01:58
wallyworld_ok01:59
waiganiwallyworld_: thank you :)01:59
wallyworld_waigani: i can't see TestEnvironConfigWithoutAgentVersion in the diff02:02
wallyworld_what file is it in?02:02
wallyworld_waigani: hi, you back? i can't see TestEnvironConfigWithoutAgentVersion in the diff. what file is it in?03:47
waiganiwallyworld_: go/src/launchpad.net/juju-core/state/initialize_test.go03:47
wallyworld_oh, i was looking in the diff03:48
wallyworld_so that is an existing test. does it fail?03:49
waiganiwallyworld_: yep - I was just writing that03:49
wallyworld_where does it fail?03:49
waiganiwallyworld_:03:50
waiganiinitialize_test.go:142:03:50
waigani    c.Assert(err, gc.ErrorMatches, "agent-version must always be set in state")03:50
waigani... value = nil03:50
waigani... regex string = "agent-version must always be set in state"03:50
waigani... Error value is nil03:50
waiganii.e. you can no set the agent-version03:51
wallyworld_that test is checking that there's an error if agent-version attempts to be deleted03:52
wallyworld_so i would expect the test to still pass?03:52
wallyworld_ie that it is failing is a problem03:52
waiganithere are two parts arn't there? I think just the second part fails03:52
waiganiwhere it says something about setting a bad version03:53
waiganiline 13803:53
axwthere's two tests in there: initialise with missing agent-version should fail, initialise with agent-version and try to delete it should fail03:54
wallyworld_the line numbers are different for you vs me, but i think i see where you mean now03:54
axwwaigani: link to the CL please?03:55
waiganiaxw: ah thanks03:55
wallyworld_waigani: i'm not seeing what your question is03:55
wallyworld_the test as written is fine03:56
axwwaigani: if I were a guessing man, I'd say something happened to checkEnvironConfig in your CL03:56
waiganiaxw: https://codereview.appspot.com/70190050/03:56
waiganiwallyworld_: axw's outline of the intention of the tests is what I was after03:56
wallyworld_oh03:56
wallyworld_sorry03:56
wallyworld_i thought you were asking something else03:57
waiganinp, they are failing, so I just needed to understand what the expected / correct behaviour was03:57
wallyworld_in that case what andrew says is correct03:57
waiganiso I can see if 1. tests need to change or 2. my code needs to change03:57
waiganiand it looks like it is no. 203:58
wallyworld_yeah, in this case03:58
wallyworld_i misunderstood what you were after03:58
waiganino no, all good. Thanks for taking the time :)03:59
wallyworld_well, i didn't help, so no need to thank me :-)03:59
wallyworld_i think you should ave said "thanks for nothing" :-)04:00
waiganilol04:00
waiganiaxw: the main business logic is in state/state.go04:00
axwyep, looking now04:01
waiganiI'm still polishing tests etc but the general gist is there04:01
waiganiah, my girl just jumped off the ice - I'll be back online tonight04:01
axweep. later04:02
bigjoolswallyworld_: ping07:17
bigjoolswallyworld_: unping07:17
=== Tribaal is now known as Tribaal_
waiganiaxw: thanks for the review. It all makes sense and I agree.08:38
axwwaigani: cool, no worries08:38
waiganithumper and I looked at ChangeEnvironConfig today and we both thought it could go08:38
rogpeppefwereade:  https://codereview.appspot.com/69600043/09:17
voidspacehttps://codereview.appspot.com/7149004509:28
dimiternvoidspace, description please?09:44
natefinchmorning all10:06
mgzmorning nate!10:06
mgzjoin the weekly hangout?10:06
natefinchmgz: thanks10:07
axwwallyworld_: joining?10:08
mgzhttps://bugs.launchpad.net/juju-core/+bugs?field.tag=regression10:21
mgzhttps://launchpad.net/juju-core/+milestone/1.17.510:21
mgzhttps://launchpad.net/juju-core/+milestone/1.18.010:22
wallyworld_fwereade: i'd like you to look at these because there's a subtle assumption about how major upgrade version is determined https://codereview.appspot.com/69890053/ https://codereview.appspot.com/71920043/10:22
voidspacedimitern: do you mean on the code review or somewhere else?10:24
dimiternvoidspace, on the code review yeah (or CL as it's usually referred to)10:24
voidspacedimitern: what does CL stand for?10:24
dimiternvoidspace, that's a good question - commit .. something change log perhaps?10:25
voidspacedimitern: heh, ok - thanks10:25
wallyworld_axw: i forgot to ask - i think there may be some deprecated config options now that the storage stuff has been removed? eg share-storage-port?10:48
=== Tribaal_ is now known as Tribaal
waiganiaxw: can I run something past you?11:01
jamaxw: did you get a chance to look at https://bugs.launchpad.net/ubuntu/+source/juju-core/+bug/1284127 ?11:16
rogpeppevoidspace: http://godoc.org/github.com/juju/ratelimit11:30
voidspacerogpeppe: thanks11:32
voidspacedimitern: https://codereview.appspot.com/7149004511:32
dimiternvoidspace, you've got a review11:37
axwwallyworld_: shared-storage-port can be deleted11:55
axwwaigani: you can, but I'm making and about to eat dinner11:55
axwjam: was just about to11:55
wallyworld_axw: ok, i'll add it to the upgrader. anything else?11:55
axwwallyworld_: not that I can think of11:56
wallyworld_ok, ta11:56
waiganiaxw: ok, feel free to answer tomorrow but here is the question11:56
waiganiin firewaller_test.go setGlobalMode rog (rogpeppe?) has a TODO that it should not be possible to set the firewalling mode after an environment has been bootstrapped11:58
waiganithat TODO is now done. The validation in State does not allow it.11:58
waiganinow, there are a bunch of tests in firewaller_test.go that start by calling setGlobalMode11:59
waiganiso is there a valid way to setGlobalMode or do I delete all the tests that relied on that setting? The latter seems drastic and I don't understand the details of the tests to feel confident doing so.12:01
natefinchrogpeppe: you need to update the readme on ratelimit12:01
waiganiaxw: ^ (and enjoy your dinner)12:01
axwwaigani: thanks, will take a look after dinner.12:01
waiganiGood luck 1.8 sprinters!12:03
axwjam: I've updated the bug, we can just close it. not sure what status to give it... can you please take a look when you have a moment?12:08
axwjam: re sshstorage, we don't necessarily need to create the temp dir the same, but it should ideally ignore the .tmp that filestorage creates12:15
natefinchrogpeppe: ratelimit also needs a license file12:19
jamaxw: so the list get/put stuff is pretty superfluous to be honest. List() doesn't list dirs anyway, so we don't accidentally walk there12:20
jamaxw: so, I'm pretty sure my trapping of .tmp is pretty "we don't actually need to do this because it isn't exposed already". Do you feel its really worth following up on?12:32
jam(as in, someone knowing the secrets might be able to see a file that was in progress before it finished the atomic put, but it doesn't seem to actually leak anything)12:33
axwjam: yeah I suppose so, I'm being a bit anal. ignore that then - I will have a look at your updates after dinner12:35
jamaxw: thanks12:35
dimiternrogpeppe, https://codereview.appspot.com/70010045/12:37
bloodearnesthazmat: playing again wuth juju-lxc, installed git and cpu-checker on the base img, but still fail to come up, get this in the lxc logs:13:13
bloodearnestlxc-start 1393886691.822 ERROR    lxc_cgfs - Device or resource busy - failed to set memory.use_hierarchy to 1; continuing13:13
cjohnstonrogpeppe: mornin.. what ever happened with the solution you thought that you had for the watcher bug?13:30
rogpeppecjohnston: i hope to have something done today - it requires setting up something to poll the connection, so it's not totally trivial13:31
cjohnstonrogpeppe: ack13:31
hazmatbloodearnest, haven't seen that before13:34
bloodearnesthazmat: ack, will keep digging13:39
hazmatbloodearnest, i'd raise that hallyn or stgraber on #ubuntu-server13:40
hazmatraise that to13:40
bloodearnesthazmat: yep, digging a little more first13:40
jamnatefinch: sorry if I DC'd, I accidentally hit the turn-off-wireless when looking for the "turn-on-monitor" button14:21
natefinchjam: heh no problem14:26
natefinchmgz: lp:~natefinch/juju-core/037-EnsureMongo14:36
natefinchmgz: I need to push up one more change.... evidently missed updating a test.  won't take long.14:48
dimiternfwereade, https://codereview.appspot.com/70010045/diff/20001/worker/deployer/simple.go?column_width=8014:49
natefinchmgz: fixed the test.  My test run looks pretty good, just mongo tests that are failing that always fail for me, so it's probably fine to merge.14:58
mgznatefinch: ta15:01
natefinchmgz: no, thank you.15:02
dimiternrogpeppe, https://codereview.appspot.com/70010045/15:11
fwereadevoidspace, would you take a look at https://codereview.appspot.com/71920043/ please? looks like it may conflict15:25
voidspacefwereade: looking15:25
mramm2anybody from core available for the cross team meeting?15:36
fwereademramm2, arrgh, might be tricky to find a room15:38
fwereadenatefinch, would you represent us please?15:39
natefinchfwereade: was just going to offer15:39
mramm2I need answers from you guys15:39
mramm2like when will we get 1.1815:39
natefinchmramm2, fwereade:  not sure I'll have all the answers15:39
mramm2natefinch: can you join anyway?15:40
natefinchmramm2: certainly15:40
natefinchmramm2: link?15:40
natefinchfwereade: I can just ask you to feed me answers ;)15:41
fwereademramm2, natefinch: I *think* we're on track for 1.18 tomorrow15:41
fwereademramm2, natefinch: it remains our highest priority15:41
mramm2fwereade: awesome15:42
mramm2fwereade: are you planning to break manual bootstrap for 1.18?15:42
fwereademramm2, we are not15:42
mramm2cool!15:42
mramm2great!15:43
fwereademramm2, agreed with abentley that a warning when we bootstrap using config from a .jenv is sufficient mitigation15:43
mramm2cool!15:46
mgzhttps://projects.puppetlabs.com/issues/1848 go \n15:51
=== Ursinha is now known as Ursinha-afk
voidspaceanyone able to give [yet another] final look over at: https://codereview.appspot.com/71490045/15:55
jammramm2: did you seem my request for wwitzel3 to get a Kanban account? mfoord already has one, but we'll need to plan some capacity around new hires15:59
mramm2I added wayne to kanban16:00
mramm2but for some reason haven't been able to get the add users to board screen to load16:00
mramm2so have not yet given him permissions on the core board16:00
mramm2and now he has board access16:01
mramm2also RE steve gorge's query LKK is managed by Nick Tait16:03
=== Ursinha-afk is now known as Ursinha
mramm2can you make sure jam sees that the LeanKitKanban admin is Nick Tait?16:09
mramm2(in the main juju channel)16:09
natefinchmramm2: I'll make sure he sees it16:10
mramm2cool16:10
mramm2I meant to type that in another window...16:11
mramm2talking to too many people at once!16:11
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
dimiternrogpeppe, updated https://codereview.appspot.com/7001004516:31
rogpeppedimitern: https://bugs.launchpad.net/juju-core/+bug/128418316:34
_mup_Bug #1284183: jujuclient.EnvError: <Env Error - Details:  {   u'Error': u'watcher was stopped', u'RequestId': 9, u'Response': {   }} <api> <status> <juju-core:Triaged> <https://launchpad.net/bugs/1284183>16:34
mgznatefinch: you appear to have a text conflict in your branch, otherwise you'd be my guinea pig16:57
natefinchmgz: I saw, working on it.  Getting test failures after I fix the conflict and trying to figure out why17:09
sinzuiHi natefinch . I have a branch that addresses some of my incompetence and naivety. Do you have an few minutes to review it and check my thinking? https://codereview.appspot.com/7210004317:31
natefinchsinzui: I didn't realize you could fix that with code ;)17:31
fwereadedimitern, frankban, if you have a moment would you please take a quick look at https://codereview.appspot.com/49960047/ ? most has already been reviewed, but I hit some of the api server stuff17:32
dimiternfwereade, looking17:33
sinzuioh dear. natefinch I think I need to understand this bug. https://bugs.launchpad.net/juju-core/+bug/1288873 . We compile a 32bit juju client on a 64bit 2012 Windows server. We install it on the same machine. Is win7+64bit unable to install 32bit?17:37
_mup_Bug #1288873: Installing juju windows binarys fails on windows 7 <windows> <juju-core:New> <https://launchpad.net/bugs/1288873>17:37
natefinchsinzui: looking17:37
natefinchsinzui: 32 bit binaries should work regardless of the bitness of the OS they're built on17:38
natefinchsinzui: and 32 bit will work on 32 or 64 bit windows17:38
sinzuiIt certainly does on win 2012 server17:39
=== lazyPower_ is now known as lazyPower
sinzuiI will start a win7 64 bit instance and try the install.17:39
natefinchsinzui: the error message could be a red herring.  Windows isn't exactly known for being terribly accurate with its messages17:39
frankbanfwereade: looking17:43
natefinchsinzui: makefile changes reviewed btw17:53
sinzuithank you natefinch17:57
mgzsinzui: I killed the bot merge, am still playing18:00
sinzuimgz, understood18:01
dimiternfwereade, reviewed18:01
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
mgznatefinch: I want to land you branch, but it still seems to have conflicts19:02
mgz(possibly not your fault, things have been landing)19:03
mgznatefinch: either way, the bot is up so you should be able to just set the approved bit when ready19:07
wallyworldsinzui: hiya20:40
sinzuihi wallyworld20:41
wallyworldsinzui: do you have joyent creds you can share with me so i can help diagnose a live test failure?20:41
natefinchjust take it, you stupid bot20:45
* thumper is now confused as to how to add a dependency to the bot21:21
wallyworld_thumper: for now, the bot doesn't read the dependencies file - you need to do it by hand21:33
wallyworld_if i recall correctly21:34
thumperthe email from mgz said that it can be done by config21:34
thumperbut I didn't find it clear21:34
wallyworld_oh, i haven't read that fully yet - you used to have to do it by hand21:34
thumpergah...21:48
thumperI need to start landing shit21:48
* thumper just racks up some dependent branches21:49
waiganithanks for nothing21:52
thumperwaigani: eh?21:53
waiganithumper: I was trying to find a conversation between wallyworld_axw and I yesterday. My keyword search was "thanks for nothing", but I put it into the wrong box!22:00
thumperhaha22:00
waiganiyeah, lol22:00
waiganijust randomly being rude on IRC, you know me (sigh)22:01
waiganithumper: do you know what time axw comes on? I've got a few questions for him.22:02
thumperwaigani: normally around 2pm our time22:02
waiganioh, that late. Can I run the question past you?22:02
thumpersure22:03
waiganihttp://pastebin.ubuntu.com/7046704/22:04
waiganiline 1322:04
waiganias there is no policy, there is no validation and agent-version can be reset22:05
waiganiah no, ignore me. It should be deleting the agent-version that fails. I'll update test.22:07
thumperpleased to be of service :)22:10
waiganithanks for nothing ;)22:20
thumperwaigani: sorry, no idea on your stuckness23:00
waiganithumper: :(23:00
waiganithumper: I've got a bunch of other tests to fix while I wait for axw, thanks for taking a look23:01
* thumper nods23:04

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