[02:17] can some body help me solve juju and MAAS problem : I have also posted on ask ubuntu http://askubuntu.com/questions/249350/juju-cannot-deploy-services-with-maas [02:24] hello ? [02:30] can some body help me solve juju and MAAS problem : I have also posted on ask ubuntu http://askubuntu.com/questions/249350/juju-cannot-deploy-services-with-maas [02:31] arbit30719: most of the devs are in Europe and USA [02:41] I see :P [04:59] hi all [06:04] jam: Why do we create one global instance of each provider, but *register* a different instance? [06:05] jtv: well for ec2 'environProvider' has no state (struct{}) so the concept of an instance of it is a bit weak. [06:06] I think the important part is to register that the instance exists. [06:06] I see your point, though. [06:06] It does look like [06:06] environs.RegisterProvider("ec2", providerInstance) [06:06] would make more sense. [06:06] It works because there is no state, and all the functions just exist to create the actual environ where work is done. [06:07] Thanks! I was wondering if there might be externalized data associated with pointers-to-providers too. [06:07] jtv: I imagine the openstack code just copied the ec2 code. [06:07] Yeah... I'm not reading too much into the "everyone does it" for that reason. :) [06:08] jtv: yep. We inherited a fair amount of stuff I suspect from copying it from ec2 [06:08] It would make sense to me to have a patch that registered the global variable [06:08] otherwise, why have that var? [06:08] Maybe as a prototype..? [06:08] well it is used in functions [06:08] SetConfig() calls providerInstance.newConfig() etc. [06:09] Yeah. It looks a lot as if the thing has neither state nor identity... [06:09] so *if we get state* I think we have to use the global variable in the registration. [06:09] That does sound sane, yes. [06:09] jtv: I imagine there is a discrete instance, (you can probably take the address of it) [06:09] &providerInstance [06:09] but it is not actually used [06:09] I think the type is there to collect methods [06:09] and you can't just call Type.method() [06:09] so you have to somewhere generate an instance of it [06:10] * jam always doubts if global state is correct, though. [06:10] Well if there's no state... :) [06:10] It looks as if a singleton was intended. [06:10] jtv: then you should be using a local var [06:11] ? [06:11] to make it clear [06:11] jtv: yeah, it does look like someone was trying for a singleton pattern. [06:11] hi all [06:11] A local var would be nice, but puts it out of reach of the code that needs the singleton. [06:11] Hello arbit30719 [06:11] can some body help me solve juju and MAAS problem : I have also posted on ask ubuntu http://askubuntu.com/questions/249350/juju-cannot-deploy-services-with-maas [06:11] =) [06:13] arbit30719: from everything I can see "agent-state: not started" means that the juju control isn't established on your machine 1, and from the traceback, it appears it will never start. [06:13] I would say kill it (juju destroy-service mysql, juju delete 1) [06:13] and maybe try again. [06:14] I'm not sure why it is having trouble getting a zookeeper connection, though. [06:14] I tried several times and failed [06:14] give "juju status" indicating the root machine is working. [06:15] I am pretty sure root machine works fine between machine 0 and maas server [06:15] jtv: where is the state stored in maas? Is it reasonable to try and query that for what the saved 'zookeeper' information is, to try a manual connection [06:15] ? [06:16] bigjools worked on that code — he may know [06:17] ? [06:19] this is a juju bug as I recall [06:20] something to do with ZK [06:20] but I can't remember what causes it or what the resolution is [06:20] perhaps update to the latest version from the PPA [06:21] bigjools: does maas do firewalling? Is it possible juju is trying to connect to ZK on a port that isn't open? [06:21] it doesn't [06:22] I also tried disable firewall and failed... [06:22] I remember this bug pretty well, just not well enough to know what the problem was :) [06:22] I encountered it on my own systems [06:22] arbit30719: what version of juju are you using? [06:22] 0.6 [06:23] is that from precise/quantal? [06:23] quantal [06:23] can you try the official PPA [06:24] you mean ? [06:25] also put juju-origin: ppa in the config [06:25] I think MAAS in quantal is much easier to setup [06:25] it will get even better with the SRU that's coming [06:25] yes I do put pap in environment.yaml [06:25] SRU ? [06:26] typo pap -> ppa [06:26] ok [06:26] not sure where else to go [06:27] I expect one of the core devs will remember when they start (in ~2.5 hours) [06:27] um... [06:27] ok [06:32] arbit30719: ah I have an idea [06:33] can machine 1 resolve the machine 0's DNS address? [06:33] the name of the machine that you use in MAAS needs to be resolvable [06:34] ha I also checked the name server (MAAS-dns) [06:34] They can resolve both 0's and controller's name [06:34] so ssh to machine 1 [06:34] and do: [06:34] host node-4487fc70b037 [06:35] 192.168.1.5 [06:36] can you do: [06:36] telnet node-4487fc70b037 2181 [06:36] and see if it connects to ZK [06:43] jtv: one small thing about your patch, I'm pretty sure you want to just use "providerInstance" not "&providerInstance" [06:44] Where exactly? [06:44] +func init() { + environs.RegisterProvider("maas", &providerInstance) +} [06:44] I would be wrong, since that actually creates a copy of the instance [06:44] (but again, no actual state :) [06:44] but the code you are replacing was: [06:44] +func init() { + environs.RegisterProvider("maas", environProvider{}) +} [06:44] which isn't an address. [06:45] Yeah. Don't we have a type system for this? [06:45] jtv: it is an interface [06:45] I imagine that both providerInstance and &providerInstance support the methods you need to be part of the interface. [06:45] EnvironProvider [06:45] No... only providerInstance does. [06:45] (interfaces are based on what methods are available) [06:46] jtv: if you define a method func (e environProvider) Foo() [06:46] is that also exposed on *environProvider ? [06:46] If it is, then both provide the interface [06:47] if the funcs themselves are func (e environProvider) than using the address has no effect [06:47] because a new copy will be created for each function call. [06:47] AFAIK it is only exposed on the object itself, not the pointer. [06:47] I think I just took the address to satisfy the type system. Let me try. [06:47] jtv: I'm actually pretty sure it is both [06:48] there is a cast earlier that hints at it [06:48] That would explain. And also freak me out. [06:48] Grr. It works either way. [06:49] jtv: http://bazaar.launchpad.net/~gophers/juju-core/trunk/view/head:/environs/openstack/provider.go#L38 [06:50] so we know that a pointer to a provider provides the interface [06:50] because we have an explicit cast [06:50] That sort of destroys the last vestige of sense in the ec2 code, doesn't it? Why create an instance and register its address, when registering an instance will do the same thing? [06:50] however: http://bazaar.launchpad.net/~gophers/juju-core/trunk/view/head:/environs/openstack/provider.go#L61 [06:50] all of the actual methods are done based on the object itself [06:50] not its pointre [06:50] so if you define funcs on the pointer, then you must have a pointer to call the object [06:50] but if you define funcs on an object, you can have the object or a pointer to it. [06:50] But not the other way around. Shudder. [06:51] jtv: and when calling a func-on-object, a new actual object is created during the function call [06:51] so you cannot mutate state in one of those calls [06:51] so you must either have 0 state, or at least 0 mutable state [06:51] Yes. [06:52] jtv: so IMO, funcs on objects don't make a lot of sense [06:52] which would then put you in a case where you have to pass the address. [06:52] They sort of do... but only for small, immutable objects. [06:52] but, that is the way the code exists. [06:52] jtv: without state changes, which means why is it on an object rather than a plain func. [06:52] I guess interfaces mean you have a way to group funcs. [06:53] That's exactly what it is. [06:53] I want *this* set of vpointers [06:53] They call them "method sets," I think. [06:53] AFAICS the only form of dynamic dispatch in the language is that an interface is basically a tuple (vtable, object) [06:53] An interface *value*, that is. [06:53] jtv: right [06:54] Not an interface *definition*, obviously. [06:54] Anyway, I wrote all that up in our Cultural Learnings document last week: [06:54] https://docs.google.com/a/canonical.com/document/d/1GQ3u7keE3hJH2oaweAm28K78hQZAbqeQqR9xwD9OR4I/edit# [06:56] I'll update it with the new knowledge that a pointer to an implementing object is also a valid interface value. [06:58] jtv: I'm using my canonical creds with lbox (though I do have some difficulties) it does seem to work. [06:58] (reading through your docs) [06:58] Yeah, Gavin had the same experience. Don't know what I did wrong. [06:58] I got a bunch of "protocol not supported" failures until it happened to work [06:59] and then it seems to generally work afterwards, though I just had propose fail again [07:00] Weird [07:00] Thanks for going through the document BTW. [07:00] I'm pretty sure I read it the first time you mentioned it as well. [07:01] but it is good to be reminded from time to time. [07:07] jam: I updated my branch to register (a copy of) the provider instance, rather than its address. For what it's worth! [07:08] jtv: I see the point either way. Having thought about it, I probably prefer the address method, but that is probably just my 'why isn't it actually an instance' [07:08] It is a method set, and instance doesn't really mean anything, but we have no way to talk about it without an instance. [07:09] Okay, I'll undo the change you asked for. :) [07:09] Or do you mean you would like the *methods* implemented on the pointer? [07:20] * jtv relocates [08:15] mornin' all [08:15] Hi rogpeppe [08:16] jtv: hiysa [08:16] jam: did you mean earlier that you would prefer the provider to implement its interface on the pointer only? [08:18] rogpeppe, heyhey [08:18] everyone, heyhey [08:19] jtv, jam: that looks like a bug in Register method [08:19] although it won't make any difference. [08:19] rogpeppe: I wasn't aware, but if class T implements interface N, then *T also implements N. [08:20] jtv: yeah [08:20] jtv, jam: Environ.Provider was a latecomer to the party [08:21] jtv, jam: and if you don't have that, there's you don't need providerInstance. [08:21] in fact, you don't need providerInstance at all anyway [08:21] environs.Provider could just return environProvider{} [08:22] jtv: I would say it is "method set" vs "singleton". If you are going to have a singleton factory, then you should have the methods implemented of "*Foo" so that they all use the same instance. [08:22] If you just have a method set, then there isn't an instance to really think about [08:22] as it just gets created all the tiem. [08:23] time [08:23] And now we're discussing how to implement a singleton. I miss python. :) [08:24] If it really doesn't matter at all, I'll just go with Environ.Provider() and forget about the singleton. [08:25] Thanks for pointing that out, rogpeppe — it makes a few missing pieces fall into place for me. [08:25] jtv: I would probably push towards one or the other for consistency. [08:25] At this point, I don't really care which. [08:25] But we shouldn't have both. [08:25] Makes sense. [08:25] Because it makes you say: oh we have a singleton, but wait, these are all pass by value, but wait, all the methods are also pass by value so it doesn't matter. [08:26] The last one especially requires you to actually inspect all the methods. [08:26] Rather than just being obvious from the pattern. [08:27] jtv: the reason only reason that the global var is useful is to make it more convenient to do environProvider.newConfig(environProvider{})... [08:27] Oh [08:28] rogpeppe: doesn't that hint that 'newConfig' should just be a local func? [08:31] jam: yeah, it probably should be [08:32] jam: if it was calling one of the environProvider's exported functions, it would be right [08:33] but you can poke at private methods as long as you are in the same package, right? [08:48] Morning [09:00] mornin' [09:40] morning mgz [09:43] hey! [09:46] jam: sure, but there's no real reason for newConfig to be defined on environProvider [09:55] jam: hey, I didn't add a test for checking userdata encoding/etc. because I don't yet see how I can test it [09:56] dimitern: have a test that creates an object, serializes it to json, and asserts the content is base64 encoded? (and decodes to the right content?) [09:56] that would at least be something. [09:56] the bug was that we were encoding to base64, and then it was getting encoded *again* by JSON [09:56] jam: you think that's enough? done on RunServerOpts only? [09:56] so a test that it is encoded just 1 time would fit the bill [09:57] possibly we mighht want to refactor the code so that the part that fills out the object can be tested separately from actually making an RPC [09:57] yeah, but we were wrong because didn't bother to read carefully what the json module does to []byte fields.. [09:57] dimitern: so I realize what the bug was, and the fix is correct. But lets add a test so that in 6 months we don't forget and wonder "why aren't we encoding this field" [09:58] is it useful to test that go does something it says it does? [09:58] dimitern: clearly it was non-obvious [09:58] or we wouldn't have made the mistake in the first place. [09:58] jam: I added a comment there in RunServer [09:58] dimitern: the fact that it confused us for roughly 2 days [09:58] means that we could have some help [09:58] I still think it is clearly untested code [09:58] or it wouldn't have broken [09:59] jam: ok, so should it in juju or in goose? [09:59] dimitern: seems like a goose level test to me [09:59] jam: ok and now with the bot - we follow the steps you outlined from now on? [09:59] dimitern: yeah, if it doesn't work, just poke me [10:00] but things should land in ~2min from when you mark it approved. [10:00] depending on how slow the juju-core test suite is. [10:00] jam, ok then, I'll think of a test then [10:01] and in juju I still have to set a FIP to the state machine when bootstrapping [10:01] dimitern: FIP ? [10:01] floating ip [10:01] floating ip [10:02] blast: I have a doctor's appointment, it might take a little while: I'll be back when I can be :/ [10:05] rogpeppe: arbit30719 was asking about http://askubuntu.com/questions/249350/juju-cannot-deploy-services-with-maas earlier [10:06] any ideas about problems connecting to ZK when using juju w/ maas? [10:06] or other people to point him to? [10:07] jam: hmm [10:09] jam: it seems as if machine 1 can't connect to zk, even though the juju client can. [10:10] rogpeppe: right, I think bigjools said he had seen something similar in the past, but we didn't have much more state than that. [10:10] jam: it would be nice if that exception provided more info - perhaps it got a connection refused or something [10:11] jam: and it's weird that he can't use juju ssh to connect to machine 1 [10:11] jam: any of the original juju team would be better at answering this question than me :-) [10:12] jam: i think bigjools' answer is a good one [10:12] ...who are the original juju team? [10:13] mgz: kapil, jim baker, ben howard, william, gustavo [10:13] ah, jim was too? I don't know ben. [10:14] mgz: oops not ben howard. ben... surname escapes me [10:15] mgz: ben saller [10:15] doh [10:17] hello i am the previos arbit30719 [10:23] mgz: btw, I think your public containers stuff has landed, we should update the kanban board [10:23] jam: good point [10:26] I'll put up some tasks in 'coding' that aren't coding as such but could do with tracking there [10:32] Hi there mgz — did you have any notes about the gomaasapi code? [10:33] jtv: not yet, was hoping to look at it with Gavin today [10:33] Ah OK. Thanks again! [10:34] mentioned it in the standup the other day, and rogpeppe noted it would be nice to have the whole thing up on codereview for those (gojuju people) who like to use that when reviewing things [10:34] And jam, are you comfortable enough with my "provider singleton" branch that I can land it on our feature branch? This one: https://code.launchpad.net/~jtv/juju-core/mpv-singleton/+merge/145777 [10:34] so, will probably put up a r1..-1 dummy merge for that [10:34] On Rietveld? [10:34] yup [10:34] jtv: yeah. it's really nice to be able to spray comments around in context :-) [10:34] Looking forward to learning more. [10:35] I imagine it is, yes. [10:35] Twitter Review API! [10:35] Sorry, just a weird thought. [10:37] rogpeppe: how did we do that last time? would probably make sense for jtv to put it up rather than me [10:37] mgz: you didn't do that last time :-) [10:38] mgz: perhaps a change that changes each source file in a trivial way (e.g. adding a "// to review" comment at the start) [10:38] mgz: then propose that [10:38] I'd do something like `bzr push -r1 lp:~/gomaasapi/base` then `~/go/bin/lbox propose -cr -v -for=lp:~/gomaasapi/base` [10:39] which would give a diff of all the bits that matter [10:39] mgz: that's a good plan [10:39] mgz: sounds good [10:39] mgz: except that the target isn't right, but i guess that doesn't matter. [10:40] well, the target is backwards, but it gives the right diff [10:40] hi all, does anybody have some suggestions about the issue I pasted on ask ubuntu http://askubuntu.com/questions/249350/juju-cannot-deploy-services-with-maas [10:41] It seems that I cannot connect to zk server of machine 1 [10:41] arbit: #juju is the channel for general juju questions, but you might need to wait for US timezone peeps to awaken [10:41] or #maas in this case [10:41] arbit: have you tried bigjools' suggestion? [10:41] yes I tried and failed to connect [10:42] igjools told me to paste here [10:42] arbit: what did the connection failure say? [10:43] uh I might need to reply this to you later. [10:44] I have difficulty connect to the server right now [10:50] jtv, rogpeppe: https://codereview.appspot.com/7228069 [10:50] Thanks [10:50] mgz: cool, thanks [10:51] Thanks for doing this mgz. [10:59] lunchtime, biab [11:20] rogpeppe, mgz: here is another bootstrap-related fix https://codereview.appspot.com/7226068 [11:24] dimitern: will have a look in a bit, thanks. [11:32] dimitern: wallyworld_: poke for the mumbling [11:32] jam: right there [11:33] jam: my mumble decided to start crashing :( [11:34] it's like my yesterday [11:34] dimitern@kubrik:~$ mumble [11:34] Segmentation fault (core dumped) [11:44] Hey all [11:45] niemeyer: hiya [11:45] niemeyer: yo! === amithkk_ is now known as amithkk === amithkk is now known as Guest8601 [12:32] rogpeppe: did you have time to look at the CL? [12:33] dimitern: sorry, been involved elsewhere. will look now. [12:33] dimitern: mgoPortSuffix = ":" + string(mgoPort) [12:33] lol [12:34] entirely understandable! [12:35] rogpeppe: :) yeah, learning everyday [12:35] dimitern: i should've caught it! [12:36] har har :) [12:36] dimitern: when would FloatingIP.InstanceId not be a string? [12:37] dimitern: oh, i see [12:37] dimitern: i think it should be defined as *string, not interface{} [12:37] rogpeppe: it's defined as interface{} and it might be either string or null [12:37] dimitern: in nova, that is [12:37] rogpeppe: well, there was something about it, which prevented *string somehow, can't remember now [12:38] dimitern: what's the difference between null and the empty string? [12:38] rogpeppe: we don't care for anything but non-empty string [12:40] rogpeppe: that's just how OS returns it - null, "" or "someip" [12:40] dimitern: BTW i'd be interested to know what prevented using *string [12:40] dimitern: 'cos AFAIK that's the canonical way to do null-or-string [12:40] rogpeppe: well, if it's missing from the response? [12:41] dimitern: it turns into nil [12:41] yeah [12:41] dimitern: (assuming the field value was nil originally) [12:41] dimitern: missing fields are unchanged. [12:41] rogpeppe: I suppose I should change that then in goose as a follow-up [12:42] dimitern: i think it's worth using static types where possible, yeah [12:42] rogpeppe: that was the very beginning - still leaning go and how stuff works [12:42] dimitern: :-) i know the feeling. [12:42] not that I know it all now, but slightly better than ten :) [12:43] then* [12:43] rogpeppe: what worries me a bit is there is no obvious way to test this locally.. [12:44] rogpeppe: otherwise from cmd line it works - tried multiple times [12:44] dimitern: why not? [12:44] dimitern: can't you implement similar functionality in the double? [12:44] rogpeppe: yeah, it starts to shape up a bit in my head how I could actually [12:45] rogpeppe: have 2 cases (or more probably) - with free ip and without (to alloc new), then some errors, etc. [12:46] rogpeppe: and in juju i can then call bootstrap on the double and ensure it passes [12:46] dimitern: sounds plausible [12:46] rogpeppe: cannot see how to live test it (on canonistack) [12:47] dimitern: ah, because canonistack always allocates an IP? [12:47] rogpeppe: it's very flaky and unreliable with floating ips [12:47] dimitern: ha [12:47] rogpeppe: because there are rarely any free to alloc [12:47] dimitern: in which case, you're stuffed :-) [12:50] rogpeppe: and the live test will fail randomly (but very often) [12:50] dimitern: yeah. maybe you should add a live test, make sure it passes at least once, and then disable it until we've got a decent live testbed. [12:51] rogpeppe: or even check if FIPs are available first, otherwise skip it in the suite [12:51] dimitern: that sounds like a good plan [12:52] rogpeppe: yeah, I'll try it out next [12:53] dimitern: you've got a review [12:53] rogpeppe: tyvm [12:53] rogpeppe, btw, I was wondering about having PasswordHash directly in the document and the PasswordValid method pn AuthEntity [12:53] s/pn/on/ [12:54] fwereade: yes? (that's what i'm proposing, right?) [12:55] rogpeppe, I'm wondering what will use PasswordValid [12:55] fwereade: the api server [12:56] rogpeppe, ok, and it's never actually going to be sent out to anything else? [12:56] fwereade: indeed [12:56] fwereade: it's specifically so that the api server can authenticate users [12:57] mgz: ping [12:57] fwereade: (and agents, of course) [12:59] rogpeppe, ok, I guess that's reasonable... I have something knocking around in my mind that a private key is maybe a good approach here as well -- we're not restricted to mongo's name/password scheme any more [13:00] rogpeppe, this is mainly because the authorized-keys in an environment should probably be thought of as belonging to the admin user now [13:00] rogpeppe, and I was wondering if it might be profitable to think around that idea a little [13:00] fwereade: passwords over https are a fairly conventional way of doing authentication over the web. i like the idea of private keys too, but passwords are more straightforward and not too bad. [13:01] rogpeppe, and, yeah, I'm not sure we can expect such a thing from the gui [13:01] fwereade: yup [13:02] fwereade: well... a private key is just a very large password from the client's point of view [13:02] rogpeppe, well, it never gets sent [13:02] fwereade: but it's quite useful to have a password you can type [13:03] rogpeppe, yeah, indeed [13:03] fwereade: true. it would be nice if the client used their private key to establish the tls connection [13:03] rogpeppe, not quite sure the tradeoff is the same from the agent POV [13:04] rogpeppe, but yeah, I'm not blocking anything, just raising it as something to keep in the back of your mind [13:04] fwereade: yeah. i'm just going with the architecture previously agreed with niemeyer [13:05] rogpeppe, the one case to keep in mind even if you don't address it right away is the one in which we use ubuntu SSO [13:05] fwereade: i'm not sure how the SSO protocol works [13:06] fwereade: but presumably the SSO key goes straight to the web server, so we can treat it as a password with an additional level of indirection to validate the user. [13:06] fwereade: s/SSO key/generated SSO token/ [13:07] rogpeppe, nor am I, I'm afraid -- but please would you look into it briefly, enough that you're reasonably sure that it'll integrate cleanly with your auth plans? [13:09] fwereade: i saw it did kerberos, and thought "hmm, that might be a lot of work" but .... http://godoc.org/github.com/jmckaskill/gokerb [13:10] s/did/used/ [13:10] rogpeppe, cool [13:15] fwereade: although maybe we just need to speak openid [14:02] fwereade: can you take a look at this pls: https://codereview.appspot.com/7226068/ [14:02] dimitern, sure [14:02] dimitern, I have a couple up on https://code.launchpad.net/juju-core/+activereviews as well :) [14:03] fwereade: cheers, I'll take a look [14:09] dimitern, what's the situation in which a freshly-started instance has a fip allocated? [14:09] fwereade: there is no way this can happen [14:10] fwereade: started instances do not have fips attached by default [14:10] fwereade: but even if it does, I have the check fip.instanceid == serverid and exit [14:11] dimitern, ok -- I was wondering then whetherit makes sense to try to get the floating ip before we start the instance, then -- ie separate allocate and assign [14:11] dimitern, at bootstrap, if that fails, we can know not to even launch the instance [14:12] fwereade: launching the instance and having fips available are not related - startup can fail, but then it may succeed and fip allocation can fail [14:13] fwereade: and even checking before startup, nothing guarantees a positive check will not fail after startup (fips may be exhausted in the mean time) [14:14] fwereade: at least most cases of errors are handled sanely and a shutdown is performed [14:14] dimitern: hey, still need me for owt? shall I just check for things in need of review? :) [14:15] dimitern, so you can allocate the IP and have someone else take it away before you assign it to the instance? that seems surprising [14:16] mgz: yeah, if you want - take a look pls https://codereview.appspot.com/7226068 [14:17] if by someone else you mean "another process using your tenant and credentials", yes [14:17] fwereade: no, if you allocate it (or already have at least 1 avail) then assignment will always succeed (unless nova itself does not respond sanely) [14:19] dimitern, in that case, if the environment requires a floating IP, it seems best to start by allocating that and then, if you get one, provisioning a machine to put behind it [14:19] dimitern, (and finally assigning the ip to the machine) [14:19] fwereade: yes, you're right [14:19] haven't thought of that [14:20] it makes sense, better logic, and possible earlier failure [14:20] dimitern, TLDR; I think we want `allocatePublicIP()` and `assignPublicIP(serverName string)` [14:20] dimitern, cool, I'll note it [14:20] fwereade: great, 10x [14:21] mgz: of course, you're right as well [14:21] mgz: if you mess up your own account from another location, then it'll break [14:21] well, it's more of an issue with shared accounts like the one we have for goosebot [14:22] then you might have multiple copies of juju, even, trying to do things at the same time :) [14:22] yes [14:24] and why did we need a shared account in the first place? because of the tools? [14:26] well, we wanted shared resources regardless, the reason we have a shared account rather than a shared tenant is just IS hysterical raisins it seemed [14:27] I see :) [14:27] but the point is we want to manage a shared resource (a juju deployment of tarmac) between multiple people. there's no particular reason we'd be doing conflicting things at the same time, but it's possible [14:46] " [14:46] mt.Sprintf(":%d", apiPort) [14:46] Why did these change? [14:46] " [14:46] fwereade: because the previous version was just wrong :-) [14:46] fwereade: string(1234) != "1234" [14:46] rogpeppe, glaargh [14:47] rogpeppe, good point indeed, I was focusing on var/const :/ [14:47] and there's no concept of pure functions in go... [14:47] so, Sprintf can't promise that, given const input, output is const-suitable [14:47] mgz: indeed. no function is really pure though, even in haskell :-) [14:48] mgz, rogpeppe: thanks :) === slank_away is now known as slank [14:50] in limbo, a close ancestor of Go, string(1234) did give "1234" (so it was const-able) but the only way of generating a string containing a single constant rune was sprintf("%c", x). i think i prefer Go's decision, but they're both useful [14:52] jam, fwereade: i'm interested in your reactions to my comments on the boilerplate environments branch: https://codereview.appspot.com/7223063/ [15:00] mramm, fwereade, TheMue: meeting? [15:01] rogpeppe: I'm prepared, just waiting for the invitation. [15:01] ahh [15:01] joining [15:01] hangout is in the meeting invite [15:01] TheMue: https://plus.google.com/hangouts/_/539f4239bf2fd8f454b789d64cd7307166bc9083 [15:07] * niemeyer => lunch [15:46] fwereade: here's the api model code i was playing with, in case you missed the link i pasted in the hangout: http://paste.ubuntu.com/1593298/ [15:47] rogpeppe, sorry, I did; thanks [15:47] fwereade: it just models a single client reading a single changing value [15:48] fwereade: (in the naive way i'd originally envisaged [15:48] rogpeppe, I hope I will get to playing with it tonight - I'll be looking after laura as well but will probably be back later on :) [15:48] rogpeppe, (I'm still around until just after 6) [15:49] fwereade: i'm just heading out for some lunch and a stomp outside - will be back before then but not much before. [15:49] rogpeppe, then enjoy your stomp, and also your evening [15:50] rogpeppe, I will see you if I see you :) [16:40] fwereade_: stomp enjoyed [16:41] fwereade_: found about a dozen broken plastic sledges at the bottom of the village "run" [16:41] rogpeppe, haha [16:41] fwereade_: all the snow's gone now though [16:43] rogpeppe, I realised I was old when my instinctive "yay, it's snowing" was almost instantly overwritten by "grrmbl I have to walk to work through that" [16:43] rogpeppe, and then I ran away to the med to try to forget it ;p [16:43] fwereade_: i'm still in the yay! phase [17:16] fwereade_: both branches are in, will also add a bug for the sudo-test-change [17:16] TheMue, awesome, tyvm [17:17] fwereade_: are your review cards still active? if so, could you copy the link to the reviews into the cards? makes it simpler. [17:18] TheMue, ah, sorry, sure -- I use +activereviews to keep up with them... er, when I do keep up with them :/ [17:18] fwereade_: hehe [17:19] fwereade_: it's nice to see the cards in review state and directly follow the links [17:19] TheMue, agreed [17:19] TheMue, added [17:20] TheMue, remind me when I forget [17:20] fwereade_: cheers [17:25] fwereade_: So, bug is entered at https://bugs.launchpad.net/golxc/+bug/1111640 and assigned to me. [17:25] <_mup_> Bug #1111640: Extend tests to run without sudo < https://launchpad.net/bugs/1111640 > [17:25] TheMue, lovely, thanks [17:25] fwereade_: yw [17:59] fwereade_: You've got two reviews. [18:19] * rogpeppe is done for the day [18:19] g'night all [18:31] rogpeppe: good night, I'm leaving too.