[00:56] Where is the cloud-init file that juju pushes to machines placed? === flaviamissi_ is now known as flaviamissi [01:10] marcoceppi: for lxc, /var/lib/juju/containers//cloud-init [01:10] axw: I found them in /var/lib/cloud/seed/nocloud-net, let me check that path too [01:11] marcoceppi: sorry, I'm looking on the host here [01:12] axw: ack, np. Thank for the info! [01:12] nps === jam1 is now known as jam [06:07] can anyone help with a tmux session ? [06:08] question [06:09] using tera term [06:09] the tmux bottom line causes the terminal to scroll one line every second [06:09] any suggestions ? [06:10] davecheney: futz with $COLUMNS ? [06:11] jam: inside the debug-hook ? [06:13] davecheney: I don't really know, I would have said trying it in the container before starting the tmux session. It sounds like tera disagrees with 'write to the end of the line' as off-by-one [06:13] jam: yeah [06:13] which is why some people say you should code to line 79 because sometimes the terminal wraps the final \n. :) [06:13] i don' [06:13] i don't know if its fixable right now [06:13] i might have to twiddle the tmux conf [06:13] davecheney: can you just use xterm, etc ? [06:14] jam: we are using xterm [06:14] well, tera says it's xterm [06:14] (10:09:03) davecheney: using tera term [06:14] davecheney: right, tera is lying and claiming its xterm, but then treating screen width differently (from what you've said at least). [06:15] i've tried vt100 [06:15] vt32 [06:15] vt52 [06:15] etc [06:15] have you tried a terminal other than tera ? [06:15] jam: not an option sorry, we're in an SOE [06:15] standrard operating environment [06:15] which lacks freedom [06:18] jam: tmux thinks the window is one character larger than it claims [06:18] wider [06:20] davecheney: my guess is that tmux writes " "*39 + "\r", and tera thinks that the "\r" needs to wrap. [06:20] I haven't found ways to tweak either tera or tmux in my googling. [06:20] jam: thanks [06:21] let me try one thing [06:21] Windows shells tend to do the same thing wrong (which is why in our bzr code, we always write to COLUMNS-1, though some terminals let you write all the way to COLUMNS) [06:23] jam: any idea where the default ubuntu branded tmux conf lives ? [06:23] davecheney: http://askubuntu.com/questions/192401/where-is-the-default-tmux-conf-file-located [06:24] says there isn't one [06:24] but there are examples [06:24] in /usr/share/doc/tmux/examples === tasdomas_afk is now known as tasdomas [06:27] jam: where does debug hooks get it's magic one from ? [06:27] is this byobu ? [06:28] ah, it is [06:30] davecheney: it'll use ~/.tmux.conf if it exists [06:31] on first execution, that'll get populated with "source /usr/share/byobu/profiles/tmux" [06:31] source-file.. [06:35] fuck [08:07] mornin' all [08:45] jam: mgz: Hi… would any of you be available to update gwacl on the landing bot's machine? [08:46] fwereade: yo! [08:46] rogpeppe, heyhey [08:47] fwereade: how's tricks? [08:47] rogpeppe, not bad, had a lovely peaceful weekend [08:47] rogpeppe, and yourself? [08:48] fwereade: i had a lovely weekend full of frenetic outdoor activity :-) [08:49] fwereade: and in general things are ok [08:49] jtv: are you working on code to call getImageBaseURLs() on the azure provider? [08:50] fwereade: current area of discussion is how we might make the bulk API call code a little less... bulky [08:50] wallyworld_: not working on anything in the provider ATM, why? [08:50] fwereade: one possible approach is this: https://codereview.appspot.com/12845043 [08:51] fwereade: natefinch has another thought, which you might have seen (automatic code generation) [08:52] wallyworld_: the simplestreams code is already working for Azure, apart from a few limitations (images for any location only available in West US; only daily saucy images actually functional yet) [08:52] jtv: i'm doing some refactoring to extrude into a common function the url gathering which augments the base url with provider specific ones (if the provider supports such an operation) [08:52] so the azure function can be deleted [08:52] wallyworld_: that sounds nice... will it grab both the daily and the released images? [08:53] jtv: the current function just returns the DefaultBaseURL - i wasn't going to change that behaviour [08:53] how is simplestreams working if nothing calls that function? [08:53] for azure [08:54] wallyworld_: argh, another piece of dead code then! We just use the same global variable that that function returns. [08:55] rogpeppe, interesting -- it's one of those situations that makes me weep for the lack of generics really [08:55] Sometimes I find myself wishing for a tool to warn about dead code in Go. Some kind of lint checker. [08:55] the code should have been calling that function :-) [08:55] wallyworld_: feel free to change it! [08:55] ok, i'll work on it, thanks :-) [08:55] jtv: there might have been something like that added to go vet recently [08:56] rogpeppe: thanks! Worth reading up on then. [08:56] wallyworld_: sorry to bother you with that… but do you have access to the landing bot? I need gwacl to be updated there. [08:56] rvba: yes, sure [08:56] wallyworld_: thanks a lot. [08:57] fwereade: it's this kind of repetition which was the reason i structured the API the way I did in the first place (so that the magic was all in one place, in the rpc package) [08:57] rogpeppe: not seeing anything in the godoc for "go vet." There is some stuff that might be nice to make more routinely accessible though. [08:57] jtv: on tip? [08:58] The PPA. [08:58] rvba: now on rev 217. correct? [08:58] jtv: ah, it hasn't even landed on tip yet: https://codereview.appspot.com/12507043/ [08:58] wallyworld_: perfect, thanks again. [08:59] np, anytime [09:00] rogpeppe, yeah, I can see that limiting the spread of magic is generally a good thing [09:01] jtv: it only works with unexported identifiers though, so i'm not sure if it would flag your case above (what's the dead code you're referring to?) [09:02] fwereade, rogpeppe: fwiw we agreed yesterday to continue with the current approach until we have the uniter talking to the API first, and then proceed to refactor the server-side stuff - as we agree to do it - code generation or reflection [09:03] rogpeppe: unused unexported method. But if it's not landed yet, my individual case is sort of moot. :) [09:03] dimitern, that sgtm, thanks [09:03] dimitern, I'm kinda suspicious of both approaches ;p [09:04] jtv: you could always apply the CL locally [09:04] fwereade: I have my doubts as well, but the most important thing for me now is not to lose momentum with the implementation [09:04] dimitern, +100 [09:04] rogpeppe: to detect a dead method we've already detected? Thanks. :-) [09:04] jtv: lol [09:05] jtv: but what about all the others we haven't? :-) [09:05] Their time will come. [09:39] rogpeppe, does https://bugs.launchpad.net/juju-core/+bug/1205286 ring any bells? [09:39] <_mup_> Bug #1205286: charm directory permissions now more restrictive [09:41] fwereade: not really, but i regularly campaign against the gratuitous use of non-0777 permissions when creating directories, usually to no avail [09:42] fwereade: I've updated the Makefile to add stable (now that the mongodb deps are there). If you can mark the MP to approved it should land: https://code.launchpad.net/~michael.nelson/juju-core/update-readme/+merge/179165 [09:43] noodles775, thanks, will do [09:43] ta [09:43] fwereade: hmm, a naive grep doesn't show that as a problem here though. [09:43] noodles775, done [09:44] rogpeppe, yeah, I was just poking at it and wondering what the deal was [09:45] * rogpeppe should really try out the local provider :-) [09:45] rogpeppe, that said, my instincts are leaning towards the "everything should keep working if everything jujey is removed" [09:46] rogpeppe, which would imply the "feature" interpretation [09:46] fwereade: by "everything", you mean the charm? [09:46] rogpeppe, yeah [09:46] fwereade: i think it's important that the charm directory be definitively available [09:47] fwereade: apart from anything, lots of charms use it to put config file templates in etc [09:47] rogpeppe, templates, fine... they'll only be used by hooks, surely [09:48] rogpeppe, but I'm pretty sure that the charm dir should be considered off-limits to anything not running as a hook [09:48] fwereade: hmm, it's certainly arguable [09:48] rogpeppe, because nothing else has any reason to believe that arbitrary changes are not happening at any given time [09:49] fwereade: yeah - assuming we overwrite charm dirs rather than duplicate them [09:50] rogpeppe, I think all it takes is assuming that hooks might do anything to the charm dir, and that v1 of a charm can't know what subsequent versions may choose to do instead [09:50] fwereade: but i'd like to at least know why we're seeing this behaviour - it doesn't look as if we're deliberately using 700 perms [09:50] rogpeppe, fwereade: https://codereview.appspot.com/12849043 - service-related uniter API calls [09:50] rogpeppe, I agree there [09:51] fwereade: personally i think the charm directory should be considered immutable [09:51] fwereade: but i realise that's probably a lost battle now [09:52] rogpeppe, one day we'll need some charm format changes, we can force it then, I hope [09:53] rogpeppe, all it really takes is *providing* a directory that charms are expected to write to [09:53] rogpeppe, and then rolling it up with some more changes that are compelling enough to make people want to switch ;p [09:53] fwereade: tbh i don't think we'll ever do it - we'd be giving up the main value of juju, which is the large base of charms [09:54] fwereade: yeah, we should definitely provide a charm scratch dir [09:54] fwereade: we could do that now actually [09:54] rogpeppe, yeah, that sounds smart actually [09:55] rogpeppe, then it's just a matter of communicating it to the charmers, and phasing in requiring its use [09:55] fwereade: yeah [09:55] rogpeppe, hard to check for automatically but we can certainly put it on the checklist [09:55] rogpeppe, on the other hand, we do lose the rollbackability [09:55] rogpeppe, however I'm not sure anyone's really using that [09:56] rogpeppe, ...but we don't know [09:56] fwereade: rollbackability assumes that *all* state is in the charm dir [09:56] * rogpeppe likes that word [09:56] rogpeppe, true [09:57] rogpeppe, or at least it assumes that external state is regenerated from the contents of the charm dir, but yeah [09:58] fwereade: anyway, we could theoretically roll back the contents of the scratch dir [09:58] mgz, jam: https://codereview.appspot.com/12849043/ [09:58] rogpeppe, yeah [09:59] fwereade: (assuming there are only files in there - what do we do if people are putting unix-domain sockets in there? :-)) [09:59] dimitern: i'm looking [09:59] rogpeppe: thanks [09:59] rogpeppe, hunt them for sport? ;p [10:00] fwereade: lol [10:05] fwereade: so did you have a response for bug #1205286 so that stub can get unblocked? [10:05] <_mup_> Bug #1205286: charm directory permissions now more restrictive [10:10] fwereade: also, you never commented on Placement Directives and I wanted to send that to the list: https://docs.google.com/a/canonical.com/document/d/1Gq8RKyI4uLSYeamz7C2F0tgXdHhTj-d8thKhyX6ae4c/edit?usp=sharing [10:10] jam, I'm still thinking/trying to figure out what's happened with the bug [10:11] k [10:11] I don't have a particular stake in the matter, just care that stub has a way forward [10:12] and no particular rush on placement directives, but sort of a "lets get docs from the sprint out to everyone lese" [10:19] jam, I've just made the only comment I think I want to on placement directives [10:20] fwereade: well, if you want to barf on the overlaps, you'd need a way to disable the overlap for the current request (i think) [10:21] and the MaaS case for tags that might be service level, but might be unit level [10:21] are a bit less obviously "broken" than zone [10:25] dimitern: reviewed [10:25] rogpeppe: cheers [10:26] rogpeppe: LifeGetter works on units, how can it work on services as well? [10:27] dimitern: with no problem? [10:27] rogpeppe: with different entities? [10:27] rogpeppe: and we need both Watch for units and services [10:27] dimitern: LifeGetter works on any entity that has a Life method [10:28] rogpeppe: we need different methods for watching units and services [10:28] dimitern: all you'd need to do is make the auth func return ok for both units and services [10:28] dimitern: really? [10:28] rogpeppe: yes [10:28] dimitern: don't we watch both units and services with a Watch method? [10:28] dimitern: which has the same signature for each [10:28] rogpeppe: why should the same method operate differently? [10:29] rogpeppe: that's mixing responsibilities [10:29] dimitern: it's not operating differently - we're passing in entity names to watch, and it's doing that [10:29] rogpeppe: it should work either on units or on services, you can't mix them [10:29] dimitern: why not? [10:30] dimitern: we're saying "watch these things" [10:30] dimitern: where a thing is uniquely identified by its tag [10:30] rogpeppe: how about configsettings then? [10:30] rogpeppe: by your logic we shouldn't need another method [10:30] dimitern: we still need an entry point for that [10:31] dimitern: because we don't have an entity for config settings [10:31] dimitern: we don't consider having a Lifer interface to be mixing responsibilities [10:31] rogpeppe: so you propose to create a different authFunc just for LifeGetter and Watch works on either only units or only services [10:32] rogpeppe: I don't think it should accept mixed units and services tags in one call [10:32] dimitern: why not? [10:32] dimitern: it's a bulk call [10:32] rogpeppe: because it complicates the tests - we need to test all variations [10:32] dimitern: it takes a load of entities [10:33] dimitern: it's no more complicated than having extra entry points [10:33] dimitern: probably less so [10:33] dimitern: and the API calls make more sense that way, i think [10:34] rogpeppe: no, the simplification for having a single entry point will be transfered to increasing the test size 4-fold [10:34] dimitern: why should the API provide both UnitLife and ServiceLife when a single Life entry point is sufficient? [10:34] dimitern: really? isn't it a single extra entry in the argument slice? [10:35] rogpeppe: and we're talking about both Watch and Life - so AgentEntityWatcher and LifeGetter both need to work on units and/or services [10:35] dimitern: isn't that trivial? we just make an auth function that allows both the unit or the unit's service [10:35] rogpeppe: no, each tests tests at least 3 cases: valid tag, invalid tag, valid but unauthorized tag [10:36] dimitern: so that's 2 more entries in the arg slice, no? [10:36] rogpeppe: when we take into account services and units can be passed, that comes to 6 cases [10:37] rogpeppe: and in addition, we need to add a case when the tag is neither service nor unit [10:37] rogpeppe: so that's 7 cases to test [10:37] rogpeppe: i agree they can be done in a single call [10:38] rogpeppe: just the testing logic will be a bit more complicated after we get the results and check the resources [10:39] dimitern: yes, you'll have some extra cases to check, but you'd need to check all those cases if you had a different API call, no? [10:39] rogpeppe: and when relations come into play, I suppose their Life will be using the same entry point, so that's 3 more cases [10:39] dimitern: sure - but isn't it great that we can use the same API call (and code) for getting the Life of any entity? [10:40] dimitern: doesn't that make it particularly nice that we are actually sending tags over the wire, rather than just ids? [10:40] rogpeppe: I'll think about it a bit [10:40] dimitern: we already have the LifeGetter implementation, which can be used for all of this [10:41] rogpeppe: so I think they may end up in different facades, and the different facade may need to restrict what they are allowed to look at. But as long as the Auth is valid (unit agents can't look at machines, for example) having a unified call sounds good. [10:41] dimitern: (which, FWIW, would be wrong to use if you continue in the same direction - why should we have Life and ServiceLife not UnitLife and ServiceLife?) [10:42] jam: yeah, LifeGetter allows arbitrary restrictions on what you can look at [10:43] rogpeppe: so the auth func for LifeGetter should check AuthOwner for units and 1) get auth'ed entity, 2) compare it's service tag with the given tag - for services [10:44] rogpeppe: and basically the same for AgentEntityWatcher as well [10:44] dimitern: well, it could be simpler than that [10:45] dimitern: it sounds reasonable. i'll wait to see the code [10:46] dimitern: it basically comes down to: return tag == unit.Tag() || tag == names.ServiceTag(unit.ServiceName) [10:48] rogpeppe: what is '.tsv' stand for? tab-separated-value (like csv, just with a \t ?) [10:48] rogpeppe: I though you suggested having a way to get the auth'ed entity from the authorizier [10:48] jam: yeah [10:48] rogpeppe: like GetAuthEntity() interface{} [10:48] dimitern: yes - the above is assuming you've got unit from there [10:48] jam: i thought it was better than .txt and it does seem to have precedent [10:49] good evening gentlemen [10:50] i have a request from the far east [10:50] i need to build a version of juju that does not attempt to create security groups on openstack/hp cloud [10:51] is anyone able to help me ? [10:51] davecheney: do you need tests to pass too? [10:52] rogpeppe: no [10:52] davecheney: have you tried just commenting out the code that creates the security groups? [10:52] rogpeppe: yes, that is what I wanted to do [10:53] i was hoping for some advice [10:53] maybe I should just turn off the firewaller [10:54] davecheney: hmm, without security groups, how can you open any ports at all? [10:54] davecheney: 'cos presumably by default all ports are closed [10:55] rogpeppe: according to marcoceppi they don't actually firewall anything [10:55] just prevent most people from being able to deploy more than 10 services in total on their hp cloud account [10:55] rogpeppe: I know in ec2, the default is that all machines in the same security group can talk to eachother on any port. I'm not sure about hp/openstack in general. [10:55] davecheney: ah, so it should be irrelevant [10:55] jam: presumably these machines won't be in the same security group (because we can't create one) [10:56] jam: yeah, security groups in ec2 work [10:56] they don't in hp cloud [10:56] rogpeppe: I don't know that dave is asking for 0, just not 1-per-machine. [10:56] so the creation of the groups just presents an annoying limit [10:57] davecheney: ah, so you can create one group for the whole environment? [10:57] rogpeppe: preferably zero [10:57] groups [10:58] wallyworld_: poing [10:58] ping [10:58] davecheney: in that case, i'd just see what happens when you change environ.setUpGroups to return nil, nil [10:58] rogpeppe: ok, will do [10:58] davecheney: wat [10:59] davecheney, otherwise firewall-mode global will create just one, if that helps? [10:59] wallyworld_: we're going to be demoing on az1 and az2 "tomorrow", however last I checked az2 and az3 don't have simple stream data [10:59] fwereade, davecheney: yes, that was going to be my other suggestion [11:00] marcoceppi: maybe not, i haven't checked. i did some initial data for az1 using the juju tool. if we need it for the other regions it will need to be hand crafted. when is "tomorrow"? [11:01] fwereade: that might be better [11:01] marcoceppi: there won't be simplestreams data in cloud-images, since hp isn't (yet) a CPC [11:01] i'll try that [11:01] wallyworld_: 12 hours from now [11:01] wallyworld_: can we generate stuff and put it with the tools we copied over there ? [11:02] marcoceppi: ok, i'll see if i can whip something up tonight. i may not be around tomorrow as it's a holiday here. how long will you e around for now? [11:02] jam: az1 data exits already, it'd be nice if az2 and 3 were also in there [11:02] wallyworld_: I'll be around for 2-3 hours [11:02] jam: what he said - the existing nmetadata nwds to be added to [11:03] marcoceppi: ok, i'll see what i can do. maybe you could test once i do it [11:03] wallyworld_: I'd be happy to test! [11:03] ok, leave it with me [11:03] marcoceppi: what image ids do we want? [11:04] there's a bug i think with those listed [11:04] wallyworld_: thanks for taking a look! If not I can dig through the metadata plugin if you run out of time and put it in a seperate bucket [11:04] i'll see if i can find it [11:04] wallyworld_: I'll double check in the console [11:04] they may have changed [11:04] ok, if you tell me the images ids for az2 and az3 that would be great [11:04] marcoceppi: what series also [11:04] precise? [11:05] wallyworld_: I see endpoint data but no content: https://cloud-images.ubuntu.com/releases/streams/v1/com.ubuntu.cloud:released:hpcloud.sjson [11:05] jam: the data isn't there yet. it's in the hp cloud public bucket [11:05] ah, ok. [11:06] * wallyworld_ wishes it was there [11:06] sorry, marcoceppi has lagged out [11:06] he'll be back in a sec [11:09] marcoceppi: firewall-mode: global [11:09] fwereade: firewall-mode: global might be the trick for us [11:10] davecheney, cool [11:10] davecheney, glad it's good for something, I was worried about it for a while ;p [11:10] fwereade: that means we're down to 2 sec groups per student [11:10] that'll do [11:10] we can squeak by [11:11] thanks [11:12] wallyworld_: yes, precise [11:12] ok [11:12] wallyworld_: would it be possible to put the data in the same bucket as the one davecheney sends out during ANN for juju-core testing on hpcloud? [11:13] marcoceppi: yeah,that's what i'm doing [11:13] wallyworld_: <3 awesome, thanks! [11:13] updating existing metadata [11:13] just need the images ids :-) [11:13] wallyworld_: thanks man [11:14] anytime [11:14] so far we've been able to avoid spinning custom tools [11:14] there is one more problem which I'm not sure I can fix without changing the tools [11:14] yes? [11:15] byobu doesn't interact well with tera term [11:15] wallyworld_: AZ2: 68481 AZ3: 49850 [11:15] ta [11:15] so I need to put `apt-get remove byobu` in the cloud-init so I can remove byobu and fall back to tmux [11:16] wallyworld_: don't you need the uuids or HP being Diablo just has the short names [11:16] ? [11:16] morning all [11:17] jam: we support both uuids and ints transparently [11:17] (and afternoon and evening as the case may be) [11:17] hi natefinch [11:18] wallyworld_: I created simplestream data a while a go for az3, if it helps [11:19] natefinch: おはようございます [11:19] marcoceppi: i've done the new data, just using the validation tool to smoke test it. but i have no perms to re-upload it turns out [11:20] wallyworld_: ack [11:20] wallyworld_: sad trombone [11:20] marcoceppi: do you have permission to write to the public bucket? [11:20] davecheney: ha. Sorta surprised google knew what to do with that. [11:20] wallyworld_: no that I know of [11:21] marcoceppi: is arosales around? he can [11:21] wallyworld_: arosales has been up for about a day [11:21] he's been sorting out all our shit today [11:21] wallyworld_: he may be around, but I'm not sure [11:21] i think he's turned in [11:22] ok [11:22] slacker ;) [11:22] rogpeppe: RE the HP provider returning ErrNoInstances, I just went to make the change to shortAttempt that you mentioned, but afaics from the bug, it's not related? That said, I *think* I found another potential cause... details in the description: https://codereview.appspot.com/12795045 [11:22] only one day? [11:22] so what you can do is create a new container, make it globally readable, and put tools and new metadata in it [11:22] wallyworld_: I might be able to actually, let me check [11:22] and set the public-bucket-url accordingly [11:24] noodles775: looking [11:25] marcoceppi: davecheney: i have the new metadata if only we could write it [11:25] you guys need to give me more advance notice [11:26] wallyworld_: i'll thank you personally for that helpful comment next week [11:26] davecheney: just saying [11:26] wallyworld_: I have perms to the hp public bucket, but I thought you did, too. [11:26] yeah, sorry, we're really hulk smashing this whole training [11:27] davecheney: just being a prick, sorry [11:27] s'ok [11:27] if that was the worst thing that had happende this week, i'd be upset [11:27] but it isn't [11:27] not by a long shot [11:27] jam: i logged in and can only see us-west [11:28] and cannot see the public bucket [11:28] wallyworld_: I have a bukkit [11:28] marcoceppi: we may be able to write the files [11:28] noodles775: good catch! [11:28] \o/ [11:28] wallyworld_: there is only 1 storage [11:28] there are 3 computes [11:28] they all use the same storage [11:28] noodles775: looks like a good fix. it would be nice to be able to test it though. [11:28] az3.geo-1, vs just geo-1 [11:28] IIRC [11:29] jam: i can only see 3 containers, none of which is the public bucket when i log in [11:29] wallyworld_: I see roughly the same thing, but we have the tools somewhere in that account :) [11:30] wallyworld_: "control-bucket: juju-dist" [11:30] jam: ah, maybe i am a dickhead, there is a drop down with projects which i didnt see [11:30] let me try selecting the right project [11:30] wallyworld_: I didn't see it either [11:30] wallyworld_: https://console.hpcloud.com/object_store/region-a_geo-1/containers/juju-dist [11:31] yep, uploading now [11:31] marcoceppi: ready for testing [11:31] davecheney: ^^^ [11:33] dimitern, rogpeppe, standup? https://plus.google.com/hangouts/_/f497381ca4d154890227b3b35a85a985b894b471 [11:33] wallyworld_: ok, will test [11:33] wallyworld_: thank you [11:33] axw: ^^ [11:33] davecheney: np at all. if it doesn't work, i'll fix, let me know [11:35] wallyworld_: http://paste.ubuntu.com/5980804/ [11:35] ^ it's copying tools, is this expected ? [11:35] davecheney: it wasn't expected for me [11:35] do you have public-bucket-url set for HP? [11:36] jam: sorr, i might have screwed up [11:36] yes, looks like public bucket is not set right if it can't see tools [11:36] public-bucket-url: https://console.hpcloud.com/object_store/region-a_geo-1/containers/juju-dist [11:36] davecheney: https://region-a.geo-1.objects.hpcloudsvc.com/v1/60502529753910 [11:37] ok, that was what I had before [11:37] my bad [11:37] davecheney: soon, public bucket will not be necessary at all \o/ [11:37] 2013-08-13 11:37:34 INFO juju provider.go:734 environs/openstack: started instance "1670895" [11:37] 2013-08-13 11:37:35 INFO juju supercommand.go:276 command finished [11:37] got an instance in az3 [11:37] rocking [11:37] yay \o/ [11:38] ditto over here for az2 [11:38] * wallyworld_ is happy he wrote the image validation tool to check the metadata prior to copying to the bucket [11:38] just waiting for juju status to come back [11:39] thanks so much for your help [11:39] my pleasre. good luck with the demo :-) [11:40] wallyworld_: def, thank you sir! [11:40] anytime [11:42] rogpeppe: Thanks! And yeah - that was my next question. Any relevant examples you could point me at for tests? The ones in the respective provider_test.go are just for one particular function. Otherwise I'll hunt around. [11:42] noodles775: in a call. be with you in a bit. [11:47] davecheney: I'm going to poke the release tarball script to use the revs from our new dependencies.tsv file [11:53] mgz: sounds good to me [11:53] Anyone up for a one-liner? https://codereview.appspot.com/12852043 [11:54] rvba: worst pickup line, ever [11:54] wallyworld_: did you see: https://bugs.launchpad.net/juju-core/+bug/1211147 [11:54] <_mup_> Bug #1211147: Deploying service to bootstrap node causes debug-log to spew messages [11:54] You might want to give it a poke, since you have the most rsyslogd knowledge on the team. [11:55] jam: yeah, jonathon totally blew up his environment with that one [11:55] jam: didn't see it, will look [11:55] fwereade: I've got a question about optional relations in juju, if you set a relation to be optional: False, what happens? [11:55] marcoceppi, nothing at all [11:56] fwereade: is it purely decorative ? [11:56] davecheney, essentially yes [11:56] fwereade: will it ever do anything? [11:56] fwereade: for ceremonial occasions ? [11:56] marcoceppi, it is not currently a high priority [11:56] I must admit, it's really pretty :) [11:57] jam: do we even support putting a service on the bootstrap node? [11:57] fwereade: what's the idea of what it would do in the future when you guys are done with priority things and bored and want to implement it? [11:58] wallyworld_: sure, didn't you write that ? [11:58] or are you asking, as an optoin we'd be proud to tell customers about ? [11:58] i didn't write it [11:58] i really didn't think we supported it [12:00] davecheney, marcoceppi: there was talk, a long time ago, that we might automatically create non-optional relations between matching services, but that always seemed kinda crazy to me [12:00] davecheney, marcoceppi: there *may* be some mileage in the idea that we just flag non-optional relations that are not satisfied [12:01] davecheney, marcoceppi: but doing anything automatic in response seems like a really bad idea to me, because even if we think of something useful to do with it I can't see how it wouldn't be a terrifying behaviour change [12:01] fwereade: My thought was, if a relation is not optional, it wouldn't "deploy" the charm until juju was aware of the relation via add-relation, must like the subordinate mechanism [12:01] fwereade: some background, our students are interesting optional: false relations because they are thinking it will help them know when a service is properly deployed [12:02] ie, all it's non optoinal relationships are fulfilled [12:04] wallyworld_, rogpeppe, I can hear you [12:04] wallyworld_, rogpeppe, but can't seem to say anything you can hear... brb [12:16] fwereade: one more thing for you to glance at quickly: https://code.launchpad.net/~rogpeppe/juju-core/359-no-lax/+merge/178357 (As you were the one that implemented the StartSync vs Sync schism, you should at least be aware that it has all been migrated to Sync) [12:19] rogpeppe: updated https://codereview.appspot.com/12849043 [12:19] jam: take a look as well? ^^ [12:20] jam: i'd like your thoughts on that too [12:20] jam: 359-no-lax that is [12:20] fwereade: we lost you again? [12:21] wallyworld_, I can hear you, but I'll rejoin [12:21] wallyworld_, yeah, it doesn't want to let me rejoin :/ [12:28] jam: sorry, was having dinner earlier [12:29] axw: np. I don't know that it will work in your Timezone, but we do a whole group get-together at UTC 11:30 [12:29] I think Tim was thinking of doing another one earlier in the day [12:29] for those in the high UTC offsets. [12:30] axw: I added you to the calendar entry, but it is optional for you, since it is roughly dinner/family/anything-that-isn't-work time for you. [12:31] jam: thanks for that. I hit "maybe" because of that, but I'll try to make it sometimes. If there's something important, just let me know and I'll be there [12:32] axw: it is just our daily "catch up with eachother on what we're working on". You should have a weekly 1:1 with either Mark or Tim already for the "important" things. [12:39] rogpeppe: does it look better now? [12:40] dimitern: sorry, still in a call [12:41] fwereade: you've frozen again... [12:42] wallyworld_, rogpeppe, did I get cut off again? [12:42] fwereade: yes [12:42] yep [12:43] rogpeppe: np [12:43] natefinch, mgz: second review on https://codereview.appspot.com/12849043 please? [12:43] hey all [12:43] dimitern: sure [12:44] mgz: cheers [12:45] mgz: just note I forgot to update the description - ServiceLife, ServiceCharmURL and WatchService are gone, replaced (as suggested by rog) with Life, Watch amd CharmURL handling both units and services [12:46] is it an lxc prereq issue that causes this error: [12:46] 08:41 danwest: $ juju -v bootstrap [12:46] 08:41 danwest: 2013-08-13 12:40:06 INFO juju.environs.local environprovider.go:32 opening environment "local" [12:46] 08:41 danwest: 2013-08-13 12:40:06 ERROR juju.environs.local net.go:18 cannot find network interface "lxcbr0": net: no such interface [12:46] 08:41 danwest: 2013-08-13 12:40:06 ERROR juju.environs.local environprovider.go:44 failure setting config: net: no such interface [12:46] 08:41 danwest: 2013-08-13 12:40:06 ERROR juju supercommand.go:235 command failed: net: no such interface [12:46] 08:41 danwest: error: net: no such interface [12:47] mramm: you need sudo juju bootstrap with the local provider [12:47] ahh [12:47] mramm: but apart from that it might be something else [12:47] (prereq issue) [12:48] ok [12:48] I will tell him to try that [12:48] also we should give a better error message there too [12:49] sudo did not fix it [12:49] so it's a different issue [12:50] we recently updated the README I think wrt the local provider [12:50] nope, it's not in yet [12:52] also, installing lxc was not the fix [12:52] I am having him file a bug [12:54] mramm: I found this thread http://comments.gmane.org/gmane.linux.kernel.containers.lxc.general/3819 - it says to check /var/log/upstart/lxc* for errors [12:55] dnsmasq: failed to create listening socket for 10.0.3.1: Address already in use [12:55] hmm, if true should handle that a bit more gracefully [12:55] looking into it now [12:56] agreed [12:56] danwest: yup, that's what was mentioned in that thread as well [12:56] mramm, danwest: it seems an lxc issue though, not a juju issue [12:56] juju should handle that if nessisary [12:57] I mean we should talk to serge and whatnot, but juju needs to just work or at the very least give good error messages [12:58] mramm: agreed, that specific error means gonet wasn't able to open the interface lxcbr0 [12:58] same issue after killing dnsmasq [12:58] danwest: take a look what's listening on 10.0.3.1 [13:00] tftp [13:01] nothing [13:01] maybe it starts dnsmasq twice or something? anything else useful in the log? [13:03] nothing in the log, actually the entry must have been old as I moved the log aside and re-ran - no new lxc log [13:03] entry was not timestamped [13:04] danwest: sorry, perhaps hallyn_ or someone else with more in-depth knowledge of lxc can help [13:06] dimitern: thx [13:08] danwest: i need to deal with some movers for the next hour. addres already in use is weird. can you reproduce at will? can you email or pastebin a reproducer? [13:09] hallyn_: will try, thx [13:10] (or just a launchpad bug against lxc :) [13:10] danwest: oh wait - are you starting containers nested, inside lxc? [13:11] hallyn_: nope [13:11] danwest: if so then you may be running an older lxc - it shoudl fall back to 10.0.4.x if 10.0.3.x is taken by the [13:11] ok [13:11] thx, ttyl :) [13:12] jam: so, suggestions about what error should we return when len(entities) == 0 ? [13:12] jam: thanks for the review btw [13:16] hm, I find that latest branch a little hard to follow dimitern [13:16] mgz: oh? what's not clear? [13:19] various changes made so CharmURl also support services? then I'm not clear on the new getCanAccessUnitOrService func [13:19] mgz: yes, as rogpeppe suggested [13:20] mgz: the new authFunc checks if you're allowed to access the given tag, which is either a unit or service [13:20] mgz: in the latter case, you can access it only if it matches your authentication entity (unit)'s service [13:21] okay, and it works, because a unit tag will never match a service tag, [13:21] mgz: it's used in CharmURL to allow both unit and service tags as args [13:21] so the extra code will always get passed over in the unit case... [13:21] no [13:22] the code is the same for a unit or a service - both support CharmURL (string, bool) [13:22] right, but passing a unit to CharmURL now uses a different auth check [13:22] yes [13:22] but... if a unit is passed, it will still end up calling AuthOwner(tag) the same as before [13:22] no actually, it's still the same [13:22] it's just extended [13:23] yeah [13:23] in case it's not an auth'ed service tag [13:23] AuthOwner will never work for anything else than a unit tag [13:23] those two funcs don't actually need closures, right? [13:23] and services cannot log in anyway [13:24] could you put them at top level with doc comments before assigning into UniterAPI? [13:24] we need to pass them to LifeGetter and AgentEntityWatcher as well [13:25] why? they need the authorizer that was passed to NewUniterAPI [13:25] and they're used only there [13:26] using closures like this is nice, because we're currying the authorizer as an implict arg [13:26] ah, they do need closures, hadn't notices authorizer was a param not a package [13:26] yep [13:26] well, lgtmed. [13:26] cheers! [13:27] rogpeppe: I'll wait for you to take a look before landing [13:27] dimitern: i'm still looking at it [13:41] dimitern: reviewed [13:42] rogpeppe: thanks [13:42] rogpeppe: i don't want to return Entity there - I want the real thing [13:42] rogpeppe: in GetAuthEntity [13:42] dimitern: what? [13:43] dimitern: state.Entity is more real than interface{} [13:43] rogpeppe: but does it have CharmURL and any other method I might need? [13:43] dimitern: no, but anything is better than bare interface{} [13:44] dimitern: at least state.Entity suggests the type that it might be returning [13:44] rogpeppe: so what, for each method we need we have to change state.Entity to add that method? [13:44] dimitern: the set of types [13:44] dimitern: ??? [13:44] dimitern: interface{} has no methods at all. [13:45] rogpeppe: no, but I can do entity.(*state.Unit).CharmURL() on it [13:45] dimitern: just as you can if it's state.Entity [13:45] dimitern: there's no difference in that respect [13:45] rogpeppe: so you can cast any type, no just an interface{} ? [13:45] dimitern: um, yes? [13:45] rogpeppe: c-style? [13:45] dimitern: any interface type [13:46] dimitern: and state.Entity is an interface [13:46] rogpeppe: hmm [13:46] rogpeppe: ok then, I'll try it [13:46] dimitern: thanks [13:47] * rogpeppe gets some lunch [13:55] anyone: next one in line https://codereview.appspot.com/12850044 [13:58] natefinch: did you see: https://code.launchpad.net/~michael.nelson/juju-core/1208504-post-bootstrap-hp-no-instances-found-try2/+merge/179899 I think noodles775 has touched the same code as you, but I might be thinking of the wrong patch (I've gone through a lot of patches today :) [13:59] dimitern: len(entities) == 0 can just be kept the same way. If we do decide to change it, then "ErrNoArgs" or something along those lines. But it would be a policy change across the board so it should be thought about and discussed I think. [13:59] * jam I'm off for now [14:00] natefinch, jam: happy to reject mine if it's already fixed :) [14:03] jam: I decided to remove it [14:03] jam: when we introduce backward-incompatible changes to params we'll have to take that into account, like for SetStatus [14:05] dimitern: well we need it in place *before* we make an incompatible change, otherwise the "old servers don't error on new requests" is still valid. [14:05] anyway, it is a separate change from what you're doing. [14:06] jam: yep [14:08] jam, noodles775: looking now [14:14] jam, noodles775: looks very different from my changes. Mine is more focused on when you really haven't bootstrapped yet, rather than bootstrapping not being finished [14:14] jam, noodles775: I think they're complimentary changes, and shouldn't affect one another [14:15] natefinch: Cool - thanks for checking. [14:16] ah, both noodles775 patches. https://codereview.appspot.com/12755043/ vs https://codereview.appspot.com/12795045/ [14:17] noodles775: is https://codereview.appspot.com/12795045/ supposed to supersede the other? [14:18] jam: yeah it is. I'd not realised you'd commented on the former - it should be closed. [14:18] * noodles775 closes. [14:18] noodles775: I tend to drive reviews from my email folder, so that doesn't always help :) [14:18] mgz, jam, rogpeppe: when you have some time PTAL https://codereview.appspot.com/12850044 [14:22] rogpeppe, so, https://codereview.appspot.com/12352044/ [14:22] rogpeppe, your analysis is I think correct [14:22] * rogpeppe breathes a sigh of relief [14:22] rogpeppe, but you removed a great big pile of test coverage with the "fix" [14:22] rogpeppe: also updated https://codereview.appspot.com/12849043/ [14:23] rogpeppe, and AFAICT it could have been resolved with a LaxStringsWatcher at the end of the unit and machine tests [14:23] fwereade: really? [14:23] er LaxNotifyWatcher [14:23] fwereade: what's no longer tested? [14:23] rogpeppe, well, unless you removed the coalescence behaviour and verified that the tests failed [14:23] fwereade: i didn't understand why StartSync tests coalescence that Sync doesn't [14:24] rogpeppe, which they wouldn't have done, because the Sync version essentially forces coalescence irrespective of watcher implementation [14:24] rogpeppe, because the Sync tests force all events to have been read before we read from the watcher [14:25] rogpeppe, the StartSync ones were explicitly there to test what happened when we read from the out channel before the in channel was exhausted [14:26] fwereade: i still don't quite see it [14:27] fwereade: the difference between StartSync and Sync is just one or two scheduling decisions. I don't see how that can be the basis of a reliable test. [14:27] rogpeppe, the point is that Sync will always pass, while StartSync will sometimes fail if the behaviour's wrong [14:28] fwereade: perhaps you could describe to me a possible failure mode when using StartSync [14:28] rogpeppe, more reliability is good, I would be happier if the tests could reliably pass/fail in all circumstances [14:28] fwereade: so I can understand what we're trying to guard against [14:30] fwereade: https://codereview.appspot.com/12859043 and https://bugs.launchpad.net/juju-core/+bug/1201503 's comments for some investigation [14:30] <_mup_> Bug #1201503: Add os disk constraint [14:31] * arosales reading backscroll, looks like wallyworld_ jam figured out the public bucket issue [14:32] sidnei, cheers [14:33] * fwereade continues to try to marshal a clear argument for rogpeppe [14:34] * rogpeppe continues to wear a slightly puzzled expression [14:37] * fwereade might have come up with an illustrative question [14:38] fwereade: are you talking specifically about testing the behaviour of the collect function? [14:38] rogpeppe, how is it possible for us to test event coalescence when Sync is the only tool in play? [14:38] rogpeppe, yeah [14:39] rogpeppe, whenever we Sync we force the watcher to finish handling all events before we even try to read from Shanges [14:40] rogpeppe, er Changes [14:40] fwereade: how's that? [14:40] oh, i see [14:41] rogpeppe, so you are perfectly correct about what was going on [14:42] rogpeppe, it's somewhat interesting that a case could be made that the tests were failing due to a hard-to-detect bug in the watcher implementation [14:42] rogpeppe, but changing that stopped us from being able to detect similar bugs that would I think unarguably be bugs [14:42] fwereade: it depends what semantics you expect from StartSync really [14:43] rogpeppe, as opposed to this behaviour which is, er, arguable [14:43] rogpeppe: should I land https://codereview.appspot.com/12849043/ now? I think I did all you asked [14:44] rogpeppe, I just expect it to return as soon as possible, and for that to leave a moderate chance of detecting collect bugs [14:44] mgz: hey [14:44] fwereade: i *think* the tests could still break when coalescence is disabled and using Sync [14:44] dimitern: looking [14:45] fwereade: in fact, i might try that out [14:45] mgz: https://codereview.appspot.com/12850044 quick review? [14:45] rogpeppe, I think that NotifyWatcher and StringsWatcher are safe from that, and I couldn't repro it just now, but I didn't try very hard [14:45] rogpeppe, any more complex watcher where there's another layer in play is vulnerable [14:46] rogpeppe, but NW and SW only have one select loop, and as soon as the last event's been delivered the watcher finishes processing it before going round again and potentially sending on Changes [14:47] fwereade: i think a better way of testing coalescence is to make the test start a goroutine to transfer all events into a buffered channel, then call Sync [14:49] fwereade: as a specific coalescence test [14:49] rogpeppe, yeah, that sounds nice [14:50] rogpeppe, but that sort of test does get rather tricky to follow... iirc you argued against that sort of approach when I first proposed it [14:50] fwereade: istm that's a better approach than spraying StartSync about the place as if it's testing something specific [14:51] rogpeppe, well, hmm [14:51] fwereade: i'd have only one test like that for each watcher [14:51] rogpeppe, I think that Sync is very hard to justify [14:51] fwereade: i think that StartSync is even harder to justify :-) [14:52] rogpeppe, expand please, Sync STM to be much further divorced from anything resembling a real situation [14:52] rogpeppe, you know what [14:52] fwereade: StartSync gives you no guarantees at all, which makes it hard to write reliable tests [14:52] rogpeppe, fuck both sync and startsync, we should just patch out the watcher period [14:53] rogpeppe, but Sync is completely fake and makes it very easy to write completely useless tests [14:53] fwereade: actually that sgtm [14:53] dimitern: looking [14:54] fwereade: we call Sync to make sure the events have arrived, if we patch the watcher period, we can guarantee that [14:56] dimitern, hmm, though, I think we still need *some* sort of machinery somewhere, or to make *very very* timing-dependent tests, which ain't great [14:56] dimitern: how can we guarantee that? [14:56] dimitern: timing isn't guaranteed, as fwereade says above [14:57] dimitern: i still don't quite understand why you need getUnitOrService [14:57] rogpeppe: for cases like Life, Watch and CharmURL [14:57] dimitern: why not just call State.Entity directly in those cases? [14:58] rogpeppe: there's no state.Entity() [14:58] rogpeppe: there's FindEntity and what's wrong with my approach? [14:58] dimitern: oh yeah, FindEntity, sorry! [14:58] dimitern: what does getUnitOrService give you that State.FindEntity doesn't? [14:59] rogpeppe: better validation of expected tag kinds? [14:59] dimitern: that's already validated by canAccess, no? [15:00] rogpeppe: no [15:00] rogpeppe: it only checks if you can access it [15:00] rogpeppe: it's not validating tag kinds [15:01] rogpeppe: a bit of extra sanity checking at the expense of 3-4 lines seems like a good idea [15:01] rogpeppe: and it's only done once in getUnitorService [15:01] dimitern: how could canAccessUnitOrService return true for a tag that wasn't a service or a unit? [15:01] rogpeppe: when state is flawed somehow? [15:02] dimitern: i think it's worth having clear security checking boundaries, rather than just piling extra checks on like they might help [15:02] rogpeppe: you have a unit that has an invalid service attached to it? [15:02] dimitern: there are hundreds of ways we could go wrong if our code is flawed [15:03] dimitern: you're *already* assuming that canAccessUnitOrService is operating as expected [15:03] rogpeppe: I didn't say our code is flawed [15:03] rogpeppe: I said the state in mongo might be invalid [15:03] [16:01:58] rogpeppe: when state is flawed somehow? [15:04] rogpeppe: ^^ [15:04] (to many things called "state") [15:04] dimitern: even if the state in mongo is invalid, your checks would still not fail [15:04] rogpeppe: for later/tomorrow/next week, I've also updated the interspersed flags based on our conv. yesterday: https://codereview.appspot.com/12603047 [15:05] dimitern: there's no way we can return a *Unit from a service- tag [15:05] noodles775: thanks [15:05] rogpeppe: ok, I give up [15:05] dimitern: i'm only trying to get us to write less, simpler, code [15:05] rogpeppe: I'm getting rid of getServiceOrUnit and replacing it with FindEntity [15:05] dimitern: cool, thanks [15:05] rogpeppe: I want to land this already [15:06] rogpeppe: but will keep the getUnit and getService helpers [15:06] dimitern: yeah, i thought they were worth it for the static type conversion [15:07] s/conversion/return === tasdomas is now known as tasdomas_afk [15:08] rogpeppe: reproposing with that change [15:09] rogpeppe: done === BradCrittenden is now known as bac [15:13] rogpeppe: was that the only issue that needed fixing? [15:13] mgz: thanks [15:14] rogpeppe: I think that review is for you :). Nothing urgent though, it's just a clean-up. https://codereview.appspot.com/12861043/ [15:14] dimitern: reviewed. thanks for bearing with me! [15:15] noodles775, just looking at https://codereview.appspot.com/12603047/patch/11001/12004 [15:15] noodles775, what extra args were you expecting for debug-log [15:15] ? [15:16] rogpeppe: thanks [15:16] rvba: LGTM [15:18] fwereade: well, debug-log does say that it accepts ssh args [15:18] fwereade: which seems weird to me, but there y'go [15:18] rogpeppe, seems weird to me too [15:18] fwereade: I wasn't expecting any... but debug-log apparently doesn't embed CommandBase (at least, I got a compile error saying it wasn't implementing the iface due to the missing method). [15:19] fwereade: do we know what people might use that feature for? [15:19] fwereade: so I needed to add the method - happy to update it to instead return CommandBase.AllowInterspersedFlags which defaults to true). [15:19] rogpeppe, afraid not... wallyworld_ implemented it iirc [15:20] fwereade: does the python version allow arbitrary ssh args there, d'ya know? [15:20] rogpeppe, the only case I can think of is needing to pass args down to ssh to cause that to work, but that seems surprising... an indicator of a different bug maybe? [15:21] rogpeppe, looks like it doesn't [15:22] rogpeppe, OTOH it *does* accept a bunch of other args that we don;t [15:22] fwereade: ha ha [15:22] rogpeppe, including, it seems, "--replay" equivalent to your requested "--all" [15:22] rogpeppe, although I think I still disapprove ;p [15:23] fwereade: i will definitely use --all most of the time, despite the bandwidth [15:23] noodles775, cool, I think if we just make it match CommandBase I'll be happy [15:23] fwereade: it would be nice to have a "last x minutes" flag though [15:23] rogpeppe, not to mention filtering [15:24] fwereade: yeah, that too [15:24] noodles775, reviewed, LGTM with that change [15:24] noodles775, thanks [15:25] Thanks fwereade, updating now. [15:28] noodles775: reviewed [15:29] fwereade: cmd.ParseArgs can go, yay! [15:29] noodles775: i'm very happy how that turned out [15:29] rogpeppe: yeah, much nicer - thanks for the suggestions. [15:32] rogpeppe: erm, you meant s/false/true when you said "I'd just return false here" didn't you? (as per fwereade, we just want the same behavior as CommandBase) [15:33] noodles775: oh, possibly, yes, assuming we *don't* want to allow arbitrary ssh args to be passed through [15:33] Right. [15:43] rogpeppe: sorry, another question - when you say that ParseArgs can now be removed, are you meaning I should add SuperCommand.AllowInterspersedFlags() returning false, or is there another reason why it'll just work that I'm missing? [15:46] rogpeppe: nm - I see you said that later. [15:47] noodles775: that's the main reason i'm particularly happy with this change [15:48] noodles775: the non-interspersing parsing of supercommand was a hack, but now it just falls out naturally. [15:48] Great :-) [15:48] noodles775: it also means that supercommands can now nest nicely if we want them to [16:00] trying to land a branch, but bzr is saying it can't get the lock on the branch.... from natefinch@bazaar.canonical.com. That seems bad. [16:00] Maybe I'm doing something wrong [16:05] rogpeppe, dimitern, mgz: any thoughts on ^ [16:06] natefinch: can you paste the message you're getting? [16:06] nate@Asgard:~/code/src/launchpad.net/juju-core$ bzr push lp:~natefinch/juju-core/juju-core [16:06] Unable to obtain lock held by natefinch@bazaar.launchpad.net on taotie (process #25639), acquired 9 minutes, 56 seconds ago. [16:06] See "bzr help break-lock" for more. [16:06] bzr: ERROR: Could not acquire lock "(remote lock)": bzr+ssh://bazaar.launchpad.net/~natefinch/juju-core/juju-core/ [16:06] <_mup_> Bug #25639: gs-gpl - .getdeviceparams gets called with broken types [16:06] natefinch: why are you naming your branch "juju-core"? [16:07] I was attempting to follow a document Frank gave me - https://docs.google.com/document/d/1G74QKbJqPLooEBVPOeB5qgJSQ5fb7KGpmUTTjIK0NnQ/edit [16:07] rogpeppe: I may have done something wrong :) [16:08] natefinch: ah, i think those instructions are misleading [16:09] natefinch: we usually make a unique (to the user) name for each new branch [16:09] natefinch: (personally, i use branch names of the form 999-description, so i can remember the order i created them in) [16:10] I tried that... at least, I thought so. I had named it 002-bootstrap or something like that. Obviously not quite the right thing [16:10] natefinch: ah, actually that is suggested in that document: "bzr push --remember lp:~themue/juju-core/001-my-useful-change" [16:10] natefinch: when you write "bzr push lp:~natefinch/juju-core/juju-core" you're trying to push it to a branch named "juju-core" in your lp space [16:10] natefinch: which seems to exist already [16:11] natefinch: I saw that yesterday [16:11] natefinch: note - it's better never to interrupt lbox (^C) once started [16:11] dimitern: I may have done that once or twice :/ [16:11] natefinch: just do bzr break-lock bzr+ssh://bazaar.launchpad.net/... (the branch it told you) [16:12] natefinch: and then repropose, should work [16:12] natefinch: i've also got a lock held [16:12] Unable to obtain lock held by rogpeppe@bazaar.launchpad.net on taotie (process #30432), acquired 1205 hours, 16 minutes ago. [16:12] <_mup_> Bug #30432: skim is hung on with "sudo kate" [16:12] See "bzr help break-lock" for more. [16:12] natefinch: and yes, it's better to pick some names for your branches [16:12] natefinch: :-) [16:13] natefinch: it's actually quite useful, because it's on lp:~rogpeppe/juju-core/trunk [16:13] dimitern: I tried to... I think I just misread something somewhere [16:13] natefinch: and the lock message warns me that i've forgotten to rename my branch again [16:14] natefinch: are you using cobzr? [16:14] rogpeppe: no, but only because I don't know what it is :) [16:15] natefinch: http://labix.org/cobzr [16:15] natefinch: some people hate it [16:15] natefinch: i find it works pretty well for me [16:15] rogpeppe: man that guy is prolific :) [16:15] natefinch: ain't it so [16:16] natefinch: i define bzr as cobzr (i use a shell function) [16:16] rogpeppe: ahh, this was what mgz was using yesterday... I was wondering how he did that switching between branches [16:16] natefinch: i think you can use a bzr feature too, but i don't know how to do that [16:17] natefinch: i usually do: cobzr branch lp:juju-core/trunk [16:17] natefinch: then: cobzr switch trunk [16:17] natefinch: then: cobzr checkout -b 123-my-new-branch [16:17] natefinch: then edit the branch, commit, and lbox propose [16:17] rogpeppe: that looks pretty good [16:17] natefinch: i can switch between branches with cobzr switch branch-name [16:18] natefinch: and i can keep the same GOPATH for most development purposes [16:18] natefinch: (i actually keep another one for testing against different go versions) [16:19] rogpeppe: yeah, that was immediately my thought... having multiple branches in the same directory is a big help. I've been renaming ones I'm not actively working on, but that's kind of a headache [16:19] natefinch: i've got 307 branches in my juju-core tree currently :-) [16:20] * rogpeppe should probably do some garbage collection some time [16:20] rogpeppe: disk space is cheap :) [16:20] natefinch: yeah, it's only 54MB [16:22] natefinch: no, I was using native colo [16:23] it's got a few quirks, but is far less buggy [16:24] mgz: I saw it was an upcoming feature.. what version of bzr are you on? [16:25] natefinch: the one in the current distro/ppa for older versions [16:26] mgz: ahh yeah, it looks like my version (2.6) has it. Cool. [16:26] so, `apt-add-repository ppa:bzr/ppa` if you're on precise or something [16:26] right, 2.6 is what you need === natefinch is now known as natefinch-lunch [16:29] back in a bit... thanks for the help === natefinch-lunch is now known as natefinch [17:10] mgz, rogpeppe, dimitern: can one of you (or anyone else) help me detangle my bzr mess and get my branch landed? [17:10] natefinch: sure [17:10] rogpeppe: thanks [17:10] hm, since when does juju bootstrap perform a tool sync from amazon? [17:10] rogpeppe: so, I think this is probably one problem: [17:10] Repository tree (format: 2a) [17:10] Location: [17:10] shared repository: /home/nate/code [17:10] repository branch: . [17:10] Related branches: [17:10] http://pastebin.ubuntu.com/5981915/ [17:10] push branch: bzr+ssh://bazaar.launchpad.net/~natefinch/juju-core/002-notbootstrapped/ [17:10] parent branch: /home/nate/code/src/launchpad.net/juju-core-trunk [17:10] submit branch: bzr+ssh://bazaar.launchpad.net/+branch/juju-core/ [17:11] ahasenack: since quite recently, but i don't think that should happen when using --upload-tools [17:11] natefinch: what's the mess? [17:12] rogpeppe: yeah, and it's syncing the wrong tools even (1.12) [17:12] mgz: see the paste above... that looks wrong, but I don't really know what it's supposed to look like, so maybe that's ok [17:13] ahasenack: looks odd to me [17:13] natefinch: apart from submit branch (which doesn't really matter) it's fine? [17:14] ahasenack: it should find the tools it's uploaded [17:14] mgz: oh, ok. I thought the submit branch was what was tripping me up. [17:14] rogpeppe: fwiw I'm on raring, and requested a saucy bootstrap node, but it did say it was uploading a saucy tarball [17:14] I'm filing a bug [17:14] ahasenack: +1 [17:15] mgz: so, how do I land this thing? I merged from trunk, so I should be up to date [17:17] natefinch: see my "Landing bot active again" post to juju-dev for an easy way [17:17] in the archives, july 29th [17:18] mgz: where's the archive? I wasn't on the mailing list at that point [17:18] lists.ubuntu.com [17:19] mgz: nice, thanks [17:27] sidnei, reviewed [17:34] dimitern, fwereade, natefinch: fairly trivial change to utils/set: https://codereview.appspot.com/12872043 [17:37] fwereade: uhm, not sure i get the comment about instance types without instance-storage? what are those? === tasdomas_afk is now known as tasdomas === tasdomas is now known as tasdomas_afk [17:38] right, environs/ec2 tests pass. time to stop for the day. [17:38] g'night all [17:40] rogpeppe: LGTM'd === BradCrittenden is now known as bac