niemeyer | davecheney: Will do | 00:10 |
---|---|---|
davecheney | niemeyer: ty | 00:15 |
niemeyer | davecheney: The NewConfig branch seems polluted by an undeclared pre-req | 00:16 |
niemeyer | davecheney: https://codereview.appspot.com/6209092/diff/10001/environs/ec2/ec2.go?column_width=80 | 00:16 |
davecheney | yeah, only open.go and open_test.go | 00:16 |
davecheney | I will resubmit it once SetConfig is landed | 00:16 |
niemeyer | davecheney: Ok, it'd be nice to get the diff fixed | 00:16 |
davecheney | if you coudl take a cursory glance at environs/open{,_test}.go | 00:17 |
davecheney | that is the only part changed | 00:17 |
niemeyer | davecheney: It looks good | 00:17 |
davecheney | its not a big change, just exposing the EnvironConfig before it gets passed to Open | 00:18 |
niemeyer | davecheney: Yeah, it looks fine if that's all, but it'd be nice to clean up the diff before getting it in | 00:18 |
davecheney | i will certainly do that | 00:18 |
niemeyer | davecheney: Cool, should be a trivial LGTM after that | 00:21 |
twobottux | aujuju: Creating volume group in nova-volume Juju charm <http://askubuntu.com/questions/141552/creating-volume-group-in-nova-volume-juju-charm> | 07:55 |
TheMue | morning | 09:32 |
fwereade | heya TheMue | 09:44 |
rogpeppe | TheMue, fwereade: yo! | 09:49 |
TheMue | rogpeppe, fwereade: Heya | 09:51 |
fwereade | rogpeppe, heyhey | 09:51 |
rogpeppe | fwereade: i bet this weather is just what you're used to... were you really pining for a bit of old-fashioned english drizzle? :-) | 09:51 |
fwereade | rogpeppe, well, it *is* really nice for about 10 minutes | 09:52 |
* rogpeppe likes a bit of rain too | 09:52 | |
rogpeppe | but not for months on end :-) | 09:52 |
fwereade | rogpeppe, after that I start to congratulate myself for moving ;) | 09:52 |
* TheMue sits again on the veranda, right now 27°C and wonderful sun. | 09:55 | |
=== Guest__ is now known as smaddock | ||
TheMue | So, short break, have to bring daughter to work. | 10:20 |
Aram | morning. | 10:20 |
fwereade | hey ra | 10:24 |
fwereade | hey Aram | 10:24 |
* davecheney waves to rogpeppe | 11:25 | |
* rogpeppe waves to davecheney | 11:25 | |
* rogpeppe waves to davechen1y | 11:25 | |
davecheney | so, how would you like to manage this merge ? | 11:25 |
rogpeppe | davecheney: good question. if the ImageSpec->instanceSpec stuff can go in today, it would be quite nice if i could do them both at once. | 11:26 |
davecheney | how is imagespec looking ? | 11:26 |
rogpeppe | davecheney: i've spent... too much time pissing around with splitting up branches and merging and remerging | 11:26 |
davecheney | f'yeah, i'm over reqs | 11:26 |
rogpeppe | davecheney: it should be good to go, but it needs gustavo's go ahead because i'm not quite sure what he wants in the doc comments. | 11:27 |
davecheney | that is cool | 11:27 |
rogpeppe | davecheney: it should be less important now that i've unexported the types. | 11:27 |
davecheney | i'm happy to wait for those two to go in | 11:27 |
davecheney | then I'll merge and adjust as needed | 11:27 |
davecheney | gostavo has LGTM in principal the various bits | 11:27 |
rogpeppe | davecheney: thanks. | 11:27 |
davecheney | i'm sad that the proxy idea didn't get up | 11:27 |
davecheney | but at the end of it I couldn't offer a strong enough argument over Environ.SetConfig | 11:28 |
rogpeppe | davecheney: i think it made sense. but i suppose it only makes sense when the provider has no state | 11:28 |
davecheney | possibly if there was going to be more than one PA | 11:28 |
davecheney | once we have somethig working | 11:28 |
davecheney | i'll hvae another crack at introducing the proxy idea | 11:29 |
davecheney | as a way of seperating concerns | 11:29 |
rogpeppe | davecheney: i quite liked the "return a proxy within ec2" idea | 11:29 |
davecheney | I was thinking proxy.(*proxyEnviron).SetConfig(config) | 11:29 |
davecheney | which would reload it on command | 11:29 |
davecheney | which might resolve gustavo's concerns about control | 11:30 |
davecheney | from my vantage point, the Environs themselves contain almost no state | 11:30 |
rogpeppe | davecheney: i was thinking type Proxy struct {env environs.Environ} | 11:30 |
davecheney | yup | 11:30 |
davecheney | or even | 11:30 |
davecheney | type Proxy struct { environs.Environ } | 11:31 |
rogpeppe | davecheney: and then environs.config.Open returns Proxy{ec2environ} | 11:31 |
davecheney | but that has visilibity problems | 11:31 |
davecheney | anyway, i'll wait til we have something that works | 11:31 |
rogpeppe | davecheney: yeah, i think you want to be sure that all methods are reimplemented | 11:31 |
davecheney | rather than spinning on this | 11:31 |
rogpeppe | davecheney: yeah, the current thing will work. | 11:32 |
davecheney | from my POV I need some commands to do some functional testing on the PA | 11:33 |
davecheney | but I was wondering how jujuc is coming along ? | 11:33 |
rogpeppe | davecheney: it needs more stuff. | 11:33 |
davecheney | from a quick look at the supercommand stuff | 11:34 |
rogpeppe | davecheney: i'm sure fwereade will be cranking out more commands soon though | 11:34 |
davecheney | i can add extra commands to the framework pretty simply | 11:34 |
rogpeppe | davecheney: by "functional testing" you mean ad-hoc testing? | 11:34 |
davecheney | I basically need to invoke, addmachine and remove machine | 11:34 |
davecheney | in another window | 11:34 |
rogpeppe | davecheney: can't you write tests that use the State methods to do that? | 11:34 |
davecheney | i also need to figure out how to hook the provisioning command up to StateTest so I can do unit tests against dummy with it | 11:35 |
rogpeppe | davecheney: i tend not to do any ad-hoc testing, but maybe that's wrong. that was always the only method i ever used, in previous lives... | 11:35 |
davecheney | i've found there is value in doing both | 11:36 |
davecheney | for example I wrote a quick SOCKS over ssh proxy | 11:36 |
davecheney | then left that running on the open internet for a day to load test the ssh client code | 11:36 |
rogpeppe | davecheney: these days i tend to put the effort i would spend on thinking of ad hoc tests into thinking of reusable tests | 11:36 |
rogpeppe | davecheney: there's definitely room for functional testing, but even then i think there's value in scripting it. | 11:37 |
rogpeppe | davecheney: and until we have a framework for that, maybe we should just spend time writing unit tests as good as we can think of. | 11:37 |
davecheney | of course, hence the need for simple cli tools to push the state around so I can watch the PA recact to it | 11:38 |
rogpeppe | davecheney: i think i'd just hook them both up to the same zk and use the state methods and check that the pa reacts in the correct way. | 11:39 |
rogpeppe | davecheney: perhaps using the dummy provider so you can read actions as they take place. | 11:39 |
davecheney | yup, i'm not sure how much of that harness exists atm | 11:39 |
davecheney | i know environs/jujutest does some of it | 11:40 |
rogpeppe | davecheney: cmd/juju does a certain amount of it. | 11:40 |
rogpeppe | davecheney: really, i think it would be nice if the dummy provider could be configured to start zk | 11:40 |
rogpeppe | davecheney: then we get an almost-complete environment for testing. | 11:41 |
davecheney | i'll look into that | 11:41 |
davecheney | i don't think it does that at the moment | 11:41 |
rogpeppe | davecheney: it doesn't | 11:41 |
rogpeppe | davecheney: it shouldn't be hard though, particular with the recent refactoring of it i've done. | 11:41 |
davecheney | in fact I think it works the opposite, it waits for the juju/testing to make a zk | 11:41 |
davecheney | indeed | 11:41 |
davecheney | i'll look at it tomorrow | 11:41 |
davecheney | rogpeppe: can you chain req branches ? | 11:43 |
rogpeppe | davecheney: yeah | 11:43 |
davecheney | ie propose a, propose b -req a, propose c -req b | 11:44 |
rogpeppe | davecheney: although it's a hassle, because once you've changed the base, you have to remerge all the subsequent branches in the chain | 11:44 |
davecheney | yes, that doth blow | 11:44 |
rogpeppe | davecheney: but tbh, it's not as bad as it was. you really only need to remerge when you come to actually submit the next branch. | 11:45 |
davecheney | i'm looking forward to phase of th eproject when we've got something we can itterate on | 11:45 |
rogpeppe | davecheney: definitely. | 11:45 |
davecheney | when I was building the platform at atlassian we got a prototype working very quickly | 11:45 |
rogpeppe | davecheney: i'm just about to propose a branch that gets the go tools and runs them on the server side, BTW | 11:45 |
davecheney | but then there was a big gap of nearly 2 months before we got the next version working | 11:46 |
rogpeppe | davecheney: we've already got a prototype - the python version... | 11:46 |
davecheney | rogpeppe: nice | 11:46 |
davecheney | rogpeppe: the first version of the atlassian platform was three desktops that we built by hand | 11:46 |
davecheney | but the next version took a long time because we decided to build all the automation first | 11:46 |
davecheney | but, once it was running itteration was very fast | 11:47 |
rogpeppe | davecheney: i think that the Go version will be nice to iterate on when we've got it up. | 11:47 |
davecheney | yup | 11:47 |
rogpeppe | davecheney: i'm quite happy with how the overall structure is turning out | 11:47 |
rogpeppe | davecheney: slight misgivings about the whole necessity of the State abstraction, as you pointed out, but i'm ok with it. | 11:48 |
davecheney | rogpeppe: tell me more | 11:49 |
rogpeppe | davecheney: i think it was you that suggested that all of state could be represented more compactly by a simple parent/child/attribute abstraction. | 11:50 |
davecheney | I was thinking that I would like it if I could as the topology for a watcher, rather than the way watchers are quite chummy with the zk nodes themselves | 11:51 |
rogpeppe | s/as the/ask the/ ? | 11:51 |
davecheney | ya | 11:52 |
davecheney | for the particular example of wtching machines | 11:52 |
davecheney | I want the ability to subscribe to a part of the toploogy | 11:52 |
davecheney | what we have now works fine | 11:52 |
rogpeppe | davecheney: +1 | 11:52 |
davecheney | watch /topology, then parse the full thing | 11:52 |
davecheney | but given that the State already has the whole topology as a data structure | 11:53 |
davecheney | it would make sense that it could push data to any watcher directly | 11:53 |
davecheney | but I wonder if gustavo has plans for the topology | 11:53 |
davecheney | as it is a crutch for the limitations of zk | 11:53 |
rogpeppe | davecheney: i think the eventual idea is that we push all of state behind a server API | 11:53 |
davecheney | at which point all the watchers are going to be pub/sub kind of things | 11:54 |
rogpeppe | davecheney: then we don't have to worry about atomic changes to the topology because the server can mediate that | 11:54 |
rogpeppe | davecheney: exactly | 11:54 |
davecheney | speaking of Environs | 11:54 |
rogpeppe | davecheney: it's interesting to think about what level we might want the server API | 11:55 |
davecheney | I was going to try a branch that removes the requirement to pass state.Info to Environ.StartInstance | 11:55 |
rogpeppe | davecheney: how would the new instance know how to connect to the state then? | 11:55 |
davecheney | rogpeppe: i hope it looks like a URL tree | 11:55 |
davecheney | pretty much the same as the zk topology | 11:55 |
davecheney | but with REST calls that you can subscribe to changes to a path and it's children, etc | 11:55 |
rogpeppe | davecheney: yeah, but what level of abstraction are the URLs? | 11:55 |
davecheney | without giving it any thought | 11:56 |
rogpeppe | davecheney: i dunno. i was wondering about something higher level. | 11:56 |
davecheney | i think the URL's should look like the current ZK path | 11:56 |
davecheney | but that is without giving it any serious consideration | 11:56 |
rogpeppe | davecheney: i don't think so, actually. i think that constrains the possibilities to db optimisation. | 11:56 |
rogpeppe | s/to db/for db/ | 11:56 |
rogpeppe | davecheney: higher level API gives more scope for changing the impl behind the scenes | 11:57 |
rogpeppe | davecheney: anyway... back to ground level | 11:57 |
davecheney | yeah | 11:57 |
rogpeppe | davecheney: how does StartInstance work without having a StateInfo? | 11:57 |
rogpeppe | s/does/would/ | 11:57 |
davecheney | there is a StateInfo method on the Environ itself | 11:58 |
davecheney | ergo, it already knows it's state | 11:58 |
davecheney | err, state.Info | 11:58 |
rogpeppe | davecheney: not necessarily. i wanted to keep open the possibility that one environ might connect to a state from elsewhere. | 11:58 |
rogpeppe | davecheney: there's no essential connection between a state and a given environ. | 11:58 |
rogpeppe | davecheney: for instance, at some point in the future, we want to have the possibility of several environments using the same "bootstrap" node. | 11:59 |
fwereade | rogpeppe, hmm, my reading of that had been that they'd still be separate states despite all happening to coexist within the same zookeeper (there's a chrooty thing for ZK, right?) | 12:00 |
fwereade | rogpeppe, it feels to me like a state is pretty strongly associated with an environ | 12:00 |
davecheney | fwereade: i agree | 12:01 |
davecheney | so either Environ gets closely bound to a state.Info, or is completely abstracted from it | 12:01 |
davecheney | either way, the requirement to pass state.Info in StartInstance will go away | 12:01 |
fwereade | rogpeppe, davecheney: yeah, that param definitely feels wrong to me | 12:02 |
davecheney | fwereade: rogpeppe i'm guessing it's there to pass details to the machine agent on how it can find the ZK and bootstrap itself so to speak ? | 12:02 |
rogpeppe | davecheney: yes, at least that. i'm trying to remember the other scenarios. | 12:03 |
davecheney | or to say it another way, how it can build and Environ that matches that of the Provisioning Agent that created it | 12:03 |
fwereade | davecheney, rogpeppe: sorry, I'm confused... doesn't the environ already know its own state info? | 12:03 |
davecheney | fwereade: yes, it must, because there is this method | 12:03 |
davecheney | Environ.StateInfo | 12:04 |
rogpeppe | fwereade: only if you've bootstrapped it. | 12:04 |
davecheney | rogpeppe: i'm happy with that restriction, the PA doesnt' run til bootstrapping is complete, unless i'm mistaken | 12:04 |
rogpeppe | fwereade: but you could reasonably have an environ that you hadn't bootstrapped, but were using with a provisioning agent and a state from somewhere else, i think. | 12:04 |
fwereade | rogpeppe, ok, but if you haven't bootstrapped it you don't have a state: you just know that there *will* be one on localhost once bootstrap is complete | 12:04 |
davecheney | rogpeppe: ah, i see what i'm missing | 12:05 |
davecheney | bootstrapping uses Environ.StartInstance to start machine(0) | 12:05 |
rogpeppe | davecheney: actually, it uses startInstance; slightly different. | 12:06 |
davecheney | still, possibly a strategic nil could be passed, suggesting, use whatever state you have internally | 12:06 |
rogpeppe | part of the problem is we don't want to pass the ec2 secret key in the cloudinit script | 12:07 |
fwereade | davecheney, rogpeppe: it feels to me like bootstrap is the special case, and it's misleading to expose those details to the outside world | 12:07 |
davecheney | i concur | 12:07 |
rogpeppe | hmm, i think it feels quite clean actually. we explicitly tell the new machine how to connect to the juju state. | 12:08 |
rogpeppe | it's always going to need to do that, i think. | 12:08 |
fwereade | rogpeppe, but the environ is so closely tied to the state that it feels wrong to have to tell it again | 12:08 |
rogpeppe | fwereade: i don't see the coupling as that close actually. | 12:09 |
fwereade | rogpeppe, Environ.StateInfo implies otherwise, to me | 12:10 |
rogpeppe | fwereade: i like the idea of being able to have the machines in a single environ controlled by multiple states, for example. | 12:10 |
fwereade | rogpeppe, sure, that has potential: but I'm pretty sure that's not what we're implementing right now :p | 12:11 |
fwereade | rogpeppe, would you say that Environ.StateInfo was a misstep that we should remove? | 12:11 |
davecheney | fwereade: rogpeppe it appears to me that if the environ has a StateInfo method, then it knows it's own state, so StartInstance shuldn't need to be told a stateinfo | 12:11 |
fwereade | davecheney, exactly so | 12:12 |
davecheney | on the other hand, if the envion shuldn't need to know about the stae, then the StateInfo method is misleading | 12:12 |
rogpeppe | davecheney: no, i don't think an environ does know its own state | 12:12 |
davecheney | as it stands, it's not a big deal to do si, _ := environ.StateInfo(); environ.StartInstance(99, si) | 12:12 |
rogpeppe | davecheney: the private keys are not accessible to an environ for example | 12:12 |
davecheney | rogpeppe: then what is returned from environ.StateInfo() is not actually useful then ? | 12:13 |
davecheney | oh, hang on | 12:13 |
davecheney | i'm talking about stateInfo, which is just a pretty connection string to find zookeepers | 12:13 |
fwereade | davecheney, I must have missed something; how does that change things? | 12:15 |
davecheney | fwereade: 22:12 < rogpeppe> davecheney: the private keys are not accessible to an environ for example | 12:16 |
* rogpeppe is thinking | 12:16 | |
davecheney | ^ i interprited that to mean more than it did | 12:16 |
fwereade | davecheney, ah, cool, thanks | 12:16 |
rogpeppe | davecheney: yeah, and i'm not sure i meant what i said. | 12:16 |
davecheney | fwereade: rogpeppe i'm sure this is over simplifying this, but for the privisioning, machine and unit agents | 12:17 |
davecheney | to get up and running | 12:17 |
davecheney | all then need to know is the argument they are passed to jujud, and a stateinfo, which is really just a string passed to --zookeeper-servers | 12:17 |
fwereade | davecheney, yes, essentially | 12:18 |
davecheney | and so, Environ.StartInstance() is shorthand for 'start a new machine, and run this daemon passing these arguments' | 12:18 |
fwereade | davecheney, the PA also needs to know the environ, and the UA/MA need to know what U/M they's acting for | 12:18 |
davecheney | yeah, there is clearly more too it than I just glossed over | 12:18 |
davecheney | but from the point of view of 'how do I find zookeeper so I can watch stuff' | 12:19 |
rogpeppe | davecheney: one issue is the possibility that we need a different internal vs external IP address. i'm not *sure* that the environ is in a good place to know which to use. | 12:19 |
fwereade | davecheney, sure, understood | 12:20 |
* fwereade thinks | 12:20 | |
davecheney | rogpeppe: for the short term (read ec2 and workalikes) I think we can use the assumption that all machiens in the same environment areusing the same network | 12:20 |
rogpeppe | davecheney: what about the juju client? | 12:20 |
fwereade | davecheney, it still seems to me that the fact that there's a different ZK address is an incredibly minor aspect of the things that are different when starting the first node | 12:21 |
davecheney | rogpeppe: good point, i don't have an answer to that, other than saying we probably need two state.Info's | 12:21 |
davecheney | external and internal | 12:21 |
davecheney | or something that clearly identifies external (as in not inside the environment) and internal (that are) | 12:21 |
davecheney | otherwise we'll go mad with the permutations | 12:21 |
rogpeppe | davecheney: how does a machine know if it's internal or external? | 12:22 |
davecheney | jujuc == external, jujud == internal | 12:22 |
davecheney | as a start | 12:22 |
fwereade | davecheney, so it feels wrong to push that one specific difference up to that level while leaving the others implicit | 12:22 |
fwereade | davecheney, wait, what? | 12:22 |
davecheney | but trying to make one connectino string serve two masters sounds worse | 12:23 |
davecheney | rogpeppe: as I understand it, all machines are internal; the are inside the environment | 12:23 |
rogpeppe | currently StateInfo returns the external address. | 12:23 |
davecheney | if ec2 lets that work, then it's a solved problem for now | 12:23 |
rogpeppe | davecheney: the difficulty is that Environ is used by the client as well as the cloud machines | 12:23 |
rogpeppe | davecheney: i think the connection methods are different too. i'm not sure we use ssh between cloud machines. | 12:24 |
davecheney | ahh, so the reason StartInstance takes a state.Info is to allow us to construct an 'internal' connection string | 12:25 |
rogpeppe | davecheney: that's certainly one reason, yes. | 12:25 |
fwereade | davecheney, rogpeppe: hmm... except when bootstrapping, the state info comes from an Instance, right? | 12:26 |
fwereade | davecheney, rogpeppe: which already knows both internal and external addresses | 12:27 |
rogpeppe | fwereade: no, it comes from the private storage | 12:27 |
fwereade | rogpeppe, how did it get there? | 12:27 |
rogpeppe | fwereade: it was put there at bootstrap time. | 12:27 |
fwereade | rogpeppe, if not from the Instance constructed on bootstrap | 12:27 |
rogpeppe | fwereade: at that time we don't know the DNS addresses of the instance. | 12:27 |
davecheney | rogpeppe: fwereade reviewing state/open.go, State info has a slice of addresses to connect to, is that what you mean by internal and external ? | 12:28 |
fwereade | rogpeppe, wait, you just said the information was put in provider storage at bootstrap time | 12:28 |
rogpeppe | fwereade: the instance id only | 12:28 |
fwereade | davecheney, no, the slice is all ZKs; internal/external is just about what address we use to connect to a ZK or group thereof | 12:29 |
rogpeppe | so... if i understand the general idea, we could have ... | 12:29 |
fwereade | rogpeppe, ok, and the instance id is used at some point to get an Instance, from which we get the public address and discard the private? | 12:29 |
rogpeppe | one mo, tel call | 12:30 |
fwereade | rogpeppe, ...and we're now discussing how we go about reacquiring the private address? | 12:30 |
rogpeppe | fwereade: yeah | 12:30 |
fwereade | rogpeppe, it seems to me that the trouble is in throwing away half the information in the first place | 12:30 |
rogpeppe | so... if i understand the general idea, we could have a "local" argument to StateInfo which determines which info to get. | 12:31 |
rogpeppe | 'cos we can't get rid of StateInfo entirely, right? | 12:31 |
rogpeppe | so we're suggesting that StartInstance call StateInfo(local) inside itself, rather than taking an explicit state.Info arg? | 12:32 |
fwereade | rogpeppe, perhaps something like that: I haven't thought it through entirely | 12:33 |
davecheney | rogpeppe: i'd like to try that | 12:33 |
fwereade | rogpeppe, but it feels like a potentially fruitful avenue | 12:33 |
rogpeppe | i don't really see the point. i don't think it'll make anything significantly simpler | 12:33 |
davecheney | or at least have StartInstance(314, nil) as a sentinal for 'pass whatever state.Info you know/makes sense/sounds best' | 12:33 |
davecheney | rogpeppe: as it sounds like the reason StartInstance takes a state.Info is to facilitate bootstrapping | 12:34 |
fwereade | davecheney, doesn't StartInstance imply non-bootstrap in the first place? | 12:34 |
* davecheney shrugs | 12:34 | |
rogpeppe | fwereade: yes | 12:35 |
fwereade | davecheney, rogpeppe: I'm not bothered what we pass to startInstance, but I'm concerned about dirtying up StartInstance when in practice it will *always* be called with nil... won;t it? | 12:35 |
fwereade | davecheney, rogpeppe: ... or .StateInfo | 12:35 |
fwereade | davecheney, rogpeppe: depending on how we do the details | 12:35 |
rogpeppe | fwereade: it means that StartInstance will have to read the provider local storage each time, i think. | 12:36 |
davecheney | fwereade: or to put it another way, if the PA has to call StartInstance when it sees a machine appear in the topology, what is it supposed to use for that argument | 12:36 |
davecheney | at this moment the only thing it can use is the value from a.Conf.StateInfo | 12:36 |
davecheney | which comes from the jujud super command framework | 12:37 |
fwereade | davecheney, rogpeppe: how does the same argument not apply to Environ.StateInfo? | 12:37 |
davecheney | fwereade: that is an intersting one | 12:37 |
rogpeppe | fwereade: if the caller already has a StateInfo, it can pass that to StartInstance each time. | 12:37 |
davecheney | the PA is connected to a state.State | 12:37 |
davecheney | it find a *ConfigNode by watching /enviornment, and passes that to environs.NewEnviron | 12:38 |
davecheney | and gets an Environ | 12:38 |
rogpeppe | if at some point we want to be able to adjust the set of database machines at runtime, it will be good to be able to do that through the existing state. | 12:38 |
davecheney | what that environ.StateInfo() returns is a damn good question | 12:38 |
rogpeppe | davecheney: the bucket will be configured in the attributes it passes to SetConfig | 12:39 |
rogpeppe | davecheney: and that's what StateInfo will use to return the state.Info | 12:39 |
fwereade | rogpeppe, we surely will at some stage... in which case surely the right answer *is* to read it every time | 12:39 |
fwereade | rogpeppe, but this seems essentially orthogonal to the question of whether it needs to be passed to StartInstance | 12:40 |
rogpeppe | fwereade: i'm not sure. i think the provider storage is good for bootstrap, but we can use other means when we're up and running. | 12:40 |
rogpeppe | fwereade: bootstrap and client connections, of course. | 12:41 |
rogpeppe | fwereade: there's no way of *watching* provider storage, i think | 12:41 |
fwereade | rogpeppe, I thought you said bootstrap didn't use StartInstance | 12:41 |
fwereade | rogpeppe, davecheney: oh hell, EOD, got to go to the bank :( | 12:42 |
rogpeppe | BTW the provider state is written *after* the bootstrap node is successfully started. | 12:42 |
fwereade | rogpeppe, davecheney: hope I wasn't just muddying the waters for you | 12:42 |
rogpeppe | fwereade: no, it's all good stuff | 12:42 |
fwereade | rogpeppe, I know; don't get current significance though | 12:42 |
davecheney | +1 | 12:43 |
rogpeppe | fwereade: it means that the bootstrap node doesn't necessarily have access to the provider state when it starts. | 12:43 |
rogpeppe | of course in practice with ec2, it's so slow that it will in fact. | 12:43 |
fwereade | rogpeppe, but we bake the stateinfo into cloud-init regardless | 12:44 |
rogpeppe | fwereade: we can't do that if we can't pass it in to StartInstance | 12:44 |
rogpeppe | fwereade: because StartInstance will, of necessity, retrieve the state info from the provider storage bucket | 12:45 |
fwereade | rogpeppe, but the environ *knows* it's bootstrapping, and it fully controls the cloud-init, and it *knows* it's starting a ZK and relevant agents on that instance, and hence it *knows* that it can use localhost | 12:45 |
fwereade | rogpeppe, and did I misunderstand about StartInstance not actually being used to bootstrap anyway? | 12:45 |
rogpeppe | fwereade: i'm not sure that the Environ knows that it's on a bootstrap node. | 12:46 |
davecheney | if I can interrupt for a moment | 12:46 |
rogpeppe | davecheney: please do | 12:46 |
* fwereade listens | 12:47 | |
davecheney | is the reason we're saying 'we can't just let the Environ pass what it' thinks is it's state info to any new machine via StartInstance' is because it might have 'localhost' as its zk host ? | 12:47 |
rogpeppe | davecheney: that's not the only reason. | 12:47 |
rogpeppe | davecheney: the reason we were just talking about was that there's more than one source for a StateInfo | 12:47 |
rogpeppe | davecheney: it might come from the provider storage; or it might come from being passed into the cloudinit script. | 12:48 |
davecheney | rogpeppe: but from the POV of the PA, there is only one stateinfo | 12:48 |
davecheney | their are many, but this one belongs to the PA | 12:48 |
rogpeppe | davecheney: yeah, the one that's passed on the command line | 12:48 |
fwereade | davecheney, rogpeppe: I do actually have to go now; ttyl :) | 12:48 |
rogpeppe | fwereade: k | 12:48 |
davecheney | kk | 12:48 |
rogpeppe | fwereade: c u tomorrow | 12:48 |
* rogpeppe also has to go to lunch soon | 12:49 | |
davecheney | fair enough, lets wrap up | 12:49 |
davecheney | from what i've read today, the best course of action is to not change naything | 12:49 |
davecheney | the PA calls environ.StartInstance(999, a.Conf.StateInfo) | 12:49 |
davecheney | we'll revisit it later, if necessary | 12:50 |
rogpeppe | davecheney: i *think* that's good. i'm open to the idea of a change, but in this case i'm not sure it helps much. | 12:50 |
rogpeppe | davecheney: passing in StateInfo explicitly means the environ doesn't need to care how we got it. | 12:51 |
rogpeppe | davecheney: which i *think* is a reasonable separation of concerns. but please keep on considering alternatives! | 12:52 |
rogpeppe | right, lunch! | 12:52 |
rogpeppe | davecheney: see you tomorrow, i hope, if i get up early enough. | 12:53 |
davecheney | rogpeppe: kk, i'll catch you on the next rotation | 13:09 |
andrewsmedina | rogpeppe: hi | 13:54 |
andrewsmedina | rogpeppe: I sent another review | 13:55 |
rogpeppe | andrewsmedina: thanks. i'll take a look. | 13:58 |
* niemeyer waves | 14:03 | |
rogpeppe | niemeyer: yo! | 14:03 |
rogpeppe | andrewsmedina: LGTM | 14:07 |
andrewsmedina | rogpeppe: thanks \o/ | 14:07 |
rogpeppe | niemeyer: i updated https://codereview.appspot.com/6188068/ to unexport the types and change the docs. hopefully should be better now. | 14:08 |
niemeyer | rogpeppe: Cool, thanks | 14:09 |
niemeyer | rogpeppe: Agreed regarding it going out of the ec2 package eventually | 14:09 |
niemeyer | rogpeppe: We don't have to do that now, but let's just watch out to lead the code towards making them sensible there (it's already going in that direction it seems) | 14:09 |
rogpeppe | niemeyer: will do. | 14:10 |
TheMue | niemeyer: Moin and thx for the reviews. | 14:14 |
niemeyer | rogpeppe: It actually feels like going backwards a bit | 14:14 |
rogpeppe | niemeyer: oh? | 14:15 |
niemeyer | rogpeppe: All those field name changes will have to go back again in the next branch that does the actual switch over | 14:15 |
niemeyer | rogpeppe: The way we have colseries and colServer also feels quite awkward | 14:15 |
niemeyer | rogpeppe: These names should be internally consistent | 14:15 |
rogpeppe | niemeyer: i'm not sure. it's only the instance contraint that will have to change | 14:16 |
rogpeppe | niemeyer: colseries is my mistake - a global replace too enthusiastic! | 14:16 |
niemeyer | rogpeppe: Ah, phew | 14:16 |
niemeyer | TheMue: Heya! | 14:16 |
niemeyer | TheMue: np | 14:16 |
rogpeppe | niemeyer: i think that instanceSpec will remain private | 14:16 |
rogpeppe | niemeyer: and instanceConstraint will be significantly different | 14:16 |
niemeyer | rogpeppe: I'm tempted to suggest moving the InstanceConstraints to environs right now | 14:17 |
rogpeppe | niemeyer: so i don't mind it being private now | 14:17 |
niemeyer | rogpeppe: If it will be significantly different, we're doing it wrong | 14:17 |
rogpeppe | niemeyer: can we leave it as it is - i've got three upstream branches that i'm juggling on top of this one | 14:17 |
rogpeppe | niemeyer: then i can do the constraints stuff later | 14:17 |
niemeyer | rogpeppe: Yep, sure | 14:18 |
niemeyer | rogpeppe: Done | 14:20 |
rogpeppe | niemeyer: thanks a lot | 14:20 |
niemeyer | rogpeppe: np | 14:20 |
rogpeppe | niemeyer: remind me again how i can get the full revision id for the current branch out of bzr, please. | 14:46 |
rogpeppe | niemeyer: my google-fu has deserted me | 14:46 |
niemeyer | rogpeppe: revision-info should do | 14:46 |
rogpeppe | ah! | 14:46 |
rogpeppe | niemeyer: i was trying revno and info | 14:47 |
niemeyer | rogpeppe: revision-info --tree is relevant in some cases | 14:47 |
rogpeppe | revno -v should do it, i reckon | 14:47 |
smaddock | bcsaller: ping | 14:51 |
twobottux | aujuju: Juju error: Server refused to accept client <http://askubuntu.com/questions/141687/juju-error-server-refused-to-accept-client> | 14:52 |
niemeyer | Lunch, biab | 15:12 |
niemeyer | TheMue: ping | 16:08 |
TheMue | niemeyer: pong | 16:08 |
niemeyer | TheMue: yo | 16:08 |
niemeyer | TheMue: Would you mind if we at least delayed the addition of that method? | 16:08 |
niemeyer | TheMue: It feels like an awkward interface to me.. I can't see what this method is offering that we can't do with the other methods we have | 16:09 |
TheMue | niemeyer: So far I've got no problem. The original is used two or three times (beside the tests). | 16:09 |
niemeyer | TheMue: So it'd be awesome if we could keep that out while we figure the answer for that | 16:09 |
TheMue | niemeyer: So I'll see when I reach this point. | 16:09 |
niemeyer | TheMue: I'm sure it's used, but I think we have a better interface that may enable its original use case withou tit | 16:10 |
andrewsmedina | niemeyer: https://codereview.appspot.com/6099051/ | 16:10 |
niemeyer | andrewsmedina: Neat, will give it a final pass | 16:10 |
TheMue | niemeyer: OK, so I'll kick it with the next proposal. | 16:10 |
niemeyer | TheMue: Cheers, please ping me once you're done.. I suspect it's ready for going in, and will check as soon as you push | 16:11 |
niemeyer | andrewsmedina: Why network.Subnet has no xml tag? | 16:11 |
andrewsmedina | niemeyer: its only used to create a new net | 16:14 |
andrewsmedina | niemeyer: this attribute is not returned in the xml generated by virsh | 16:16 |
niemeyer | andrewsmedina: Cool | 16:19 |
niemeyer | andrewsmedina: The tests will fail without root, right? | 16:22 |
andrewsmedina | niemeyer: wrong | 16:29 |
niemeyer | andrewsmedina: Ah, you're faking the whole thing.. hmmm | 16:29 |
niemeyer | andrewsmedina: That's both nice, and not''' | 16:29 |
andrewsmedina | niemeyer: yes... | 16:30 |
niemeyer | andrewsmedina: Either way, we can move forward like that and address it later | 16:30 |
niemeyer | andrewsmedina: It's better then the opposite I guess | 16:30 |
andrewsmedina | niemeyer: but it was the only way that I found not to change the network configuration of the machine on which the tests have been run | 16:31 |
niemeyer | andrewsmedina: Yeah, that's what I mean.. your approach is better than being *just* on the other side of the fence | 16:32 |
niemeyer | andrewsmedina: At some point in the future, once that's all working well, we can add some extra tests to *optionally* guarantee that it works for real | 16:32 |
niemeyer | andrewsmedina: Or maybe not.. external functional tests would deal with that too | 16:32 |
niemeyer | andrewsmedina: Either way, you have a review with a few trivialities, and LGTM | 16:32 |
niemeyer | andrewsmedina: Please ping me once these are done and I'll submit | 16:33 |
niemeyer | andrewsmedina: (rog had a trivial too) | 16:33 |
andrewsmedina | niemeyer: ok | 16:33 |
andrewsmedina | niemeyer: what trivial rog had? | 16:33 |
niemeyer | andrewsmedina: It's in the CL | 16:33 |
andrewsmedina | where? | 16:33 |
niemeyer | andrewsmedina: https://codereview.appspot.com/6099051/diff/15001/environs/local/network.go#newcode92 | 16:34 |
niemeyer | andrewsmedina: Also part of the LGTM mail he sent | 16:34 |
andrewsmedina | niemeyer: I will work on these issues | 16:36 |
andrewsmedina | brb | 16:43 |
TheMue | niemeyer: ping, propose is in. | 16:50 |
* hazmat lunches | 16:59 | |
rogpeppe | niemeyer: this should be trivial: https://codereview.appspot.com/6257043/ | 17:00 |
niemeyer | TheMue: Cheers | 17:05 |
niemeyer | rogpeppe: Cool | 17:05 |
rogpeppe | niemeyer: as should this: https://codereview.appspot.com/6249049/ | 17:06 |
rogpeppe | niemeyer: and the one after that is the important one... just doing final amazon test now before proposing | 17:07 |
niemeyer | rogpeppe: LGTM on first | 17:08 |
rogpeppe | niemeyer: thanks a lot | 17:08 |
niemeyer | rogpeppe: LGTM on second too, thanks | 17:09 |
niemeyer | TheMue: Going through it now | 17:09 |
rogpeppe | niemeyer: lovely jubbly, ta | 17:09 |
TheMue | niemeyer: great, thx | 17:09 |
rogpeppe | niemeyer: here's the boy: https://codereview.appspot.com/6245048 | 17:23 |
rogpeppe | niemeyer: i tried to split it up more, but it wasn't having any of it (too much interdependency) | 17:23 |
rogpeppe | niemeyer: if it's any consolation, the code ends up 200 lines *shorter* after this CL... | 17:23 |
rogpeppe | niemeyer: gotta go now. | 17:24 |
niemeyer | rogpeppe: Super, thanks a lot | 17:24 |
rogpeppe | niemeyer: i'll be quite excited if this goes in | 17:24 |
rogpeppe | niemeyer: see ya tomorrow | 17:25 |
niemeyer | rogpeppe: Well it will certainly go in | 17:25 |
niemeyer | rogpeppe: Cheers | 17:25 |
rogpeppe | niemeyer: well, you might say it's too big or just wrong or something :-) | 17:26 |
niemeyer | rogpeppe: I can't anticipate that, but the concept of the feature we want for sure | 17:26 |
niemeyer | TheMue: Sorry, ended up sidelined by other conversations.. back to the review | 17:42 |
TheMue | niemeyer: np | 17:42 |
niemeyer | TheMue: "It's allowed today in endpoint.py. Maybe it's an error there too?" | 17:43 |
niemeyer | TheMue: I believe it is.. can you please drop it so that we can be sure about what's going in? If we find issues, it'll be a nice insight | 17:43 |
TheMue | niemeyer: Ok, will be dropped. | 17:44 |
niemeyer | TheMue: "// /topology node in ZooKeeper.s" | 17:46 |
niemeyer | TheMue: Extra "s" at the end, topology.go line 46 | 17:46 |
niemeyer | TheMue: LGTM with these sorted. Thank you! | 17:47 |
niemeyer | TheMue: Review delivered for the record too | 17:47 |
TheMue | niemeyer: Thanks. The s may be from saving without ctrl. ;) | 17:49 |
niemeyer | TheMue: Hehe, I know how these go :) | 17:55 |
TheMue | niemeyer: Sh.., had to leave computer, "accident" here. My wife lost her earring into the plughole. *sigh* | 18:02 |
niemeyer | TheMue: Wow, what/ | 18:06 |
niemeyer | ? | 18:06 |
niemeyer | TheMue: Oh, ok | 18:06 |
niemeyer | TheMue: Did you pick it up? | 18:07 |
niemeyer | robbiew: Is it meeting time? | 18:36 |
robbiew | yesss!...one sec | 18:37 |
robbiew | g+ invite sent | 18:38 |
niemeyer | Cheers | 18:39 |
TheMue | niemeyer: So, final propose before LGTM. And the earring has to wait, I had to bring my daughter to before. Tasks when the kids grow. ;) | 18:58 |
niemeyer | TheMue: Cool :) | 18:59 |
niemeyer | TheMue: With robbiew, will check it right afterwards | 18:59 |
TheMue | niemeyer: Fine, so I can submit it later or as my first task tomorrow morning. | 19:05 |
niemeyer | TheMue: LGTM | 19:08 |
TheMue | niemeyer: Great, thx. A good step for the end of the day. | 19:09 |
niemeyer | TheMue: +1, very happy to see this going n | 19:09 |
niemeyer | in | 19:09 |
TheMue | niemeyer: Me too. | 19:10 |
* hazmat likes the new golang book | 20:57 | |
hazmat | the mark summerfield one | 20:58 |
niemeyer | hazmat: Good to hear | 21:30 |
niemeyer | hazmat: Haven't checked it out yet | 21:30 |
hazmat | niemeyer, i've read some of his others pyqt.. etc.. he's a good author | 21:34 |
niemeyer | davecheney: Good morning | 21:41 |
niemeyer | hazmat: Yeah, haven't read those, but I did see his name around books for a while | 21:41 |
davecheney | niemeyer: morning | 21:42 |
niemeyer | davecheney: Had to put https://codereview.appspot.com/6229046/ back to WIP unfortunately.. a race was introduced in the latest change | 21:42 |
davecheney | yup | 21:42 |
davecheney | i'll address that now | 21:42 |
niemeyer | I'm heading off to dinner.. will be back later to review rog's latest goodness | 21:55 |
davecheney | ok | 21:57 |
robbiew | davecheney: ping | 23:05 |
andrewsmedina | niemeyer: I sent the new proposal | 23:07 |
davecheney | robbiew: ack | 23:08 |
davecheney | i should be on skype | 23:08 |
robbiew | davecheney: cool...one sec | 23:10 |
davecheney | niemeyer: out for review: https://codereview.appspot.com/6244053 | 23:27 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!