[00:00] natefinch: see tim's email thread from last year about the proposed design [00:00] sorry i cannot link to it [00:01] i dunno how to link to messages on that ML [00:01] davecheney: search for diaf is surprisingly useful [00:01] :) [00:04] Bug #1582841 changed: remove check for lxdbr0 [00:08] davecheney: I don't see anything in that thread that says that flock won't work. It seems to say flock won't release on process end, but that's incorrect from my reading and experience. go closes the file handle and the lock is released on process exit. [00:09] er lock is released when the file descriptor is closed, which happens automatically on exit [00:10] davecheney: if you just want to avoid futzing with files on disk, that's valid, too [00:11] anastasiamac: FWIW I only found these 3 https://goo.gl/JG8NXL none of which would have been fixed by the updates to aggregator AFAICT. [00:25] natefinch: please, no flock, use unix domain sockets as we discussed [00:25] davecheney: ok [00:25] flock requires a file on disk [00:25] if I delete that file I can effeictly release that lock [00:25] and we're back to square one [00:26] can you do that in windows? (without a signifficant effort?) [00:26] nope [00:26] windows is a real lock [00:26] I know flock is only advisdory [00:27] it's not that flock is advisory [00:27] but the thing that is being locked can be moved or deleted which breaks the lock invariant [00:29] flock also leaves with the 'oh i crashed and there is a file on disk' problem [00:29] man page says "Apply or remove an advisory lock on the open file specified by fd." maybe the docs are misleading, but regardless.. yes, you can break it trivially [00:29] the file on disk doesn't matter [00:30] yes it does [00:30] you need to have a file to apply a lock to [00:30] the existence of the file has no meaning [00:30] you cannot flock a non existant file [00:30] so you have to create that file [00:30] well, yes [00:30] so now you have two lockers racing to create the file [00:30] if you fail to create the file because someone else was racing with does taht mean you cannot lock it, etc [00:30] k people, EOD, see you all on thu [00:30] please just use unix domain sockets [00:31] they solve 100% of these problems [00:31] it's really not a race, but that's fine [00:31] net.Dial("unix", "@/juju/$SOMEHASH") [00:32] I open with O_create... one proc will create first, the other will open [00:33] good point [00:33] but please [00:33] no files on disk [00:34] I agree that files on disk are a liability. I was just doing it that way to minimize changes to current code. but we can do socket on linux and mutex on windows [00:38] fwiw I seem to be hitting bug 1537585 a lot more with juju 2 and maas 2 [00:38] Bug #1537585: machine agent failed to register IP addresses, borks agent <2.0-count> === redir is now known as redir_afk [00:59] thumper: what tha ? [00:59] lucky(~/src/github.com/juju/juju/cmd/jujud/agent) % go test -i -v . && go test . [00:59] ok github.com/juju/juju/cmd/jujud/agent 122.841s [01:00] lucky(~/src/github.com/juju/juju/cmd/jujud/agent) % go test -race -i -v . && go test -race . [01:00] ok github.com/juju/juju/cmd/jujud/agent 1.168s [01:00] ^ this test runs 100x faster under the race detector ... [01:00] lol, we should use the race detector during production, evidently [01:02] uh oh [01:02] i have a terrible feeling about this [01:02] I have a great feeling that this is going to be an awesome bug [01:02] lucky(~/src/github.com/juju/juju/cmd/jujud/agent) % pt -i race [01:02] package_test.go: [01:02] 15: if testing.RaceEnabled { [01:02] 16: t.Skip("skipping package under -race, see LP 1519133, 1519097") [01:02] lol [01:02] nice [01:02] bug 1519133 [01:02] Bug #1519133: cmd/jujud/agent: data race <2.0-count> [01:03] bug 1519097 [01:03] Bug #1519097: juju/utils/fslock: data race caused by createAliveFile running twice <2.0-count> [01:03] OH MY FUCK [01:03] this god damn fslock nonsense [01:03] what, it's fix released [01:03] no more race [01:03] let's remove that check and see what breaks [01:05] well, the fslock one we are working on [01:10] Bug #1585424 opened: all: data race's in tests are surpressed [01:11] thumper: https://bugs.launchpad.net/juju-core/+bug/1585424 [01:11] please see email [01:11] Bug #1585424: all: data race's in tests are surpressed [01:11] and let me know your decision [01:19] Bug #1585424 changed: all: data race's in tests are surpressed [01:20] bug 1519095 [01:20] Bug #1519095: state: tests to not pass with -race under Go 1.2 <2.0-count> [01:20] oh wow [01:21] welp that's what happens when a bug isn't a blocker [01:21] it goes straight to the bottom of the pool [01:31] Bug #1585424 opened: all: data races in tests are surpressed [01:36] davechen1y: IIRC the idea was that at least we wouldn't get any *new* data races in core if we're running the race detector. The problem being that we never went back and actually fixed the ones that got skipped [01:38] yeah, that's what I remembmer now [01:38] i remember it was an uphill battle to stop new races being added [01:38] it's good to know that we can prdict the future [01:40] http://reviews.vapour.ws/r/3204/ [01:40] :( [01:41] *sad trombone* [01:42] * davechen1y considers replacing paul the octopus as a fortune teller [02:10] Bug #1585430 opened: Cloud-init failed on windows [02:19] if you thought the state tests were slow without -race, just wait til you see them with -race [02:19] heh yeah, -race and -cover are always interesting additions [02:33] thumper: cherylj https://github.com/juju/juju/pull/5452 [02:33] please read the description closely [02:33] I think our timeout for race is like 60 minutes [02:33] * thumper double checks [02:34] that's probably _just_ enough [02:36] 30 minutes [02:36] go test -race -test.timeout=1800s ./... [02:36] it'll be tight [02:36] this passed in 1500s on my machine [02:37] without any other tests running [02:37] it'll probably be ok [02:37] at least we know which change to revert [02:37] right [02:37] I say push it in [02:39] jolly good [03:11] Bug #1583893 changed: 1.25.5: goroutine panic launching container on xenial [03:50] Bug #1583893 opened: 1.25.5: goroutine panic launching container on xenial [03:59] cherylj: anastasiamac https://bugs.launchpad.net/juju-core/+bug/1518806 [03:59] Bug #1518806: apiserver: tests to not pass with -race under Go 1.2 <2.0-count> [03:59] i think there is a still a race here [03:59] what testing did you do and why do you think the race is not present ? [04:00] anastasiamac: cherylj for reference the race I see is https://bugs.launchpad.net/juju-core/+bug/1519133/comments/2 [04:00] Bug #1519133: cmd/jujud/agent: data race <2.0-count> [04:00] davechen1y: I ran the race test locally [04:00] specifically for apiserver/ [04:02] davechen1y: did u ran only apiserver package with race detector (in isolation) or started at the root, i.e. from top of juju/juju? [04:02] anastasiamac: did you remove the skip ? [04:02] that package knows when it's run under the race detector and skips all the tests [04:02] it does log it [04:02] davechen1y: i have not run race detector here as I have not been in this package yet [04:02] but the log is not printed anywhere [04:02] :( [04:03] righto, i guess it's not fixed then [04:03] if u r seen it, then it does not sound fixed ;-P [04:03] it could have also been re-introduced?.. [04:03] I ran the test locally removing the skip and didn't see a race in apiserver/, but that doesn't mean that there isn't one [04:05] at some stage, we should really unskip tests that r related to bugs that are considered fixed... [04:18] cherylj: i think it's not well exercised by the race [04:18] the tests in cmd/jujud/agent agetate the cert updater so that's why it shows up there [04:18] but ht race is definitely in the apiserver code [04:19] i'll try to write a test that agrevates the problem [04:22] davechen1y: when you said use unix domain sockets and net.Dial(....) did you mean net.listen? can you dial a domain socket without anyone listening? [04:25] yes, i'm sorry, i meand net.ListenUnix [04:33] EOD++ for me. night all. [04:37] axw: wallyworld: this is permissions check that i was talking about at standup - http://reviews.vapour.ws/r/4895/ [04:38] ok, taking a look [04:39] anastasiamac: but [04:39] // password, so that we don't allow unauthenticated users to find [04:39] // information about existing entities. [04:39] that information hiding is now lost [04:40] it's like when you enter user/pass into a banking website [04:40] it just says bad credentials or something [04:40] it doesn't tell you what was invalid [04:40] it's not lost, we return permission denied without saying that entity does not exist [04:41] when u go to the bank website, they say the same thing [04:41] right, and then when the correct entity is passed, we then return BadCreds right? [04:41] so 2 different errors depending if the user is valid or not [04:42] we have a reaction to bad credentials error - we restart stuff... so we need to ensure that we only return bad credentials when we intent to resat agent, for eg.. [04:42] yes, if user is valid but does not have permission - deny acces [04:42] but the error code becomes different so we leak info [04:42] if user/pwd is not valid, bad credentials - do whatever needs to be done like restart... [04:43] we do not leak info - we do not say 'not found" [04:43] the point is - we need to return the same error if user/pass together are not valid, regardless of cause [04:43] we say - u have no permissions to do what u r trying to do [04:43] you can infer the not found [04:44] by looking at the return error [04:45] if we return bad credentials error, for example, we terminate api... we do not want to that when the login entity has valid creds but not permissions [04:47] sure, that's an upstream problem though [04:47] we cannot solve that issue by leaking information [04:47] ? [04:47] the comment that was deleted in the PR explained why it was done that way [04:47] this is the reason we keep restarting agents [04:48] permission error doe s not imply something is not found... [04:48] it does in this context as it is different to what's returned when the entity is found [04:49] the question to ask is - why is the api being called with a bad user? [04:49] isn't that the root cause issue? [04:51] the root cause is in several bug, the prime one is refered to in PR. [04:51] essentially, we (juju) reacts differently to bad creds [04:51] so we need to be careful about when we throw it [04:52] sure, but we can't fix the issue by leaking information [04:52] otherwsie, we;'ll have a reaction that is too drastic, is uncalled for and is not helping [04:52] \o/ i have difficulty seeing info leak [04:53] if i'm a hacker, i throw different user/pass at the api. if i get an errperm vs an badcreds, i can deduce if the user exists or not [04:53] that's an information leak [04:53] once i know a user exists vs not exists, the cracking problem becomes much easier [04:53] i now just need to guess the passowrd [04:54] sure, but if "entity" is not found, u really do not want to restart everything either [04:54] correct [04:54] so we need a different solution [04:54] that doesn't leak info [04:54] wel, we need an error that is not bad creds (coz we have a reaction to that) [04:54] the only other one that we have is PermErr [04:54] we need to understand the upstream root cause [04:54] whcih is actually what we are after - permission is denied \o/ [04:54] why is the caller passing a bad entity name? [04:57] this func is not just used by users, if u look for dependent calls [04:58] also i think that this conversation should be taken off-line and have Will and Andrew involved :D [04:58] m happy to have it anytime and m happy with any solution that involves not to restart for every failure [05:01] sure, we can discuss. but it's an information leak, and there was a comment that explained why. if it is decided we don't care about the information leak, then fine. but it's risky to leak information without a proper discussion [05:03] true information leask is a concern - m not convinced this si the case here.... another concern is the restart that is caused by bad creds... solution needs to ensure that neither happen :D [05:04] disclosure of whether an user protected by a password exists or not is an attack vector [05:04] the information is whether the user exists and it is leaked [05:05] if different errors are returned. it's why banks for example always just return a generic "invalid user password combination" error [05:05] they don't say *which* of the user or password is wrong [05:10] in this instance, find entity determines if the call is made by machine/unit/user/service/etc... r u saying that if an unknown to us machine is making a call, it is the correct call for us to restart the api? :D [05:17] anastasiamac wallyworld: what has the server's behaviour got to do with the client's behaviour around restarting the API? that's a client policy. you should not be leaking information (yes there *is* leakage) from the server to control the client's behaviour [05:18] +1 [05:18] that's my point [05:18] anastasiamac: like wallyworld says, if you can infer that the username is valid because "not found", then you're leaking info, and htat's a security concern [05:18] that reduces the cost of a brute foce attack to focusing mostly on the password [05:18] force* [05:19] yep [05:19] sure and i agree [05:19] but throwing bad creds here if the entity is not a user, is what is causing issues [05:20] anastasiamac: so the issue is related to the unhandled tag kind? [05:24] axw: the issue is thatwe use given tag to find entity. if entity is not found we throw bad creds which we react to.. i think we should throw something else here [05:24] m happy to revert this badcreds instance for now and only keep the other instances (that are more cleanly defined) in this PR [05:25] axw: this fix is surprisingly simple, can I get a sanity check https://github.com/juju/juju/pull/5455 [05:26] thnks! [05:31] anastasiamac: I don't understand how can say "sure and i agree" and then what you just said. either we return ErrBadCreds, or we leak information [05:31] davechen1y: looking [05:34] davechen1y: LGTM [05:36] axw: I agree about obfuscating and not leaking info :D i am not convinced that badcreds is always the right answer here.. maybe only for user tags...either way, i'll come back to this instance later but will adress other comments on PR after school/kids pick-up [05:43] who has the power to unblock a message to juju-dev ? [06:07] axw: "application-wordpress" or "app-wordpress" ? [06:07] wallyworld: "app-" please [06:07] ok, i kinda like application- :-) [06:08] app- is ok i guess [06:08] wallyworld: feel free to get a second opinion, I just think application- is tedious [06:08] yeah it is, but app- sorta grates for some reason. maybe just me [06:25] axw: if you have a moment, first of a few sigh http://reviews.vapour.ws/r/4897/ [06:27] wallyworld: hrm, app- looks grating to me too now. maybe bring it up in the meeting later [06:27] axw: i do think application works better [06:28] it's not much longer than service [06:28] i have a charm.v6 change queued up, so i'll change to application- [06:28] wallyworld: did you intend to change the package paths to gopkg.in? [06:28] yeah [06:28] so we can rev up the version [06:29] to names.v2 [06:29] right, ok [06:29] so we don't buuger up 1.25 etc [06:29] there'll be a lot of churn in all this sadly [06:29] Bug #1584059 changed: Deployment of swift-storage charms fails with Juju 2.0 - swift-storage-relation-joined KeyError: 'JUJU_ENV_UUID' [06:49] axw: next one https://github.com/juju/charm/pull/210 [06:49] gotta duck out for school pickup, will look at yuors in a bit [07:22] axw: the yaml thing - we had the relations data unmarshalled with the v2 Unmarshall, and I think the service data with GetYaml() from v1, it was a bit of a mess [07:23] i had a quick look at the v2 release notes and didn't see anything that jumped out [07:23] multi-line strings have been improved, but i don't think that affects charms [07:24] wallyworld: non capisco. is anything feeding charm metadata into yaml.v1? not sure which things use it TBH. charmstore possibly? new charm tool? [07:25] no argument that it's a mess, just not sure if we can fix it without breaking others [07:25] given we had a mix of v1 and v2 before, it seems unlikely we'd be relying on v2 specific behaviour [07:26] the charm metadata is fairly simple yaml i guess? [07:26] nothing too esoteric [07:27] wallyworld: my point is that (AFAIK) the MarshalYAML methods won't be called if the structs are passed to yaml.v1 [07:27] wallyworld: so the custom behaviour that was in GetYAML won't be triggered [07:27] yeah, that's correct [07:28] i can't fathom why we'd need both [07:28] wallyworld: only because some clients might not have been updated [07:28] now is the time ot make this change i guess [07:29] it is charm.v6-unstable, clients out there would be using .v5 [07:29] ok [07:29] that's my self justification [07:29] if i say it often enough it makes sense [07:30] wallyworld: :) [07:30] wallyworld: seems fair, I'm just not sure what the impact is [07:30] yeah, i'm not 1000% sure [07:31] we can fix anything that comes up easily enough [07:31] wallyworld: yep ok, consider the question dropped [07:31] ok [07:33] wallyworld, in hangout [07:39] anyone know what the deal with br-bond1 is? we have 2 bonds on these machines, and juju creates br-bondx for both of them, but only one of them is put in the interfaces file [07:39] this is with juju-2 [07:57] bradm: dimitern or frobware would know [07:58] bradm: can you PB the original /e/n/i file and Juju's morphed version. [07:59] frobware: thats the point, there is no details about br-bond1 in /e/n/i [07:59] bradm: MAAS? [07:59] frobware: yup [07:59] frobware: in this case, maas 2.0 with juju 2.0 [08:00] bradm: ah. haven't really tried MAAS 2.0 that hard. hmm. [08:00] bradm: frobware: maybe voidspace then [08:00] I have to run to take the boy to cubs, will check back in later [08:01] bradm: but there should be the original /e/n/i available [08:01] frobware, bradm: hey, what's the issue? [08:01] frobware: ayup, there is - it adds br-bond0 to /e/n/i, but not br-bond1 [08:01] bradm: it has the extension -before-juju-add-bridge.py [08:02] got to run, didn't realise the time [08:02] bradm: ack [08:02] perhaps is br-bond1 unconfigured and has no address, but it has configured 'children'? === Guest6887 is now known as BrunoR [09:02] can someone with mod rights on juju-dev please let my message out of moderation [09:02] ta! === urulama is now known as urulama|swap [10:29] anyone know anything about the reasoning behind https://github.com/juju/juju/pull/5100 ? [10:29] for example, was it deliberate to remove "juju help plugins" ? [10:30] fwereade, davechen1y, axw: ^ [10:31] frobware, dimitern: yes, our bond1 is unconfigured, we use it for neutron-gateway lxcs [10:32] bradm: so juju should not create a bridge for it, but it should still be present in /e/n/i [10:32] bradm: so you have bond1 unconfigured but up and e.g. bond1.42 also unconfigured and up? [10:33] frobware: right, that would do us - we create a bridge ourselves in the preseed [10:33] oh.. [10:33] dimitern: in maas we create teh bond and leave it unconfigured, we add it to the lxcs as an extra interface, so we do need a bridge for it [10:34] which is fine if you guys do it, we can use whichever bond is there [10:34] er, bridge [10:34] just having 2 bridges on the interface doesn't work so well :) [10:34] bradm: well, as long as the bridge you create in the preseed is called 'br-bond1' and e.g. 'br-bond1.42' for the neutron-ext vlan, the bridge script shouldn't mess with it [10:35] bradm: can you PB the original /e/n/i file - it should be /etc/network/interfaces-before-juju-add-bridge.py [10:36] bradm: are there any VLANs configured on the bond? [10:37] frobware: https://pastebin.canonical.com/157211/ - nope, very plain [10:37] I can try creating it as br-bond1 tomorrow to see if that fixes it [10:38] bradm: your dns-nameserver entry (x.y.z.5) - is that right? [10:38] yeah, I just hid our ip range, out of habit [10:39] frobware: thats the IP of the maas node. [10:39] bradm: ok, just checking... :) [10:40] bradm: so I don't see juju messing with bond1 at all [10:40] trying to do as much as we can in maas, and not hacking up preseeds for it [10:40] * frobware tries to recall what the issue was/is ... [10:40] frobware: right, yet there's a br-bond1 up [10:40] frobware: there's commands in the cloud-init-output.log that configure it [10:41] frobware: https://pastebin.canonical.com/157212/ [10:41] bradm: so juju will create br-bond0 based on your original eni - http://pastebin.ubuntu.com/16676634/ [10:42] actually, there's a br-ethx for all of the eth devices too [10:43] bradm: ah... let me check something... [10:43] but only br-bond0 gets written out to /e/n/i [10:43] maybe because none of the others have IPs? dunno [10:44] bradm: br-bond0 get written to eni because its parent device is 'static' [10:44] bradm: bond1 is manual. [10:44] bradm: so does not get bridged [10:44] frobware: ah, but it does! it creates a br-bond1 [10:44] frobware: its just not in /e/n/i [10:45] bradm: right. that's my "aha" - just checking something... [10:45] frobware: like I said, all the interfaces have a bridge [10:45] well, except for lo [10:45] bradm: I would say, based on the input, the /e/n/i as written looks correct, just checking on something that has changed in the bridge script quite recently. [10:46] frobware: yup, /e/n/i is what we want. its all the extra interfaces that are up we don't want :) [10:46] bradm: agreed. state of interfaces should reflect what's in /e/n/i [10:47] frobware: https://pastebin.canonical.com/157215/ <- those are the extra interfaces [10:49] we just create our br1 in the maas preseed, which is fine [10:50] dooferlad: ^^ [10:50] I can see in the cloud-init-output log where it does it all [10:50] dooferlad: I have a sneaky suspicion your recent changes to the bridge script may be bringing interfaces up where it shouldn't... [10:51] honestly, either way works - if it wants to create a br-bond1 because the interface is there, thats fine, we can use it [10:51] just need it in /e/n/i [10:51] bradm: plz clarify - r u using juju2.beta7 or master tip? [10:52] anastasiamac: juju2 beta 7 with maas 2.0 beta 5 [10:52] frobware: that is horrid. Yea, maybe that is happening. [10:52] dooferlad: bridge_now() should consider is_active - we are creating bridges where we should not. [10:52] dooferlad: see https://pastebin.canonical.com/157215/ [10:53] bradm: this is a recent regression [10:53] bradm: I'm guessing that if you were to reboot the machine it would come up as you expect [10:53] frobware: ayup [10:54] frobware: well, except the lxcs are cranky because they couldn't access anything in our public IP range, so neutron is a little upset [10:55] but, cool, happy to see its not me totally misunderstanding something about the new stuff, these things happen. [10:55] bradm: I think we just need to get a fix and a binary to you. Would that work? [10:56] frobware: sure, thats fine, this is for an internal stack right now [10:56] frobware: and I'm not at work for another 12 hours anyway. :) [10:56] bradm: you happy with some unofficial build from some bloke off the net? [10:56] frobware: ideally we want it fixed in upstream :) [10:57] bradm: of, of course. [10:57] bradm: I was merely trying to find a way to unblock you. [11:05] dooferlad, bradm: https://bugs.launchpad.net/juju-core/+bug/1585582 [11:05] Bug #1585582: MAAS bridge script bridges inactive interfaces [11:06] Bug #1585582 opened: MAAS bridge script bridges inactive interfaces [11:07] frobware: perfect. [11:20] ericsnow, katco: I can add a payload with ID "xyz" (and class type/name docker/payloadA), but when I list the unit payloads it's reported as a Result with ID "payloadA" [11:21] ericsnow, katco: I presume this is expected behaviour, but I'm not sure what it's for [11:21] ericsnow, katco: can you enlighten me? [11:41] dimitern: ping [11:42] voidspace: pong [11:42] dimitern: subnets in model migration [11:43] dimitern: would you consider spacename and availabilityzone fields of the subnet to be "optional"? [11:43] dimitern: (i.e. should they be omitempty in the yaml) [11:43] dimitern: what do you think? [11:45] voidspace: I think we should make best effort to set them, but failing that it's better to have them stored empty (i.e. not omitempty) [11:45] dimitern: ok, cool - thanks [11:45] no default on the import schema either then [11:47] voidspace: yeah, I think so [11:47] voidspace: on a side-note: the subnetDoc should support storing multiple AZs per subnet [11:47] dimitern: yeah, it should [12:01] fwereade: ping [12:03] dimitern: ping [12:03] voidspace: pong [12:04] dimitern: fwereade: the State.AddSubnet method has a checkModelActive in the transaction [12:04] voidspace: yeah? [12:04] this causes adding a subnet during a model migration import to fail because the model is not active [12:04] the obvious solution is to remove the check... [12:05] is that ok, or is there a "right way" to do this [12:05] voidspace: I don't think that's ok [12:06] voidspace: removing the assert I mean [12:06] voidspace: why won't the model be alive ? [12:06] this test fails: https://github.com/juju/juju/compare/master...voidspace:model-migrations-subnets#diff-62dc0c2f793cbec94ae9fcbdf9c9ab84R507 [12:06] on that assert [12:07] it fails with: github.com/juju/juju/state/model.go:878: model "new" is being migrated [12:07] dimitern: a model that is being migrated is not active [12:07] dimitern: the checkModelActive assert actively checks for this [12:08] dimitern: see the definition of checkModelActive [12:08] voidspace: well, the checkModelActive is pretty common - how is that working for other types? [12:09] dimitern: AddSpace doesn't do the check [12:10] voidspace: it should btw; but how about e.g. machines, units, .. [12:10] voidspace: maybe it's ok to skip the checkModelActive check *only* during migration? [12:12] Weird - if I cd '$GOROOT/src/github.com/juju/juju/mongo; go test -v -check.v' the tests all run twice. Does anyone know why that is? [12:13] Does anyone else see that? [12:14] babbageclunk: perhaps due to how '-v' and '-check.v' are handled? [12:14] Oops, meant $GOPATH [12:14] babbageclunk: check `go help testflag` [12:14] dimitern: machine import has it's own transaction and manually inserts the machine into state [12:14] Well, without -v you don't see the output from -check.v [12:15] voidspace: so then it sounds like AddSubnet's ops cannot be used literally for import [12:15] dimitern: copying and pasting them sounds worse [12:15] babbageclunk: try '-check.v -test.v' in that order? [12:16] voidspace: they are likely to be quite different anyway, aren't they? [12:16] dimitern: identical minus that check [12:16] I think, let me confirm [12:17] voidspace: assuming they are called in a certain order - e.g. if spaces weren't yet imported.. [12:17] dimitern: oh no - taking off the -v I still see the (duplicate) output [12:17] dimitern: we only store SpaceName on subnet [12:17] dimitern: so order doesn't matter [12:18] AddSubnet is quite short - I can copy it into migration_import and remove the assert [12:19] babbageclunk: usually, mixing '-check.v' and '-test.v' is not a good idea - as -check.v works for the current package, whereas '-test.v' can work on a root import path recursively - e.g. go test -v github.com/juju/juju/... [12:19] not so terrible I guess [12:19] dimitern: Could you try 'cd $GOPATH/src/github.com/juju/juju/mongo; go test -check.v -check.f oplogSuite.TestRestartsOnError' for me and see if you see the test run twice? [12:20] voidspace: or perhaps better, make a helper that returns addSubnetOps which does not add checkModelActive and use it for both import and AddSubnet, but in the last case append the check before running? [12:21] dimitern: heh, yeah - better [12:21] babbageclunk: just a sec.. [12:21] dimitern: ta [12:21] dimitern: Thanks! I think the -check.v flag is a red-herring - I'm trying to understand why the tests run twice. [12:22] babbageclunk: yeah, it does run the test twice [12:22] babbageclunk: so not related to -check.v / -test.v [12:23] dimitern: What's up with that? [12:25] babbageclunk: usually it's because a 'baseSuite' or something is embedded in 2 other, separately registered suites (i.e. var _ = gc.Suite(&SuiteEmbeddingBase{}) [12:26] babbageclunk: due to the embedding, any baseSuite.TestFoo() will be called once for each SuiteEmbeddingBase like that [12:26] as TestFoo is 'inherited' [12:26] dimitern: I looked to see if there was a suite embedding this one, but no dice. Also this one just embeds BaseSuite. [12:28] babbageclunk: indeed, might be something else.. [12:29] babbageclunk: always try '-check.vv' in such cases to see which setup/teardown methods where called [12:32] cherylj, are you joining us this morning [12:32] fwereade, ping [12:32] dimitern: ok, I'll try that too, thanks. [12:33] babbageclunk: ah! got it.. nasty indeed - internal_test.go:31 [12:34] babbageclunk: calling gc.TestingT twice in the same package is *infinitely* more sinister than embedding a suite [12:35] dimitern: Ooooh. Nasty! [12:35] babbageclunk: (it's already called in package_test.go as well) [12:36] babbageclunk: and gc.TestingT is the entry point gc uses to hook into 'go test' machinery [12:36] dimitern: Right. So is there any reason not to just delete the internal_test one? [12:36] while gc.Suite is registering a suite (not fixture - it needs TestXX() methods to be a suite) into gc to run [12:37] babbageclunk: please do, and I'm sure fwereade might like to add this to the guidelines :) never run gc.TestingT more than once per package [12:38] dimitern: Awesome - thanks for the help! [12:38] np :) [12:56] could anyone review my PR? [12:56] http://reviews.vapour.ws/r/4900/ [13:07] dimitern: babbageclunk: http://reviews.vapour.ws/r/4901/ [13:07] voidspace: looking in a sec [13:07] * voidspace lunches [13:30] abentley: can you review https://code.launchpad.net/~sinzui/juju-ci-tools/controller-model/+merge/295657 [13:31] sinzui: sure. [13:31] perrito666: ping? [13:45] He's probably off doing fun birthday things. [13:47] could someone review my PR http://reviews.vapour.ws/r/4900/ [13:47] ? [13:47] my PR fixes this https://bugs.launchpad.net/juju-core/+bug/1585430 [13:47] Bug #1585430: Cloud-init failed on windows [14:00] voidspace: reviewed [14:23] katco: +1 on the comment about aliases. Feels like two people disagreed so we decided to just do both [14:23] natefinch: yeah... death by options [14:39] dimitern: please could you take a look at http://reviews.vapour.ws/r/4903/ [14:39] dimitern: we looked at this a while ago, was just getting back to it [14:39] frobware: sure, looking [14:39] fwereade: when you change a model config in a running model, what executes those changes? [14:40] natefinch, depends -- what changes are you thinking of? substrate config will be watched for and applied by several things that have their own environs [14:40] natefinch, different bits of config will be watched for by other things, e.g. logging-config [14:41] fwereade: working on the syslog forwarding stuff... didn't know if there was a generic watcher for it, or if I should write a new one for the syslog stuff explicitly [14:43] natefinch, you need to watch model config under the hood whatever you do [14:43] natefinch, so at least it's easy to create the watcher [14:44] natefinch, just don't let on what it's really watching, call it WatchRsyslogConfig or something [14:44] fwereade: yep, ok [14:44] natefinch, (note: do not attempt to filter out changes that don't apply to your fields: it is not possible to do so reliably) [14:45] fwereade: good to know. [14:47] ahh, so there's ModelWatcher.WatchForModelConfigChanges [14:48] natefinch, yeah, that's the one [14:52] natefinch, ...although, looking at it, there's a bit of WTF there [14:52] Bug #1585674 opened: "Waiting for agent initialization to finish" needs to be more detailed. [14:53] dooferlad, voidspace: would appreciate a review of http://reviews.vapour.ws/r/4903/ [14:53] natefinch, non-bulk, doesn't identify model, returns an error indicating OMG INFRASTRUCTURE BORKED instead of "this request didn't work" [15:01] Bug #1585674 changed: "Waiting for agent initialization to finish" needs to be more detailed. [15:07] Bug #1585674 opened: "Waiting for agent initialization to finish" needs to be more detailed. [15:10] Bug #1585674 changed: "Waiting for agent initialization to finish" needs to be more detailed. [15:13] Bug #1585674 opened: "Waiting for agent initialization to finish" needs to be more detailed. [15:28] dimitern: ping [15:29] natefinch: lmk when you're done with the 1-pager; need to send an email out about the bug [15:29] katco: ok, working on it now [15:29] voidspace: pong [15:29] natefinch: ta [15:29] dimitern: you suggest abstracting newSubnetFromArgs out from addSubnetOps [15:30] dimitern: but addSubnetOps still needs to construct a subnetDoc - so that at least would be duplicated [15:30] dimitern: not a big deal, but that's why I didn't do it [15:31] dimitern: if you still think it's worth it I'll make the change [15:31] voidspace: sorry, otp - will get back to you shortly [15:34] voidspace: well, addSubnetOps can take a prepopulated subnetDoc [15:34] voidspace: it doesn't have to also create it [15:40] dimitern: still leaving creation and validation of the Subnet to be duplicated, plus the subnetDoc is a bit of an "internal type" so it feels a bit yucky [15:40] I'll duplicate creation of the subnetDoc [15:47] voidspace: I'll leave it up to you [15:50] natefinch, you could look at the retrystrategy stack, it's essentially watching a model config variable and acting on changes [16:02] can someone please review this commit: https://github.com/juju/juju/pull/5457 [16:02] katco, ^^ [16:02] alexisb: tal [16:02] btw perrito666, happy bday! [16:03] perrito666: happy birthday :) hope you're feeling better [16:03] thanks katco [16:04] bogdanteleaga: awesome, thanks [16:04] alexisb: looks like that already has a review: http://reviews.vapour.ws/r/4900/ [16:06] does the code author use review board? [16:07] alexisb: i don't know, but the project does :) the link is automatically injected into the PR. i'll leave a note asking them to review the review [16:08] katco, thank you [16:13] alexisb, katco, yes he does, he recently joined our juju team :) [16:14] bogdanteleaga, aaaah, ok that makes sense [16:15] bogdanteleaga: grats on the add :) [16:17] katco: https://bugs.launchpad.net/juju-core/+bug/1585701 [16:17] Bug #1585701: juju resources needs to support extensions other than ".tgz" [16:17] mbruzek: tal [16:18] mbruzek: replied on bug [16:18] perrito666: ping? [16:19] katco, cheers :) [16:21] bogdanteleaga: I've reviewed it as well (although I'm technically only a junior reviewer). [16:21] katco: Thanks for pointing that out. My bad. [16:22] mbruzek: no worries; new feature [16:22] babbageclunk, you've basically expressed my exact thoughts on it :P [16:22] mbruzek: fwiw we opposed checking the file extension because it's just a blob of data [16:23] I guess we should start reviewing on rbt as well [16:24] bogdanteleaga: i didn't see the need at first, but after using it for awhile it's hard when i have to review something on GH [16:24] bogdanteleaga: ok great - I thought maybe I was missing something. [16:26] sinzui: what's with the multiple posts from the bot on this PR? https://github.com/juju/juju/pull/5419 [16:27] sinzui: (at the bottom it says merge request accepted 4 times in response to a single $$merge$$_ [16:28] natefinch: I have never seen that [16:28] and I am looking at it now [16:28] sinzui: k, just figured I'd bring it to your attention in case it indicates a problem === frankban is now known as frankban|afk [16:32] natefinch: ding! your hour on the 1-pager is up :) are you about wrapped up? [16:34] katco: forgot and got lunch in the middle, but still almost done. It's actually fairly simple. 5 minutes. [16:34] natefinch: kk [16:39] dimitern: why does the subnetDoc have an IsPublic field? [16:42] katco: last two pages here: https://docs.google.com/document/d/1x60GL9zckzXNfHw_yyY_syxF1WSL5JkcWoWKJtwT_Ww/edit# [16:42] voidspace: because subnets can be public or private (i.e. with and without shadow addresses support) [16:42] (by spec, not as implemented currently except by mocking) [16:42] natefinch: ta; can you send an email to ian and cc eric, me stating as such? [16:42] katco: sure thing [16:43] natefinch: and then you're rolling back onto the bug now? [16:43] katco: yep [16:43] natefinch: cool, reassign yourself plx :) [16:45] dimitern: then why is that field not *used* [16:45] dimitern: it's not on SubnetInfo [16:45] dimitern: and it's not exposed on Subnet [16:46] dimitern: so it's never set or changed === redir_afk is now known as redir [16:51] voidspace: because we haven't quite got there yet [16:51] dimitern: unused code for imaginery future use cases... :-p [16:52] voidspace: not imaginary, just not done yet [16:52] dimitern: I've added it as an ignored field in the migration_internal_test - when we do start using it we'll have to remember to migrate it [16:52] voidspace: if you read the network model spec, private/public subnets and spaces are part of it [16:53] voidspace: sounds good, +1 [16:53] dimitern: that doesn't change my opinion - specs are always imaginery until they're actually implemented [16:55] voidspace: of course - I'd leave a TODO on the field at least - to keep it in mind; there's even a bug for it [16:56] dimitern: good idea, adding comment [16:57] voidspace: thanks! [17:13] a simple addition to the juju/cmd package. anyone up for a little review? https://github.com/juju/cmd/pull/37 [17:13] voidspace, dimitern: ^ [17:14] natefinch: ^ [17:14] fwereade: ^ [17:21] rogpeppe: LGTM [17:21] dimitern: you angel, thanks! [17:22] rogpeppe: I'm sort of surprised that this wouldn't just be something we add to the help command itself [17:22] natefinch: how would we do that? [17:22] natefinch: the help command is built into SuperCommand [17:22] natefinch: FWIW we considered about 3 dozen options here :) [17:23] natefinch: this was the simplest and best tailored to what we actually needed [17:23] rogpeppe: oh yeah, I forgot the help command is built in.... [17:23] natefinch: this is what it enabled: https://github.com/juju/charmstore-client/pull/66 [17:24] rogpeppe: very nice [17:25] natefinch: yup, always happy to delete code :) [17:37] reboot brb [19:11] Bug #1585750 opened: Destroying a service in error gives no feedback === mramm_ is now known as mramm === natefinch is now known as natefinch-afk [21:38] natefinch-afk: you never reassigned yourself to bug 1537585 :( [21:38] Bug #1537585: machine agent failed to register IP addresses, borks agent <2.0-count> [21:51] rogpeppe: not sure why help plugins was removed. [21:51] nor the rest really [22:11] axw: the help topics were removed to avoid having to keep two places up-to-date: (online docs and cli help) [22:12] cherylj: ok, fair enough. plugins tho? that might have been accidental? [22:13] oooh, yeah I forgot that help plugins wasn't just a topic [22:13] yeah, that might've been an oversight [23:09] axw: anastasiamac: have standup without me today, in another meeting [23:09] ok [23:16] anastasiamac: standup? [23:16] perrito666: ^ [23:39] Bug #1585825 opened: Takes too long to download a resource from a controller to unit