/srv/irclogs.ubuntu.com/2017/03/20/#juju-dev.txt

menn0axw, babbageclunk: so.... https://github.com/juju/juju/pull/712300:36
babbageclunkmenn0: trying to get something finished off so I can get some other people's opinions. Also I think wallyworld wanted me to take a look at a PR of his, so I might need to do that first - it's probably smaller than this one too!00:43
menn0babbageclunk: could be :)00:44
babbageclunkmenn0: But I'll try to get to it soon!00:44
menn0wallyworld: easy one: https://github.com/juju/cmd/pull/4800:52
wallyworldmenn0: sure. am also looking at resources one. will be awesome to get that all fixed up at least00:53
menn0wallyworld: after the resources one comes the big apiserver facade registration cleanup i've been sitting on00:53
wallyworldsounds painful00:54
menn0wallyworld: the payloads and resources PRs were needed before that could be finished00:54
wallyworldyep00:54
menn0wallyworld: yep, not exactly a soft cushion :)00:54
axwmenn0: re "unnecessarily exposed? Backend": I'd prefer if the apiserver facade constructors that map state.State -> Backend were outside the package, and the package *only* dealt with Backend. not in this PR of course, but I don't think Backend is unnecessarily exposed01:06
menn0axw: yeah fair enough... I was 50/50 on that one01:06
axwmenn0: I think we can neaten things up more when the global registry goes away01:06
menn0axw: I think so too.01:06
menn0axw: I need to do that for my big project01:07
* axw nods01:07
menn0axw: (which is why I'm doing all this)01:07
axwwallyworld: lol @ MiG comment. I was thinking the same thing :)01:25
wallyworld:-)01:27
axwwallyworld: can we branch yet?04:16
wallyworldaxw: i think real soon, anastasia is coordinating it; i thought it was going to be to coincide with beta104:17
wallyworldi'm guessing you need to do breaking stuff04:17
axwwallyworld: ok04:18
axwwallyworld: yes04:18
axwI want to land my changes to detach storage04:18
axwa few changes bundled up together which can't land until you can detach storage04:19
wallyworldhmmm, let's discuss first thing tomorrow when she's back onboard04:19
axwthere's still one or two other things I can do in the mean time04:19
wallyworldok04:19
axwwallyworld: I ended up cheating a little bit, and not having storage attachment removal gate on volume/filesystem attachment removal. instead, just fail in "attach-storage" if the volume/filesystem is attached to another machine04:21
axwmore or less comes to the same effect, but simpler04:21
wallyworldsimple is good04:21
axwwallyworld: was it the lifecycle watcher that you were looking at, when you found that the filter is ignored if a members query is specified?05:49
axwwallyworld: I'm going to make it unconditional - any concerns about that?05:49
wallyworldaxw: i think it was. off hand, i can't see an issue with what you want to do, but we will need to be careful that there's no unintended consequences. from memory, i needed to add a unit test to explicitly cacth the issue so i'm not 100% sure out test coverage is complete05:53
wallyworldi can't think of any bad consequences off hand05:54
axwwallyworld: okey dokey. all tests pass, and all the existing usages look to be safe - but will double check before I go ahead with changes.05:56
wallyworldta, yeah i think it will be ok, just be a little more cautious05:56
jamaxw: trivial review? https://github.com/juju/juju/pull/712106:48
axwlooking06:48
jamand a less trivial but hopefully useful one https://github.com/juju/juju/pull/712206:48
axwjam: how's gogland so far?06:49
jamaxw: the one thing it does nicer than vim is "find callers of this function" and "find implementations of this function" vs just "find definition"06:49
jamI'm not sold on its VIM integration, as a lot of the nice "jump to this" in the standard UX overlaps with VIM's commands06:49
jam(eg, ^B is jump to definition in gogland, but also previous-page in VIM)06:49
axwjam: do you use vim-go? it has integration for go-oracle, which can find callers/callees, etc.06:50
jamfortunately the important ones "gd" to jump to definition in VIM works in goland06:50
jamaxw: I do, but I've often found it hard to get it set up correctly on all machinse06:50
jamI use Trusty, Xenial, Windows and Mac06:50
axwokey dokey06:50
jamgetting them all set up nicely would be great, I should probably just try to start a fresh install06:51
axwjam: yeah, little things like that (re key bindings) often mean I find other IDEs with "vim mode" difficult to use06:51
jamI thought at least 'vim-go' had a "I'll automatically install dependencies" which it didn't seem to actually do06:51
axwjam: I've started reviewing hte other, gotta pick up my daughter from school shortly. I'll continue when I return06:55
jamaxw: thanks06:55
wallyworldaxw: can you peek at this small PR? I wanted to rename remote application "registered" to something hopefully more meaningful https://github.com/juju/description/pull/407:28
axwwallyworld: sure, just after I finish with jam's07:29
wallyworldno rush07:29
axwjam: done07:32
axwwallyworld: LGTM. normally that'd require a version bump, but I'm assuming we don't care about compat yet07:34
wallyworldaxw: yeah, usages are behind a flag07:35
wallyworldty07:35
=== frankban|afk is now known as frankban
babbageclunkjam: would you be able to take a look at https://github.com/juju/juju/pull/7126?09:15
jamlooking09:16
babbageclunkjam: Thanks - there's some stuff in there I'm not really sure about - GCE networking seems much simpler than what we support so a lot of the fields on SubnetInfos and InterfaceInfos are kind of fudged.09:19
jambabbageclunk: I have the feeling those structs are heavily influenced by AMS and MAAS and not so much by other providers, so we likely need a common ground. I'll look at it09:20
jambabbageclunk: actually, having comments that link to the GCE docs on networking would probably also be good09:22
babbageclunkjam: yeah, that's a really good call - I'll add that.09:23
jam"Any communication between instances in different networks, even within the same project, must be through external IP addresses."09:24
jamfrom https://cloud.google.com/compute/docs/networking09:24
jamsounds like we can't really do private=>private networking on GCE either.09:24
jamwallyworld: ^^09:24
wallyworldhmmmm09:25
wallyworldawesome09:25
babbageclunkd'oh, didn't spot that09:25
wallyworldwe'll have to come up with a solution sooner rather than later it seems09:25
babbageclunkAlthough all the machines in models managed by a controller will be on the same network.09:28
babbageclunkAt the moment there's no way to get a machine on a non-default network in GCE09:28
babbageclunk(I hacked something in for my testing.)09:29
babbageclunkwallyworld: ^09:29
wallyworldbabbageclunk: interesting, i didn't realise we had that restriction. but the external ip address restriction will still trip us up09:31
wallyworldregardless of what network (single or otherwise) machines come up on09:31
babbageclunkI don't see how, until they can be on different networks they're all on the same network and can talk on the cloud-local address right?09:33
babbageclunkwallyworld: It's a much looser restriction than the azure one.09:33
wallyworldbabbageclunk: ah, ignore me, i misread the text09:33
babbageclunk(As far as I understand)09:33
wallyworldit should work then. easy enough to test09:34
babbageclunkway09:34
babbageclunkduh09:34
wallyworldwe'd need to check that the firewaller discovers at least one subnet09:34
wallyworldor else it will default to open to the world09:34
babbageclunkwallyworld: yeah, true - I'll give it a try now09:34
wallyworldto be sure just comment out the default 0.0.0.0/0 in the firewaller09:35
babbageclunkok09:35
jambabbageclunk: don't we have to map 1 model == 1 project in GCE, which means a multi-model controller is spanning projects and thus networks?09:44
jambabbageclunk: at the very least, if you have >1 credential, then you certainly can't have 1 controller == 1 project09:45
jamwhich would hint that you have to span projects and thus networks09:45
babbageclunkjam: well, at the moment we couldn't have controllers with models in different projects.09:46
jamso if we're using https://cloud.google.com/compute/docs/networking#legacy_non-subnet_network09:46
jambabbageclunk: that sounds like a *severe* problem with our GCE implementation09:46
jamgiven we support multiple auth on other providers09:46
babbageclunkjam: The qa account uses legacy, but it depends how the default network has been set up.09:47
jamback to my thread, https://cloud.google.com/compute/docs/networking#legacy_non-subnet_network seems to say everything talks on the same single-subnet across all regions for a project09:47
babbageclunkjam: not sure about the multi-auth bit09:47
jambabbageclunk: regardless the default network, the goal has always been to support "juju add-model --credential=FOO" which would mean the controllers would span projects09:48
jamit sounds like we should have modeled 1 Model == 1GCE Project, though I can imagine we didn't do that09:48
babbageclunkjam: ok. I haven't seen that, but I think you're right.09:49
jambabbageclunk: its possible we put "Project" into part of the GCE credentials09:49
babbageclunkjam: We definitely don't have 1 model = 1 project at the moment. :(09:49
babbageclunkjam: it is in the credentials - I haven't seen add-model --credential=FOO09:50
wallyworldbabbageclunk:  it seems you are saying the GCE provider is lacking the abiltity to create models with different credentials09:53
wallyworldthat is quite a bad problem then09:54
babbageclunkwallyworld: I haven't tried, I don't know for sure that it doesn't09:54
babbageclunkwallyworld: but all of the testing I've been doing is with one set of creds.09:54
wallyworldok, we'll need to check that tomorrow09:54
jamfwiw, there has been a strong request for us to request 'static' external IP addresses on GCE as well09:58
jamI haven't had time to dig into it09:58
jambut apparently IP addresses are even-more dynamic on GCE09:58
jamon AWS you only get new addresses if you "Stop" the machine explicitly and then "Start" it again09:58
jamapparently on GCE just doing a "shutdown -r" will give you a new address09:59
mattywjam, you around to do a review?10:02
jammattyw: currently otp and doing another review, but i can add it to the queue if you like10:05
mattywjam, thanks very mcuh https://github.com/juju/juju/pull/710910:06
babbageclunkwallyworld: hmm - looks like there's a nil pointer panic happening in the firewaller - could be the upgrade of the GCE client package. I'll chase it in the morning.10:08
wallyworldbabbageclunk: i've already started looking. it's happening for me too on LXD10:09
wallyworldi'll look a bit more tomorrow as well if i don't find the cause tonight10:09
babbageclunkwallyworld: ah, ok - I thought it was my fault but I guess it could be yours!10:10
wallyworld:-)10:10
wallyworldprobably10:10
babbageclunkcatch you tomorrow10:10
wallyworlda *lot* of refactoring has been happening10:10
wallyworldttyl10:10
* babbageclunk exits pursued by a bear.10:10
wallyworld\o/10:10
* wallyworld is having a whiskey10:10
wallyworldoh you said bear10:11
wallyworldi thought you said beer10:11
=== Hetfield is now known as Hetfield_
perrito666morning10:58
mattywperrito666, morning morning11:01
jambabbageclunk: ping11:54
jammorning perrito66611:56
perrito666jam: I am supposed to have a meeting with you now :)12:01
jamhi perrito666, sorry caught up in a review brt12:01
perrito666tx12:01
tasdomasperrito666, hi - could I get a review: https://github.com/juju/juju/pull/711413:03
perrito666tasdomas: not soon, if you are in a hurry I suggest you find a backup reviewer :)13:08
tasdomasperrito666, thanks ;-]13:12
perrito666jam: I feel like we are cheating you, you have little day left so our "have a good day" is not as effective for you13:19
jamperrito666: I carry it over for the next day :)13:54
jammatty13:54
jamsorry, was trying to search for your name13:54
jammattyw: https://github.com/juju/juju/pull/7109 reviewed14:13
mattywjam, ack thanks14:13
=== lazyPwr is now known as lazyPower
=== frankban is now known as frankban|afk
=== mwhudson_ is now known as mwhudson
=== StoneTable is now known as aisrael
=== Spads_ is now known as Spads
=== hml_ is now known as hml
=== JoseeAntonioR is now known as jose
wallyworldhml: hey, i'm not sure what happened before, but i re-added our 1:1 to the calendar. does the time suit?20:54
hmlwallyworld: the time works for me - our previous time was in the middle of your night.  :-)  most likely lost off your calendar20:55
wallyworldhml: great. it is on the back of the release call so if i'm a minute late i won't be long20:56
perrito666hml: wallyworld does not need to sleep, he is a robot of sorts, the only activity he has is soccer :p its like an aussie terminator20:56
wallyworldi need something to keep me sane20:57
wallyworldi also need coffee20:57
perrito666its as if Terminator had been made with Paul Hogan as the main character20:57
wallyworldlol20:57
hmlperito666: ha!  i’ve seen him online and talking around lunch in the US and wondered.20:58
perrito666hml: paul hogan or wallyworld ?20:58
hmlperrito666: wallyworld - haven’t seen paul in a while20:58
menn0gah! httptest.ResponseRecorder.Result() doesn't exist in Go 1.6 :(21:15
menn0and i've used it quite a bit21:15
perrito666and we are using go 1.6 for?21:16
menn0that's the minimum Go we support but I'm using Go 1.8 on my machines21:22
menn0the official Go in our ubuntu releases is Go 1.621:22
perrito666I thought we stopped caring about that with snaps21:26
menn0perrito666: the Go snap only started working properly very recently (and still has a GOROOT issue which mwhudson is fixing)21:27
wallyworldand out tests fail with go 1.821:27
wallyworldgo 1.8 is stricted on url parsing for example21:27
wallyworldstricter21:27
perrito666I have not tried juju on 1.8 yet, I still use 1.721:28
wallyworldwe want to move to go 1.8 - the process is underway21:28
wallyworldjuju works fine with 1.8, just the unit tests need fixing21:28
perrito666wallyworld: have you seen plugins? they are very cool, still very beta, but looks like a nice thing to look for the future21:28
wallyworldhaven't seen them yet21:29
perrito666wallyworld: here, have some shameless plug by me :p https://perri.to/2017/03/go-plugins-and-content-delivery/21:30
wallyworldinteresting21:30
babbageclunkwallyworld: reviewed the first one - looks good other than what I think is a logic bug in resolving the filters.21:40
babbageclunkwallyworld: looking at the other one now21:41
wallyworldbabbageclunk: tyvm, will look after my meetings this morning21:41
babbageclunkwallyworld: cool21:41
babbageclunkwallyworld: oh my god, I was expecting the second one to be smaller.21:43
wallyworldbabbageclunk: are you just looking at 2nd commit?21:44
wallyworldit was branched off the first one21:44
babbageclunkwallyworld: oh, yay!21:44
wallyworldit's in the description :-)21:44
babbageclunkwallyworld: I was thinking some of the changes looked familiar.21:44
perrito666babbageclunk: that did sound like a Cards Against Humanity white card :p21:44
babbageclunkperrito666: yeah, I thought that as I was typing it.21:45
wallyworldbabbageclunk: what i'll do is make all fixes to the second branch and just do the one landing21:53
=== daniel1 is now known as Odd_Bloke
babbageclunkwallyworld: ok22:06
anastasiamacwallyworld: could u plz reply to question on bug 1567169 - tyvm23:02
mupBug #1567169: juju deploy bundle does not honor existing machine definitions <conjure> <deploy> <native-deploy-gap> <s390x> <uosci> <OpenStack Charm Test Infra:Confirmed> <juju:Triaged> <juju-core:Invalid> <https://launchpad.net/bugs/1567169>23:02
wallyworldanastasiamac: it's more a matter of when will the logical mapping be done. i'm not sure if it's on the radar yet23:05
wallyworldi had thought someone was looking at it but not sure23:05
anastasiamacwallyworld: the question was whether there is a workaround and there is none.23:06
wallyworldoutside of a bundle, you can use placement directives to some extent but i don't know off hand what bundles support in that area23:07
anastasiamacwallyworld: my understanding - bundles do not support deploying to existing machines. no workaround. plz add a political correct response since u've fielded previous query.. It looks to me like the user is asking your opinion ;)23:10
wallyworldno but bundle may support placement directives which could be used in some way. i can't answer until that is known23:11
anastasiamacwallyworld: right now, the answer that they want is to the question "whether there is a workaround". Current answer si "no workaround at this stage"23:12
wallyworldno, there may be a workaround, thayt's my point23:12
wallyworldplacement directives might be able to be used if supported23:13
anastasiamacwallyworld: placement directives are not supported in bundle AFAIK23:14
anastasiamacwallyworld: however23:14
anastasiamacwallyworld: if u know otherwise, plz indicate who is best person to ask, if not u23:14
wallyworldjust looking at the code, the bundle struct does have them23:15
wallyworldbut the comments are unclear23:15
wallyworldanastasiamac: more investigation is needed since TestDeployBundleMachinesUnitsPlacement and the bundle code seem to indicate that the placement they want should still work even though that contradicts our stated position and the bug report23:23
* babbageclunk runs23:47

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!