[00:00] or make StreamsVersion private [00:00] either way [00:00] once it's public people will starting using it for things [00:00] think of the version.Version cluster fuck === Ursinha is now known as Ursinha-afk [00:06] davecheney: I did [00:06] wait [00:06] davecheney: expand that [00:06] perrito666: i cannot see any comments on reviewboard [00:07] this may not be your fault [00:07] it could be RB [00:07] davecheney: which one, I sent you two emails [00:07] perrito666: did you place any comments on http://reviews.vapour.ws/r/18/ [00:07] no, I just LGTMd, I see you added a comment, I am checking what I missed now [00:07] I did add several comments to 33 though [00:08] perrito666: cool [00:08] to restate, this is not a critisism [00:08] just checking that i'm not missing things recorded in reviewboard [00:08] i find it's interface as comfortable as riding a tractor [00:08] davecheney: that is ok, I just went back to take a look just in case, I a a bit lost in RB still [00:09] perrito666: 33 is NOT LGTM [00:09] davecheney: last tractor I rode was waaay better than my car [00:10] davecheney: odd, dimitern said that this change was suggested by you [00:10] yup, he's fixed some todos [00:10] which is awesome [00:11] but changed the tags inside some structures which i'm super protective of [00:11] davecheney: re the tag changes - it was making writing tests unwieldy and dave already commented in a few places we need to fix this [00:11] he got carried away with changes [00:12] perrito666: the reason we have to use a type assertion is the interface those types conforms to requries the Tag() method return a names.Tag, [00:12] that can be fixed [00:12] but the type stored inside the structure must be the concrete tag type that matches the thing it's tagged [00:12] or in other wods [00:12] type Machince struct { tag names.MachineTag } [00:12] ^ anything else is going backwards [00:13] makes sense [00:20] davecheney: thanks for the explanation though [00:21] thumper: another one: http://reviews.vapour.ws/r/25/ [00:22] davecheney: btw, do you see the comments I did there? [00:24] perrito666: nope [00:24] but i didn't read the whole thing [00:25] just rage quit when i saw the change to the tags [00:25] mm, I seem to need to do some changes so others can see those [00:25] gotta push the 'review' button [00:25] which actually means 'post review' [00:25] the [00:26] the 'review' button is actually labeled 'view diff' [00:26] I did, odd [00:26] thumper: with RB, if you're happy with a change you need to click "Ship it" or tick the option (depending on which screen you're on) [00:26] thumper: I've just done it for #30 since you were happy with that one. [00:26] * perrito666 looks for a way to links to his comments and fails.. and burns the food in the stove [00:27] kk [00:28] thumper: i have to go out in 60 mins [00:29] any chance of a chat before then ? [00:29] davecheney: sure, how about now? [00:29] thumper: i'll see you in the standup channel [00:29] kk [00:46] megawatcher tests are passing === Ursinha-afk is now known as Ursinha [00:57] wallyworld: is there any precedent for passing in partially filled results structs as filters/tempates for an API List* or Get* method in Juju? [00:58] jcw4: do you have a concrete example? [00:59] wallyworld: well for actions, I want to be able to List the actions queued up for a Service and/or a Unit, and possibly filter by Status (pending, running, finished, failed, etc.) [00:59] s%and/or%or% [01:00] you'd define a Filter struct to hold the query parameters? [01:00] wallyworld: I was thinking of using the return type struct and partially filling out the fields...? [01:00] yuk :-) [01:00] :) [01:00] IMHO [01:01] (that's why I asked) [01:01] :-) [01:01] np [01:01] I know mongo does something like that [01:02] I'm pulled between keeping type explosion down vs. simple API [01:02] it does? i didn't know that. I've just encountered Find(blah).One(&result) type stuff [01:02] sometimes simple != intuitive [01:02] wallyworld: I interpreted the blah as a 'template' [01:03] eg [01:03] s.db.C("managedStoredResources").Find(bson.D{{"path", "environs/env" + path}}).One(&mrDoc) [01:03] blah = a list of filter conditions [01:04] wallyworld: okay.. so instead of one Get method, maybe GetActionsOn(service names.Tag), GetFailedActionsOn(service names.Tag), etc... [01:04] or GetActionsByStatus(entity names.Tag, status string) etc. [01:05] the latter would be preferable [01:05] and, modified to be all bulk calls of course [01:05] i would imagine under the covers it would call GetActions(filter) [01:05] wallyworld: yes. [01:06] okay, so slightly more verbose API would be preferable [01:06] that works for me personally. i like a wide API at the level of the caller, and a narrow api over the wire [01:07] wallyworld: hence the GetActions(filter) under the covers I suppose? [01:08] yep [01:09] a narrow api over the wire is more robust against change [01:09] eg if a new status were added [01:09] makes sense [01:50] axw: hi there, i booted an aws environment from trunk using upload-tools, and when I try and add-machine, I get [01:50] "1": [01:50] agent-state-info: no matching tools available [01:50] :/ [01:50] have you seen that? [01:51] nope [01:51] ok, i'll poke around [02:06] wallyworld: what's this placement/ensure availabiity stuff? [02:06] wallyworld: you guys going to give me a manual api back? [02:06] rick_h_: the landscape guys want to use ensure-availability and be able to nominate what machines should become the new HA servers [02:06] we already have this for bootstrap [02:07] wallyworld: what about UI guys that want to have ensure-availability by default, but allow people to override if they want to? [02:07] it's extending that to ensure-availability [02:07] wallyworld: ah ok, so not what I'm hoping for [02:07] what do you mean ensure-availability by default? [02:08] so that is on by default on azure [02:08] which is cool, I like safe defaults and all that [02:08] but that means by default, no user can specify placement [02:08] they have to rebootstrap without the ensure-availability and then don't get any help [02:09] yes, that is an azure limitation :-( [02:09] right [02:09] this change is primarily for maas [02:09] but my understanding is that it's only a limitation because we made it that way [02:09] i don't think so, axw would know more [02:10] no, it was made that way to work around azure's restrictive nature [02:10] there's no way to setup 'I don't care if these are HA' services manually placed, log a log aggregator or *cough* jenkins *cough* install [02:11] rick_h_: the way azure does HA is very different to other cloud providers, which means we can't support both at the same time [02:11] axw: right, but I'm suggestions, or I guess asking, if there's room for some things to not be HA in an env [02:11] /suggestions/suggestion [02:12] rick_h_: yes, with some work we could probably do it on a per-service basis [02:13] I don't think it's a small amount of work though [02:13] axw: yea, in brussels I'll probably ask about it. Especially with the planned work for more auto placement, it kind of breaks the whole chunk of work we've done in machine view [02:13] axw: on the one hand we're looking at trying to enable colocating and collapsing down, but if we start auto placing and turning off overrides, then we break that story for smaller/getting started users [02:14] and even stuff like the orange box setup where almost every node there has multiple services on it [02:14] axw: no need to worry about the versioning stuff for juju run .. I spoke to william and he completely extended the scope of my work and added some rather large, non-trivial things to that PR ;) [02:14] wwitzel3: lol [02:14] axw: good news is, it will be versioned :) [02:14] axw: wallyworld ok, saw a branch go by with an interesting little title and had to ask what was up. [02:15] rick_h_: I understand, we do need to do something about it [02:15] rick_h_: np at all, ask anytime [02:15] it's a bit crappy having to choose [02:15] at such a coarse level anyway [02:15] axw: I'm just making a new, smaller, focused facade for the run part of the client, instead of leaving it all rolled up under client. [02:15] wwitzel3: cool, SGTM, just like what wallyworld did for ensure-availability [02:16] axw: yea, my feeling on it. I think it's good stuff, just a bit :( since it's by default and the answer is "once you realize you DO want to colocate something, rebootstrap" [02:16] and eric for Backup, and also previously for KeyManager, UserManager etc [02:17] wallyworld: I hate private image metadata [02:17] :( [02:17] sadly we need it :0( [02:17] :-( [02:17] axw: yep, and the usermanager facade [02:17] it's messing up my nice abstractions [02:17] wwitzel3: and keymanager and backup [02:18] axw: did what we discuss last night about adding it in to the current CustomMetadata work flow turn out? [02:19] wallyworld: I've got an API client-based one jammed in there. feels a bit wrong to be calling the API from there though... [02:19] also, going to need to do something else to read the image metadata at bootstrap time [02:19] previously we'd upload to cloud storage before bootstrapping, don't have that luxury now [02:20] axw: we should use a bespoke interface and inject in an implementation [02:20] for retrieving image metadata [02:20] the interface lives in provider [02:20] there's then an api cient adaptor [02:21] or something like that [02:21] wallyworld: it's too error prone... we'll end up missing a call to set the source [02:21] that's what tests are for :-) [02:21] tests where? *everything* uses an Environ, and we add it all the time [02:21] and we can have the thing which constructs the provider even read stuff from state, and pass in static data behind that interface [02:22] environs.New(*config.Config) [02:22] hmmm [02:23] maybe it needs to be done on the provider [02:23] cause that's where startinstance is [02:23] no it's not, that's on Environ [02:23] ah, yeah [02:23] EnvironProvider just opens/prepares [02:24] more or less [02:24] it's at that point we could pass in the metadata [02:25] this is all handwavy without looking back at the code [02:30] i'm getting the following error: /usr/lib/go/pkg/tool/linux_amd64/6l: conflicting definitions for @"github.com/juju/juju/state".State [02:32] is it safe to delete /usr/lib/go/pkg/ ? [02:32] I deleted ~/go/pkg but it didn't help [02:32] davecheney: ^? [02:33] waigani: I don't think you'd want to remove /usr/lib/go/pkg, unless you installed a package there with sudo [02:33] axw: no I didn't [02:34] axw: I'm using the go that comes with 14.04 [02:34] wallyworld: I'm going to investigate another approach of having a datasource registry in environs/imagemetadata [02:34] ok [02:35] waigani: ok, dunno what that error is, but removing that dir sounds wrong [02:35] yeah, felt wrong, that's why I asked. thanks [02:35] actually its referring to a bunch of stuff in tmp [02:35] that I can delete [02:35] e.g /tmp/go-build964096169/github.com/juju/juju/state/_test/github.com/juju/juju/state_test.a(_go_.6): [02:36] wallyworld: the registry will be keyed on environ. may make it possible to remove the SupportsCustomSources interfaces [02:37] worth a spike [02:37] except that its already been deleted... hmm [02:41] fixed it, that was a new one [02:43] wallyworld: do you need a review for this? http://reviews.vapour.ws/r/38 [02:43] menn0: yes please [02:43] wallyworld: doing it now [02:44] ty [02:56] menn0: i pushed a small fix to the github pull request, what's the command to update the reviewboard diff? just "rbt post" ? [02:57] wallyworld: "rbt post -u" might do it... or else "rbt post -r " [02:57] ta [03:16] axw: found the tools problem. i had an older compiled jujud in my path (1.20.8) and it found and uploaded that one and then when that 1.20.8 jujud went to find tools, it looked for 1.20.8 and there were none as juju recorded tools for 1.21 [03:17] wallyworld: ah, ok. [03:18] that's a problem with upload-tools, it just assumes whatever it finds is the same as the CLI version [03:18] yeah, so i found out :-( [03:18] i didn't even realise i had a binary, and i didn't notice the log message n amongst all the noise [03:26] wallyworld: just finished reviewing http://reviews.vapour.ws/r/38/. thumper can you do a meta-review please? [03:26] thanks menn0 [03:27] * thumper looks [03:31] menn0: I can't see your comments on the main diff [03:32] ahh... [03:32] because the comment is on diff one [03:32] thumper: ah... wallyworld uploaded a new diff while I was reviewing... [03:33] thumper: if you're looking at my review comments, you can click the title (where the filename is) to jump to the code. [03:33] menn0: thumper: i am going to back out that change i think - the issue i had from from using an old jujud. i thought i messed up the api versioning as i just guessed based on reading the code, but it turns out i was right after all [03:34] but i will keep the extra test [03:37] menn0: thumper: although, I do like the fact that the new implementation gets the version directly off the ha client. but it means possibly opening a ha client and closing it again if the version is wrong. what implementation do you guys prefer? [03:38] the first one gets the facade version by asking for it by name [03:38] the second one gets a client and asks the client [03:39] menn0, wallyworld: why has noone updated the branch in the .reviewboardrc? [03:40] nfi [03:41] thumper: I think we needed to establish whether everyone has the "upstream" remote set up in the same way [03:42] menn0: if they followed the instructions they should have [03:42] menn0: if not, they need to fix it [03:42] menn0: why make the rest of us suffer? [03:42] thumper: yeah.. and no-one said anything when I mentioned it on the list [03:42] thumper: let's fix it [03:43] thumper: I've been running rbt post with --tracking-branch=upstream/master in the mean time [03:43] * thumper nods [03:43] * thumper submits his first review board review [03:45] http://reviews.vapour.ws/r/39/diff/ [03:45] thumper: will take a look soon [03:46] ta [04:16] jam: hi, i'd like your input on determining API version. http://reviews.vapour.ws/r/38/ The first diff did this: root.BestFacadeVersion("HighAvailability"), the second diff does this after instantiating a client: client.BestAPIVersion(). Both work. The first way doesn't require creating a client only to potentially not use it if the API doesn;t exist, but does require knowing the facade by name. What would you prefer? [04:17] this is in cmd/juju/ensureavailability.go [04:17] wallyworld: so, I haven't looked at the whole diff, but is the idea that you're moving EA into another location? [04:18] so IMO, you would have an api/ha/client.go that would try to use the new location if it existed, else fall back to the old location [04:18] in which case, you'd still be wanting the client [04:18] it would just be using the right API call underneath [04:19] jam: the facade name is different [04:19] i'm moving methods off the original big client [04:19] wallyworld: that doesn't mean you need a different client side type [04:19] and onto a whole new facade [04:20] wallyworld: sure, but the api/highavailability/client.go can still call APICall("Client", 0, "", "EnsureAvailability", ...) [04:21] oh,i see [04:21] that sounds nicer [04:21] jam: i'll implement that and get you to +1 if that's ok [04:21] wallyworld: so it depends *what* we can get away with, but my idea is that we should push the compatibility layer as low as we can [04:21] yep [04:21] agreed [04:22] i didn't know how to do that [04:22] wallyworld: so if we can hide compat underneath api/foo.go then do so [04:22] +1 [04:22] sometimes it has to be done in client code like cmd/juju level code [04:22] but for this, I think you can do it lower. [04:22] that would be good [04:23] wallyworld: fwiw, I would rather it not be called apiserver/highavailability/client.go [04:23] "client" here seems confusing. [04:23] wallyworld: api/highavailability/highavailability.go seems slightly better (if a bit longer) [04:23] fair point, i cargo culted that from somewhere [04:23] ill fix [04:24] wallyworld: apiserver/client/client.go I'd imagine [04:24] could be [04:40] jam: i've pushed the changes to rb if you would be kind enough to look [04:40] thumper: wow, such diffs, very long [04:40] thumper: almost done [04:41] menn0: ack, and ta [04:46] thumper: done [04:50] thumper: thanks for the chat earlier [04:50] i've had a good mull over it [04:50] davechen1y: np [04:51] i think the multiwatcher should only accept types defined in its package [04:51] i won't say it is the only sane way to do it [04:51] but it feels more sane than what we have at the moment [04:59] holy shit [04:59] thumper: [04:59] type EntityId struct { Kind string Id interface{} [04:59] } [04:59] look, it's a tag!! [05:00] davechen1y: yeah, I've been looking at that information now in the watcher... [05:00] thumper: i keep getting confused between state/megawatcher, and state/multiwatcher [05:01] me too [05:04] thumper: i'll be spending 1/2 of tomorrow and all of friday on arm stuff [05:04] ack [05:04] now we have a machine I suspect aram's output will increase quite a lot [05:18] wallyworld: morning ... is there anything that you'd like to discuss today on a regular catchup? [05:18] urulama: hey, morning. [05:22] thumper: i'm thinking that params.EntityId should be the state versino of a tag [05:22] william has said many times he doesn't want tags stored in the db [05:22] but it feels like there is a case of a tag like think [05:22] and entity id may be that thing [05:22] it's an identified and a type bound together [05:22] hmm... interesting [05:22] honestly entitydi could be [05:23] type MachineEntity interface{} [05:23] well maybe, that might be a bad idea [05:23] but that sort of thing [05:23] it's a typed thing [05:23] and that is _exactly_ what an interface is [05:23] * thumper nods [05:23] sounds reasonable... [05:24] i haven't quited figured out what entity id's do yet [05:24] they seem to be a way of informing watchers what _type_ of entity changed [05:24] I was just looking at the entity stuff as a wip review of jesse's look at adding the env-uuid to the service collection [05:24] I'm wanting the id to be environment specific [05:24] so the actual document ID is an opaque transformation of the entity id [05:24] oh yeah, they completely fail to capture that [05:24] they are at best a tupple { collection, row } [05:25] * thumper nods [05:25] it could be looked at like that [05:25] so, the question is, do we extend the tupple to be [05:25] but I think it would be good to work out the real intent [05:25] { collection, env-uuid, row } [05:25] to work out how best to model this [05:25] I don't think that bit is necessary, as the state instance has an implicit env-uuid [05:25] or stick with { collection, row} and accept that GetAll does not return the complete set of documents in the collection [05:25] which is why I think the mega watcher needs to be environment specific [05:26] the later of what you said [05:26] I think [05:26] i need to figure out where that data is begin used [05:26] i'm guessing it's somethinglike [05:26] yeah, I agree [05:26] switch collection { [05:26] case "machines": state.GetMachine(id) [05:27] case "unit"L: state.GetUnit(id) [05:27] and so forth [05:27] which is so like tags it's not funny [05:32] thumper: why do all the backingNNN methods in megawatcher.go return an error [05:32] yet they are all hard coded to return nil [05:32] ? [05:32] NFI [05:32] store.Update(info) [05:32] return nil [05:32] } [05:32] * davechen1y feels a branch coming on [05:32] because someone thought it was a good idea? [05:33] davechen1y: it would almost be "state.FindEntity(tag)" for the switch above [05:33] i wonder if they have to fit some interface [05:34] ./megawatcher.go:458: cannot use (*backingRelation)(nil) (type *backingRelation) as type backingEntityDoc in assignment: [05:34] hmmm [05:48] menn0: so when I update this review, do I squish locally first? [05:48] what is the normal practice? [05:49] thumper: you can do whatever you like. review board will just upload the diff of your branch to upstream/master, regardless of how many commits it's in [05:49] ok [05:50] menn0: is there a keyboard shortcut to take me to the next review comment? [05:50] that'd be handy [05:51] I haven't looked but I'd like to know too if there is one [05:52] * thumper looks for the rbt command to update [05:54] * thumper is off now. [06:07] wallyworld: thumper is EOD so could you do a meta-review for this please? http://reviews.vapour.ws/r/34/ [06:07] sure [06:07] wallyworld: otherwise ericsnow will have to wait longer to get his review [06:07] and we don't want that :-) [06:08] in case we need to ask for a reviewboard fix :-) [06:21] wallyworld: :) [06:21] wallyworld: cheers [06:21] menn0: 3/4 of the way through [06:27] wallyworld: so your patch doesn't actually get the backwards compatibility stuff quite right. [06:27] ok [06:28] wallyworld: you mention "regression tested on AWS", does that mean you did "juju-1.20 bootstrap" and "juju-1.21 ensure-availabilty" ? [06:29] jam: yes [06:29] but if i got the backwards compat stuff wrong, i will retest [06:30] wallyworld: so you don't actually fall back to calling the Client API [06:30] AFAICT [06:30] HA didn't exist in 1.20, right? [06:31] jam: i think you are right, i tested before i did the last lot of changes after talking to you [06:31] wallyworld: AFAICT, your legacy test is only patching the client side, so if it makes the new API call, the server still would accept it. [06:32] yeah, i'll have to rework it i think and retest [06:32] so you really want a server that doesn't think it has the new functions, so that you know the client isn't requesting them [06:32] TheMue should have some examples he's putting together [06:33] or i could patch out the client and check the facade called [06:33] wallyworld: I feel like that still gets you into a place where you have to be careful to patch everything that might be touched [06:33] you could [06:33] sure, yeah, i'll run up one end-end test [06:34] i'll look for the doc [06:34] thanks [06:35] jam: for some reason, reviewboard doesn't show the client.go files as renamed; the github pr does [07:09] morning [07:23] jam, hey, would you like to have a look at my http://reviews.vapour.ws/r/33/ please? [07:33] dimitern: looking [07:33] jam, thanks [07:37] jam, in particular I'm having some trouble understanding why "s.firewaller.Machine(s.machines[0].Tag())" is worse than "s.firewaller.Machine(s.machines[0].Tag().(names.MachineTag))" [07:38] dimitern: I'm not personally very sure why MachineTag is better/worse than just Tag, for that you'd have to have a discussion with davecheney [07:39] (I certainly thought the point of Tag was that it was the abstract representation, so having type-specific versions of it seems odd) [07:40] dimitern: oh, and *IMO* ever doing a plain type assertion: .(names.MachineTag) in production code is asking for a panic to bring your system down [07:40] panic() ==> the whole thing dies [07:40] jam, strictly speaking, using names.Tag internally is less safe than names.MachineTag, but the apiserver facade validates all tags it gets, so there's no way to pass a unit tag to a method allowing only machine tags and not get an error [07:40] error() => we return "sorry can't do that" [07:41] jam, ok so why state.Machine.Tag() returns names.Tag rather than names.MachineTag ? [07:41] jam, I think in the API we should follow the same logic [07:41] dimitern: *If* we are supposed to be using names.MachineTag, then it seems like it should [07:42] dimitern: as stated, *I* don't really understand why [07:42] jam, oh, ok - so we're in the same boat on this :) [07:42] dimitern: my point was just that a bare type assertion seems to mostly be the wrong thing to do [07:43] where are thumper and davecheney when you need them :) [07:43] dimitern: certainly IMO MachineTag should be an implementation detail of Tag [07:44] dimitern: also note that NewUnitTag was something that exists, and dave has stated "it is there for tests" but we don't have another way to go from "unit/0" to a UnitTag [07:44] jam, I agree unchecked type assertions are bad, but if state.Machine.Tag() returns anything else than a names.MachineTag wrapped into a names.Tag interface, I'd rather panic than let it slip :) [07:44] (it also used to panic if you gave it bad data, which meant that charms could crash the API server) [07:45] dimitern: panic if developers are writing bad assumptions, but don't panic if you were given bad data [07:46] jam, I think I understand their point - the internal tag filed of the Machine struct should be names.MachineTag, but firewaller.Machine() should take names.Tag and possibly ParseMachineTag and verify internally [07:46] s/filed/field/ [07:46] dimitern: so NewFacadeCallerForVersion seems like a bit of a "we don't really want to do it this way", but I suppose the point is to allow the server to go to a new version before the client is ready to handle it? But we can just do that by not incrementing the best-known version in api/facadeversions.go [07:46] though I guess the test suite will tell you off for that... [07:47] jam, no, it's not about the client [07:47] jam, it's a way to implement a new server and client version of the api, test it and only switch over to it once it's user (i.e. the worker) is ready [07:49] jam, I thought a lot about how to do it nicely, and I'm keen on your thoughts about my approach (both server-side and client) [07:50] dimitern: so this is actually because we can't abstract the API difference, and we need 2 different workers, thus we are forced to explicitly chose which version the worker is talking to [07:50] ? [07:51] jam, in this case, having old and new versions of the worker using v0 and v1 is the easiest way, until we can drop the old worker and rely on having apiserver supporting v1 [07:52] jam, in reality, once we have apiv1 in place and the upgrade step done, I think it will probably be safe to drop the v0-only worker, isn't it? [07:54] jam, the only problematic case is when a MA running v1 firewaller worker is talking to a v0 apiserver, but since upgrades are done in lock-step, can we have this case at all? [07:54] dimitern: you mean, we are unlikely to be talking to a v0 API server if the Agent is V1 ? [07:54] I do believe that is true [07:54] dimitern: well, if they "finished" the upgrade path wrt HA upgrades [07:54] I'm not sure if menno has landed all of the pieces there [07:54] jam, yeah, so the old v0 worker will be kept only until upgrade is done [07:55] morning all [07:56] jam, if not (i.e. we happen to connect to a v0-only apiserver in HA configuration, which haven't yet updated), I think it will be also safe to terminate the worker and restart it, hoping it will connect to an upgraded api server [07:56] morning mattyw [07:56] morning mattyw [07:57] wallyworld, are you around? [07:57] hey [07:57] wallyworld, hey, can you confirm the behavior in HA setup wrt server upgrades ^^ [07:58] maybe, i'll read [07:58] wallyworld, I mean, suppose we have a new version that has an upgrade step to migrate stuff in the db, and then a worker starts after the upgrade expecting to find apiserver supporting the new api v1 it needs [07:59] wallyworld, in HA-scenario there can be (I guess) some apiserver not yet upgraded - or we ensure all of them are and we then start any other workers? [08:00] dimitern: i *think* they are all upgraded, but am not sure. in any case, the worker will exit and restart i would expect [08:01] dimitern: i think there was some code landed recently about coordinating upgrades [08:01] wallyworld, yeah, and keep doing this until it connects to an api server supporting the facade version the worker needs [08:01] yes, but if i am correct, upgrades should be coordinated as of recently [08:01] so either way, i think we are ok [08:01] dimitern: so for agents we can go with a bit of "it doesn't have to work until the API server is new enough", I don't want us to get *too* used to that kind of programming. [08:02] dimitern: iow, I'd rather we just make it work with v0 and v1 as much as we can, but this is a case where the difference is large enough it probably isn't worthi t. [08:02] worth it [08:02] jam: i would think that some sites may want to run with an older api server for bit? upgrade in stages? [08:02] not sure if we plan to suport that [08:03] wallyworld, my original question was "given 2 versions of a worker - old one using apiv0 and new one using only apiv1; when is it safe to remove the old v0 worker code - is it once we have an upgrade step in place that does migration apiv1 expects?" [08:03] hmmmm, good question [08:03] wallyworld: I can see from a "I'm managing my infrastructure" wanting to do rolling upgrades, and testing various pieces. It hasn't been part of how "juju upgrade-juju" works at all. [08:04] jam: i think it will/could very well come up as a requirement, given people already want rolling charm upgrades perhaps [08:05] wallyworld: so my personal opinion is that as much as possible clients and servers should support the widest range of versions that we can cope with as programmers. [08:05] yeah, i tend to agree [08:05] And we're being pickier about that for Client apis vs Agent apis [08:05] we have little choice for clients [08:06] well, there are people that would have said that if we had gone with an API from the beginning, "juju upgrade-juju" wouldn't exist, and we wouldn't need simplstreams, because the Agents would just be a "apt-get install jujud" [08:06] for clients, absolutely, but we can be laxer with agents [08:07] and we'd have to cope with Precise being a different version than Trusty [08:08] jam, wallyworld, so I propose to trust our upgrade code does the right thing (and file bugs when not), and keep the old code only until the upgrade step is in place [08:09] dimitern: I'd sign off on that, you may want to check with fwereade at some point to help it get codified as appropriate practice. [08:09] +1 to trusting the upgrade code [08:09] morning all [08:09] o/ [08:09] ok, I'll send a mail to juju-dev [08:09] morning voidspace [08:10] william is moving today i think [08:10] dimitern: o/ [08:10] morning voidspace [08:11] o/ [08:11] TheMue: can you take a look at http://reviews.vapour.ws/r/33/diff/# Dimiter has an interesting approach to doing the versioned testing, which I don't think is quite what we had been discussing. [08:11] (a base test suite that has a lot of helper functions that take an appropriate interface in each method) [08:12] and then concrete tests that just thunk over to the helpers [08:12] dimitern: as far as that goes, I feel like we're still feeling out how we want to do compatibility testing, etc. [08:12] wallyworld, moving where? [08:12] flight back from UK I think he said [08:13] ah, I see [08:13] he was away for a bit last week [08:13] dimitern: I think William was advocating that we could do per API suites, and then aggregate them into versions of facades [08:13] so you would have a WatchSuite, and an InstanceId suite, etc. [08:13] morning [08:13] morning TheMue [08:13] jam: yep, will take a look [08:14] jam, that sounds like a horrible amount of boilerplate code - imagine doing this for the uniter api [08:14] morning TheMue [08:14] dimitern: well, you have a fair amount of boilerplate in your testing of Firewaller [08:15] jam, dimitern: seen my document where I tried to describe the testing approach? [08:16] TheMue: https://github.com/juju/juju/pull/758/files ? [08:16] jam: yes, and thankfully by clicking on "View" the markdown is rendered for better readability [08:18] jam, I can't decide yet whether having a test-suite-per-api-method is more or less boilerplate than having "kinda C++-template-like helpers" taking an interface with a single method that's being tested [08:19] TheMue, no, I'll have a look, but look at my proposal when you have some time (I'm quite proud what I came up with :) [08:19] * jam needs food, bbiab [08:20] TheMue, the approach taking a callback func (st *state.State, resources *Resources, authorizer Authorizer) (interface{}, error) is something I tried as well [08:21] dimitern: I'm just doing, but I would like you to read the doc (and the according code) too. it is a bit more coding, but not so very much. and the test suites per method can be wonderfully reused === psivaa_ is now known as psivaa_-afk [08:21] dimitern: yeah, I needed it to inject the factory for the API version I want to test [08:21] TheMue, the problem is, you can't pass a constructor returning a concrete type (or pointer thereof) [08:22] TheMue, i.e. firewaller.NewFirewallerAPI(...) (*State, error) [08:22] dimitern: that's why I had to return the interface [08:22] dimitern: and I'm wrapping it in a little func with the signature above [08:23] dimitern: here the static typing hinders us to use the factory directly *sigh* [08:24] dimitern: never tried "type Factory func(...) (interface{}, error)" and then cast "firewaller.NewFirewallerAPI.(Factory)" [08:26] TheMue, won't work - see http://play.golang.org/p/9UQE8Fh2Co [08:28] dimitern: yeah, just tested too. would have been nice === psivaa_-afk is now known as psivaa [08:34] TheMue: i think you're working on this - I have an existing test suite where I want to change the result of RegisterStandardFacade() ie change the version registered. But calling this method a second time gives an error. What's the way we're to use to change the result of BestAPIVersion() for testing? Or even unregister a facade for testing? [08:35] I need to do both [08:36] wallyworld: it's not yet proposed, I had it in a branch I pulled back but it will come with the next one: a function to de-register an API returning a restore function to call with defer [08:37] ok, will that land soon? [08:37] wallyworld: it has to be called before the API is connected, so that the resolving of the available APIs doesn't return it [08:38] wallyworld: think so, yes, but I can already point you to it. it's a small one [08:38] wallyworld: one moment, will find the code [08:38] ok [08:38] although if it's in common infrastructure it's best to wait [08:38] but i do need to be able to land my branch tomorrow hopefully [08:40] wallyworld: take a look here, it's replacing an existing func in common.FacadeRegistry: https://github.com/TheMue/juju/compare/capability-detection-for-networker#diff-dfdd9146133bcedaf779a17388c5a27fR234 [08:40] ok, thank you [08:41] wallyworld: and here I used it https://github.com/TheMue/juju/compare/capability-detection-for-networker#diff-13fd488899c8ceea9cc4183707b0b270R200 [08:41] TheMue, you can do a wrapper func taking any callable and returning something with (interface{}, error) - see http://play.golang.org/p/ZOqBHnjfyi [08:42] TheMue: thanks, looks like Discard is already in the code base [08:42] i might try and use it [08:43] wallyworld: yes, it's only that the current Discard() cannot restore, that's all ;) [08:43] ah [08:43] dimitern: yeah, adding this to our testing package simplifies the injection, nice [08:44] TheMue, well, this is just a quick sketch, but WrapNew should do more checks and take a gc.C as well, but the idea is nice [08:45] hey davecheney [08:51] dimitern: yes, to be part of a testing package it has to [08:51] * TheMue just fetched a fresh coffee [08:53] still a bit tired and having aching legs after the visit of the Photokina fair yesterday. but has been fantastic, with many ideas where I'll spend my money for :D [09:36] jam: i pushed some changes. i used common.Facades.Discard("HighAvailability", 1) to remove the facade registration and so force the client caller to go through the older client facade [09:50] should I close the reviewboard review once it gets a "ship it!"? [09:58] wallyworld: I think you have 1 typo, but otherwise LGTM [09:58] jam: ty [10:01] hmmm... so I have a function that after a replicaset reconfig connects to all members of the replicaset [10:01] and waits for *them all* to report a healthy status for all the other members [10:01] so we know they're all up and they all know about the other members [10:02] And the test *still* fails with this immediately after that check [10:02] Message:"exception: need most members up to reconfigure, not ok : localhost:33975", Assertion:false} [10:02] that just seems insane [10:03] I'm going back to mongo support channels [10:19] dimitern: so, took a deeper look at the server-side versioning and the tests. wrote some notes in the review. [10:23] TheMue, cheers, will have a look [10:24] dimitern: I'm currently thinking about mixing our ideas [10:25] TheMue, I'm in process of changing my PR to use per-method suites to see how it will look like [10:28] dimitern: ah, we're getting closer [10:37] hello, could somewhat please tell me what email/password rbttools expects of me? [10:38] it says in the documentation that it's the ones of the rbt server, and I presumed it was the github ones seeing as though we used 0auth; but those don't seem to work D: [10:41] aznashwan: it is amazingly [10:41] $YOURUSERNAME [10:41] password: gh-oauth === fabrice is now known as fabrice|lunch [10:45] aznashwan: sorry, i think the password is oauth:<$YOURGITHUBUSERNAME> [10:46] voidspace: standup? [10:48] jam: oops, omw [10:51] davecheney: I've been spamming the server with requests for a while now, and still no luck D: [10:52] any chance the upload diff file directly to the webpage will work? [10:57] aznashwan: you can do that [10:57] but it needs to be a "full diff" [10:57] the diff from github won't work [10:57] :( [10:57] i already tried that [10:58] aznashwan: don't tell anyone, but if you just do a pull reequest on github [10:58] then i'll review it and we don't need to worry about review board [11:00] davecheney: thanks a lot, I've already got two up now, and they've been looked into a little already, minor fixes each, freshly rebased on master so it will just be fast-forwards if they get merged [11:02] morning [11:08] aznashwan: can you paste the urls [11:09] ? [11:09] davecheney: sure, sorry: https://github.com/juju/juju/pull/748 https://github.com/juju/juju/pull/704 [11:16] davecheney: thanks for the reviews, will get to fixing the PR's immediately :D [11:16] aznashwan: it's way past end of day for me [11:17] i'll catch you on the flip slide [11:17] side [11:17] davecheney: k, have a nice one :D [11:18] see you tonight davecheney [11:19] some times this irc channel feels like a relay race [11:21] perrito666: we develop juju 24/7 [11:22] perrito666: a rolling stone gathers no moss [11:23] luckily, I ran out of things to bother you guys with, at least for the time being :v [11:23] aznashwan: I strongly disagree http://cdn2-b.examiner.com/sites/default/files/styles/image_content_width/hash/49/b3/49b30d7598f1527927df8a4cbd98e253.jpg?itok=AIdW4EIi [11:52] * voidspace lunch [11:56] perrito666, nice [11:57] mattyw: I was hoping someone would get the joke [11:57] .p [11:57] :p [11:57] perrito666, I wouldn't go as far as to say joke ;) [11:57] o cmon, rolling stone, moss, picture, instant fun [12:03] that must be some strange usage of the word fun I wasn't previously aware of === fabrice|lunch is now known as fabrice [12:05] mattyw: arent you brittish? [12:06] perrito666, I am, for now [12:06] :p then you are in no moral grounds to judge about fun then, we actually catalog brittish commedy films in a separate category :p [12:06] mattyw: moving out? [12:07] perrito666, until Scotland gets independance [12:07] mattyw: ahh moving out the entire country, very cool move :p [12:08] 'd still be british surely... [12:08] mattyw: what did you want me for yesterday evening btw? [12:09] mgz, I was getting crazy errors from the landing bot - seemed to suggested something was up with the server rather than the bot [12:09] mgz, but it's fine now [12:09] mgz, thanks anyway [12:09] I'll have a look at the logs [12:10] mgz, here's one http://juju-ci.vapour.ws:8080/job/github-merge-juju/657/console [12:10] ta [12:11] its interesting, school here actually teaches kids that england, scotland and ireland+nort ireland as 3 separate countries and makes no mention whatsoever to the united kingdom until high school (near the end of it) [12:11] what would happen if there was a command clashing with a plugin? for intance if I was to create a charm command? [12:12] perrito666: in France england scotland wales are the same and we always use england for uk === Ursinha is now known as Ursinha-afk [12:19] folks - after we land a branch reviewed on review board do we just mark it as close -> submitted? [12:19] ^^ yes appears to be the answer === Ursinha-afk is now known as Ursinha [12:25] wallyworld: if/when my branch lands, and backups move off provider storage, I believe we can remove Storage from the Environ interface [12:25] yup \o/ [12:25] just did a ~100line change which looks like it'll work [12:25] whoo hoo [12:26] mattyw: that's what I did [12:26] dunno if we're supposed to or not, but I guess so [12:27] i did that too [12:31] what package should I place a commonly used function in juju? [12:31] thinking of moving NowToTheSecond out of state [12:31] it's used both in tests and in production code, so I can't just put it in a testing package [12:33] axw: tell me more about backups [12:53] hmm, not yet friend with rbt. if it tells me "ERROR: There don't seem to be any diffs!" when calling rbt post, how can I still post my pull request? [12:54] TheMue: did you do the upstream configuration magic menn0 suggested? [12:56] perrito666: I'm just following the described workflow in the mail [12:56] perrito666: which "magic" (and why do we need magic when simple tools should do it)? [12:58] TheMue: I meant a configuration in your .Idontrememberwhatrc [12:59] perrito666: I have no .Idontrememberwhatrc *lol* [12:59] perrito666: hehe, no, will take a closer look [13:01] TheMue: apologies, I do not recall the whole thread [13:02] perrito666: but I found the missing line, and no need to appologize, it's my fault to not configure it correctly [13:03] perrito666: but now added the magic line and it ask me to authenticate. so getting closer, yeah. [13:03] TheMue: ah apparently you ned to user [13:03] agh [13:03] need to use username@github === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha [13:09] axw, cool thanks [13:10] axw, I saw that's what you did so that's what I went for [13:18] perrito666: this tool hates me, cannot login [13:19] * perrito666 tried to do a portmanteau between troll and tool but feared to accidentally post a profanity in English [13:19] ;) [13:20] I tried with TheMue as well as my E-Mail as username, but still cannot login === mbruzek is now known as mbruzek_ === mbruzek_ is now known as mbruzek [13:35] Changing the password just to make sure doesn't help too. *sniff* [13:35] What.does.this.tool.want.from.me? [13:39] TheMue: your soul [13:39] what are you using for a user? [13:40] you guys talking about rbt? [13:40] TheMue: the logs show ericsnow suggesting: [13:40] to katco "oauth:katco-@github" [13:41] right, I was going to say that [13:41] for some reason eric set all our passwords to that ;) [13:42] ahh, wil try [13:42] (joking of course, you should use oath:@github as your password [13:43] perrito666: thanks, now it works *phew* you saved my soul *grin* [13:45] natefinch: well makes sense, passwords are most likely hashAlgorythm:hash and so oauth: must trigger a django auth plugin if I understand correctly that makes the authorization dance [13:46] ok, now it would be nice if markdown files could be directly rendered like in github === fabrice is now known as fabrice|afk [14:21] natefinch: when you have a chance, http://reviews.vapour.ws/r/42/ [14:22] wwitzel3: cool, I'll take a look [14:22] natefinch: it is the changes from that ML thread on rsyslod [14:39] could someone please tell what the hell is rbt post expecting as a username/password? [14:40] username: password: "oauth:@github" === jheroux_away is now known as jheroux [14:47] ericsnow: can you just email that out to the list as a one line email? [14:48] natefinch: good idea :) === fabrice|afk is now known as fabrice [14:57] ericsnow: when publishing changes after an "rbt post -u" I currently get a HTTP 500. known problem? [14:58] TheMue: looks like the revision you are trying to post is already associated with a different review request [14:59] ericsnow: eh, I accidently posted it without -u but immediately discarded it [15:00] TheMue: each review request has an associated repo revision (which has a UNIQUE constraint) [15:00] ericsnow: as I said, it's discarded. so the software should not care [15:00] TheMue: unfortunately discarded requests still keep that revision locked up [15:00] TheMue: it's dumb [15:01] TheMue: I can "permanently delete" that accidental request if you tell me the number [15:01] ericsnow: so HTTP 500 tells me "Hey you dumb guy, make another change, push it, and post it again."? ;) [15:01] TheMue: I expect that this is going to keep happening to people [15:02] TheMue: exactly :) [15:02] ericsnow: hehe [15:02] ericsnow: but deletion is better, it's the 44 [15:02] natefinch: wwitzel3 stdup? [15:03] TheMue: I expect we need to either come up with a github subcommand that wraps rbt intelligently or get github-reviewboard integration rolled out [15:03] perrito666, wwitzel3, ericsnow: would you guys mind if we delayed until later? I have a sleeping child next to me, and I'd rather not wake her [15:03] TheMue: I expect we'll do the latter at some point (hopefully in the near future) regardless [15:04] natefinch: np [15:04] natefinch: let a sleeping child lie :) [15:05] coffee [15:05] ericsnow: a seamless integration would be nice, indeed [15:06] TheMue: I've deleted 44 so you should be good to try "rbt post -u" again. [15:07] ericsnow: great, will do, thanks [15:07] TheMue: np, sorry for the trouble [15:15] TheMue, perrito666, updated http://reviews.vapour.ws/r/33/ care to take a final look? [15:15] dimitern: did you see davecheneys comment? [15:16] dimitern: already started [15:16] perrito666, I did change back the tag fields as they were [15:18] dimitern: regarding the order inside the file, currently the declarations of base and V0 as well as methods of them are in a mixed order. I only meant to write all base definitions first and all V0 definitions then, simply to group them properly [15:24] TheMue, you mean have all func (f *FirewallerAPIBase) Methods() then the FirewallerAPIV0 ones? [15:24] dimitern: yep [15:25] TheMue, ok, I misunderstood then :) will do and post an updated diff [15:25] dimitern: thanks [15:27] dimitern: btw, in your mail, you meant "an" agent API, and not "the" agent API, don't you? not that I'm getting you wrong here. [15:28] TheMue, updated [15:29] TheMue, yes, "an agent api", the AgentAPI (perhaps poorly named) is just one facade [15:29] dimitern: fine [15:31] dimitern: for the testing approach I still would like to know how we'll test a func introduced in V1 in V2 then? [15:31] dimitern: but I've got an idea here [15:32] dimitern: currently your base is a type with methods [15:32] I see we have juju/utils/set and it currently has implemented Strings [15:32] TheMue, le me think a bit [15:32] dimitern: how about changing it into a simple struct which is passed to simple test functions as a first argument [15:33] TheMue, so you have Foo() in V1, which is unchanged in V2? [15:33] dimitern: so for V0 I implement the V0 test functions and use them in the test suite [15:33] my question is, if I want to have a set of tags, should I implement that in utils/set and make it have a Tags implementation? [15:34] dimitern: in V1 I only write the new test functions and write my test suite V1 like you've done using these functions too [15:34] TheMue, the we can use testFoo(c, patchFunc(taking NewAPIV1 in v1_test and NewAPIV2 in v2_test) [15:34] dimitern: and so in with the next functions [15:34] TheMue, more or less yes [15:35] TheMue, I'm not saying "this is the way we should test API versions, period." :) [15:35] because right now, I'm converting from user input string, to tag, using the tag.String() method with set to create a unique set of tags, then converting them back to tags with ParseTag as I iterate over them [15:35] dimitern: hehe [15:35] TheMue, it's just we're looking for the best way, and I don't think we're quite there yet [15:35] dimitern: no, me neither, only thinking of a good solution too [15:35] TheMue, but for the time being, I'd rather move on with the ongoing tasks and revisit testing later [15:35] my thought is, since it lives under juju/utils already, our set implementation knowing about types from juju/names seems ok [15:36] thoughts? [15:36] dimitern: so your approach, but with no real base in the sense of inheritence, more as a growing set of versioned test functions used in the individual suites [15:36] dimitern: ok [15:36] TheMue, If we agree on an approach, I promise to take some time to refactor existing facade tests [15:36] TheMue: I will act as a witness along with the IRC logs of dimitern's promise ;) [15:37] dimitern, wwitzel3: *rofl* [15:37] wwitzel3, +1 :) [15:37] wwitzel3, that's a very good idea IMO [15:38] wwitzel3, having set.NewTags() etc. so we can use them with names.Tag and derived types, store them as tags, but have the same UX as with Strings [15:39] dimitern: I'll note a quick dummy containing your approach and my latest thoughts. think it's a good way, flexible and less boilerplate [15:40] wwitzel3, I'd rather have map[names.Tag]bool as internal implementation for set.Tags, but optionally, you can have NewTags(names.Tag...) and NewTagsFromStrings(string...) internally using ParseTag on each [15:40] TheMue, cheers :) [15:45] * dimitern has reached eod [15:46] dimitern, TheMue, rogpeppe1, mgz: do you guys know offhand if we try to store charm configuration keys in mongo as key names? [15:46] natefinch: i think we *did* do that AFAIR [15:47] rogpeppe1: hmm interesting [15:48] rogpeppe1: there's an email on the juju ubuntu list entitled "Regression with dots in charm options" [15:49] natefinch: yeah, saw that, bug 1308146 being the relevent thing [15:49] Bug #1308146: not okForStorage error when deploying local charm [15:50] natefinch: what's not clear to me is when then actually started breaking [15:50] I guess just in 1.16->1.18? [15:51] yeah, could be. I care slightly less about when than about why [15:51] natefinch, we don't do that without escaping $ and . [15:51] natefinch: looking at state/settings.go, it does at least try to replace the dot (with full-width unicode dot) [15:51] dimitern: I had hoped we sanitized it [15:51] natefinch, take a look at state/settings.go === fabrice is now known as fabrice|family [15:53] natefinch, do you know what this job opening is for ? https://ch.tbe.taleo.net/CH03/ats/careers/requisition.jsp?org=CANONICAL&cws=1&rid=830 (i.e. juju as in core or as in ecosystem or something else?) [15:54] a good friend of mine (also good dev) called to ask if we're hiring [15:54] mgz: ping [15:55] dimitern: we have 1 engineer position open and that one.... that one you linked to is kind of more of a do a little bit of everything job to work with kapil and mark S and mark ramm etc for like product maangement type stuff [15:55] dimitern: so, that one is higher up in juju, but there is a juju core position open IIRC [15:56] natefinch, I see, well he's based in BG, so I guess no juju-core openings at the moment? [15:57] natefinch, I'd appreciate if you find it and send me the link by email, as browsing all openings I couldn't find juju-specific openings except this one [15:57] voidspace: hey [15:58] dimitern: I think the location is just a suggestion. Definitely ping Alexis about it, I know we have a dev position open, and I'm pretty sure it's in core. [15:58] mgz: hey, hi [15:58] mgz: but never mind... [15:58] ;_; [15:58] mgz: unping :-) [15:58] natefinch, cheers, will do [16:00] dimitern: thanks :) [16:00] dimitern: that is perhaps the most generic role description I have seen in my whole life :p [16:01] perrito666, lol, most of these on taleo we have are like this === Ursinha is now known as Ursinha-afk [16:06] ericsnow: ping [16:06] voidspace: hey hey hey [16:06] ericsnow: I just failed to create a review board review request [16:06] ericsnow: or at least, I created one entirely unrelated to my branch [16:06] ericsnow: could you walk me through it [16:06] ericsnow: I have a github pull request for the branch [16:07] voidspace: what is the review number? [16:07] ericsnow: https://github.com/juju/juju/pull/776 [16:07] ericsnow: 45 [16:07] voidspace: and it is associated with revision 9cac03a, right? [16:08] ericsnow: right [16:08] voidspace: did you set TRACKING_BRANCH = "upstream/master" in ~/.reviewboardrc? [16:08] ericsnow: no... [16:09] ericsnow: I'll do that [16:09] ericsnow: should that change be enough? [16:09] voidspace: if origin is set to something else (which it should be) and master is not up to date with upstream, you'll get bad diffs [16:09] voidspace: yeah [16:09] ericsnow: I made sure my branch was up to date first [16:10] ericsnow: so how do I kill that request and re-create it? [16:10] voidspace: well, give the tracking branch thing a try [16:10] I've done that, do I just post again? [16:10] voidspace: reviewboard is kind of dumb in that regard [16:10] voidspace: you have to do "rbt post -u" or "rbt post -r #" [16:11] voidspace: since RB links review requests to revisions uniquely and even discarded requests count :( [16:11] voidspace: just doing rbt post would give you an oh-so-helpful 500 error [16:13] ericsnow: so the diff is now correct - but title and summary are still the old ones [16:13] I did "rbt post -u" [16:13] voidspace: cool [16:13] voidspace: just edit them in the web interface [16:13] if I do "-r #" will it create a new one? [16:13] ok [16:13] ericsnow: thanks for your help [16:16] katco: I think you're an OCR today [16:16] reviews.vapour.ws/r/45/ [16:16] voidspace: right you are. currently reviewing a largish change-set [16:17] katco: ok, cool [16:17] :-) [16:17] voidspace: -r just means update that specific review request and -u mean match the revision to a request and update that one [16:17] voidspace: glad to help! [16:17] ericsnow: ah right [16:17] ericsnow: much appreciated :-) [16:17] looking forward to seeing you all again soon [16:21] voidspace: same here :) === jog_ is now known as jog [17:06] ericsnow: so in summary, it should definitely be done - but I shouldn't do it... === psivaa_-afk is now known as psivaa_ [17:06] ericsnow: and what do you mean "not sure if I intended this change", after you told me to do it... [17:06] ericsnow: :-p [17:06] voidspace: :) just not in that PR [17:07] ericsnow: heh, ok [17:19] ericsnow: one for you then [17:19] ericsnow: http://reviews.vapour.ws/r/46/ [17:20] voidspace: that might take a while to review :) [17:21] ericsnow: let me know when you can get to it [17:21] I've got all night... [17:23] voidspace: done [17:23] voidspace: I also added a little more explanation to the PR summary (which will become the merge commit message, right?) [17:24] voidspace: if you don't like it feel free to edit or remove it :) [17:28] ericsnow: looks good to me [17:28] ericsnow: thanks [17:28] voidspace: I was creating the same PR and that was my summary :) [17:29] Heh [17:29] ericsnow: I'm sorry... [17:29] voidspace: don't be :) [17:30] ericsnow: I'll set the issue on review 45 to fixed as it is no longer a diff against upstream/master [17:30] or at least won't be shortly [17:31] voidspace: totally [17:31] and that's me done for the day [17:31] see you all tomorrow [17:31] voidspace: see ya [17:37] holy mother of god there's a second page to this diff. [17:37] lol [17:38] <-- first time being OCR. gets thrown into the deep end immediately. [17:39] katco: looking at one of mine? [17:39] lol no, axw's. === Ursinha-afk is now known as Ursinha [18:01] natefinch, can you get someone to look into bug 1370635 [18:01] Bug #1370635: Unable to connect to environment after local upgrade on precise === ChanServ changed the topic of #juju-dev to: https://juju.ubuntu.com | On-call reviewer: see calendar | Open critical bugs: 1370635 [18:03] sinzui: yep. === niedbalski_ is now known as niedbalski [18:47] Has relation-list been deprecated? [18:48] It's being referenced from a charm MP I'm reviewing, but I only see that command available in the juju-0.7 package === Ursinha is now known as Ursinha-afk === fuzzy_ is now known as Ponyo === Ursinha-afk is now known as Ursinha === bodie_ is now known as Guest20692 === Guest20692 is now known as bodie_ [20:00] marcoceppi: ping [20:07] 1.21-alpha1 is released and it uses devel streams instead of the released streams === Ursinha is now known as Ursinha-afk [20:21] natefinch: why is there only one of those bugs you emailed on the topic? [20:26] perrito666: not sure what you're talking anout [20:27] I really have to run, sorry === Ursinha-afk is now known as Ursinha === jheroux is now known as jheroux_away [21:08] waigani: morning [21:11] menn0: hey [21:12] did you see the CI blocker: bug 1370635 [21:12] Bug #1370635: Unable to connect to environment after local upgrade on precise [21:12] just looking at the details on the ticket it seems like it might be related to recent MESS related changes [21:12] waigani: what do you think? [21:12] menn0: yeah, what is this: - '[fe80::f816:3eff:fe1f:67e1]:17070' [21:13] looks like a mac address? [21:13] it's a IPv6 address [21:13] get used to them :) [21:14] oooh [21:18] menn0: so you can't connect to the API if the user is in state but not added to the environment [21:18] yep [21:19] waigani: perhaps one of the migration steps isn't doing the right thing? [21:19] that would be the first thing I'd check, but he's authing with admin and I'd be surprised if admin was not added as a user to the env [21:19] waigani: thumper is out today isn't he? [21:20] having said that, thumper has been working hard to 'demote' the status of the admin user - and we do not have an admin user by default in an env [21:20] menn0: yep, thumper is away [21:21] waigani: true. but I don't think those changes are in 1.21-alpha2.1 are they? [21:21] yeah, no but didn't he land some prelim branches? [21:21] waigani: I'm just in the middle of testing my last bit of upgrade sync changes (yay!) and then I can jump on this blocker [21:21] waigani: it seems like it won't be too hard to figure out [21:21] anyway, it's just a hunch but I'd check if the user is in the environment [21:22] (famous last words) [21:22] yeah, sigh === Ursinha is now known as Ursinha-afk [22:04] ok, lets try the new propose thing === kwmonroe_ is now known as kwmonroe [22:09] TheMue: still around? [22:50] davecheney, waigani: thumper is out today. email standup? [22:56] menn0: sgtm [22:59] hey, someone is pushing without previously checking their code [22:59] state/metrics.go:231: no formatting directive in Warningf call [22:59] worker/uniter/charm/bundles_test.go:120: arg apiCharm.ArchiveURL() for printf verb %q of wrong type: (*net/url.URL, github.com/juju/utils.SSLHostnameVerification, error) [23:06] perrito666: I don't think everyone has the pre-commit hook in place [23:06] perrito666: so they don't see the vet warning [23:06] menn0: well in this case the push hook did not fail, it just warned me [23:07] perrito666: yep I get it too. I don't think the hook is set up to fail on vet errors, just warn as it does. [23:07] menn0: odd, I had the impression it failed [23:08] * menn0 shrugs [23:08] perrito666: I've only seen it warn so far (I've seen other vet warnings in the past) [23:08] ¯\_(ツ)_/¯ [23:09] sweet not only github suggests me to PR my recently pushed branch, it also shows a warning with a link to contributing suggesting to review the contributor policy of this repo [23:13] sweeet http://reviews.vapour.ws/r/49/diff/# [23:21] perrito666: review now, lots of comments [23:22] oh cool, tx davecheney [23:23] davecheney: reviewboard does not seem to agree [23:24] publised [23:26] aghh replying takes me out of the diff [23:26] it's a brilliant system [23:27] i love how thre are two different ways to publish your comments [23:27] one, with the "review" button [23:27] which allows you to add a final comment [23:27] and the other, the yelow hovering bar at the top of the screen which does not let you add comments [23:28] * perrito666 goes read the annotatef godoc after an intriguing comment [23:29] pretty sure [23:29] errors.Annotatef(nil, "something") => nil [23:29] excelent, I just read [23:29] if it doesn't then ignore my comemnt === Ursinha-afk is now known as Ursinha [23:30] yup // If the error argument is nil, the result of Annotatef is nil. [23:30] davecheney, perrito666: it does. errors.Trace too. [23:31] but isnt it a bit anti idiomatic if I return (Whatever, err) instead of an explicit nil? [23:31] and for the matter an explicit zeroed Whatever when err != nil? [23:32] davecheney: tx, Ill fix those while the food is in the oven [23:33] you people make excelent company while making dinner everyday :p [23:34] perrito666: you're right. if you're returning an error it's better to return nil for the other return value if there is one. [23:35] that Annotate/Trace feature is best used for funcs that just return an error [23:35] perrito666: what's for dinner? [23:36] waigani: the upgrade steps aren't even running [23:36] O_o ? [23:36] waigani: I think what's happening is a chicken and egg scenario [23:36] because upgrades needs access to the API? [23:36] waigani: the upgrade steps infrastructure wants an api.State connection [23:37] waigani: to give to the upgrade steps [23:37] waigani: but it can't open one, because the upgrade steps haven't run yet [23:37] waigani: fucking awesome [23:38] waigani: I'm not fully up to speed with why the API connection can't be opened though [23:38] but if the server is 1.20, a 1.21 client should still be able to connect to start the upgrades? [23:39] waigani: starting the upgrade worked fine [23:39] jujud restarted into 1.21 [23:39] it gets to the point of running the upgrade steps [23:39] and that's where things go wrong [23:39] ah, the order of the upgrade steps? [23:39] so the server is no longer 1.20 [23:39] waigani: nope [23:40] do we need to migrate the users to the env as the first step? [23:40] before any upgrade steps are run an API connection for machine-0 is set up [23:40] davecheney: btw, partial review means there are more underway? [23:40] and machine-0 is still 1.20 at that point right? [23:40] waigani: no [23:41] ah [23:41] waigani: machine-0 is running 1.21 [23:41] waigani: but the upgrade steps haven't run yet [23:41] well that's just stupid [23:42] it might be that we need to run DB migrations first, they need a state.State which will still work [23:42] so we need to make an exception to the new auth rule to allow upgrade steps to complete [23:43] but that's a fairly major change [23:43] waigani: that's probably a wiser move [23:43] waigani: I'm not completely up to speed with the recent user changes [23:44] waigani: do you understand what "environment not found" means? [23:46] menn0: so we may have to stage the migration to env users across two versions. first upgrade ensures all local users (i.e. admin) are added to environment. Second upgrade locks down API connection to allow connections only by users added to the environment. [23:47] waigani: that sounds sensible [23:48] waigani: or have some kind of workaround to just allow the migrations to work and then lock down the API [23:48] menn0: yep, that is the basic idea - how we implement that is the question [23:49] menn0: omlette with onnions and what wallyworld calls capsicums and escalopes [23:50] * wallyworld doesn't know what an escalopes is [23:50] waigani: I've got to meet a friend for coffee [23:50] wallyworld: http://en.wikipedia.org/wiki/Schnitzel [23:51] waigani: back in a bit [23:51] perrito666: oh, i know what Schnitzel is [23:51] menn0: one *horrible* workaround would be if user = "admin" all good [23:51] wallyworld: sorry translated spanish -> french -> english [23:51] :p [23:51] but we'd still have to stage the migration with a workaround [23:52] perrito666: sounds delicious, what time should i come over? [23:52] as the workaround would have to be removed from the code once all users are in the env [23:52] menn0: ^ [23:59] menn0: apiserver/admin.go:181 - this is where the error is coming from.