/srv/irclogs.ubuntu.com/2017/07/31/#juju-dev.txt

veeberswallyworld: hmm, I've never heard of that before and can't find any reference to it. Looks like jujugui bot commented on the previous PRs so perhaps handled by them?00:09
wallyworldveebers: could be the case, i'll follow up, thanks00:10
veeberswallyworld: sweet, sorry to pass it off :-\00:12
wallyworldtotslly ok00:12
anastasiamaccould i get an easy review of resources cmd registration complying with the fold - https://github.com/juju/juju/pull/768600:19
babbageclunkanastasiamac: lookinh00:20
babbageclunkg00:20
wallyworldmenn0: i've replied, i hope it makes sense00:23
menn0wallyworld: ok thanks00:23
anastasiamacbabbageclunk: \o/00:24
menn0wallyworld: that helps00:25
wallyworldmenn0: still haven't decided whether we need status history etc. regardless, i think having status attribute on relation doc for the current value is useful; any history would be stored in the separate collection00:26
wallyworldmakes the watcher much easier to write00:26
menn0wallyworld: that sounds right. i'm not sure about the need for history either.00:26
menn0I guess i'm not clear on what would cause the status to change00:26
wallyworldif someone revokes an offer for example00:27
wallyworldbecause a bill is unpaid or whatever00:27
wallyworldof they exceed a quota00:27
wallyworld*or00:27
menn0ok cool00:27
wallyworldany relations to that offer would become revoked00:27
wallyworlddeparted hooks would run00:28
wallyworldbut relation is still there00:28
wallyworldrendered somehow in gui and inactive00:28
wallyworldable to be re-enabled again00:28
babbageclunkanastasiamac: lgtm'd00:28
menn0wallyworld: cool. that helps my understanding a lot.00:28
wallyworldmenn0: sorry for brief PR description, there wasn't a lot of context there for sure00:29
menn0all good00:29
menn0wallyworld: review done00:41
wallyworldmenn0:  thanks for review. i considered the simpler approach with the strings watcher and followup api call. but for cross controller communication, i was trying to eliminate the chattiness. in this use case, we don't need to know anything else from the watched model apart from life/status, so making a second api call (potentially across clouds) to get a simple scalar value that is instead passed across with the initial notification seemed01:24
wallyworldwasteful and something that would not scale so well. what do you think? with the notify->api call approach, i'd still need to do extra code to provide the apis to get the relation life/status. so there's no real net code reduction. and it is more chatty which is bad for networked services. i'm happy to revisit though if needed01:24
menn0wallyworld: np. as long as you've thought about it :)01:28
wallyworldmenn0: the non-simple approach did bother me though. i'm still not 100% convinced it's the right thing to do to deviate from the model used elsewhere. what is your regret about the migration watcher?01:30
menn0wallyworld: a couple things: if you want access to the data/logic behind the watcher *without* using a watcher you end up having to double it up01:33
menn0wallyworld: and: managing the changing of data returned by a watcher API is more painful01:34
menn0they're harder to version01:34
wallyworldmenn0: the watcher events arrive in the order they are generated server side i think? in my case here, we just care about knowing the last/latest status value. there's always the chance that the relation could go active again on the other side after you get told it's revoked, but there'd still be an as yet undelivered notification to act on to correct things. and life can only go one way. so i think it works out ok?01:39
menn0wallyworld: if you only need to know the latest status, then the "notify and check" pattern is probably better01:40
menn0wallyworld: b/c the API call to get current state, sees the latest state01:41
menn0wallyworld: where-as queued up "rich" notifications could have stale data in them01:41
wallyworldit does. but it's an api call that would otherwise not need to be made01:41
menn0wallyworld: totally01:41
menn0wallyworld: in this case, b/c of the nature of the API requests (cross-cloud), a specialised watcher certainly makes more sense01:42
wallyworldand multiple that uneeded api call by 1000 or however many consumers there are01:42
wallyworldmore load on the offering controller01:42
wallyworldbabbageclunk: did you see comment #7 on this bug 1705730?02:05
mupBug #1705730: `juju migrate` fails with source prechecks failed ERROR <juju:New> <https://launchpad.net/bugs/1705730>02:05
babbageclunkwallyworld: no, I hadn't - thanks02:06
wallyworldnp, i assumed you had been looking at it?02:06
wallyworldaxw: thanks for review02:23
axwbabbageclunk: your PR is good to land02:43
anastasiamacanother tiny and easy review, please \o/ https://github.com/juju/juju/pull/7688 (order resources list output)02:43
babbageclunkaxw: oh, thanks!02:47
babbageclunkthumper: can you merge https://github.com/juju/1.25-upgrade/pull/6 plz?02:48
thumperbabbageclunk: you can now02:48
babbageclunkthumper: oh, so I can - thanks!02:49
axwwallyworld: can you please create a section under TODO in leankit for 1.25 upgrades?04:42
wallyworldsure04:42
wallyworldaxw: done04:45
axwwallyworld: gracias04:45
axwbabbageclunk: if you've got things to add ^^04:45
babbageclunkaxw: oh yes, good call04:48
babbageclunkaxw: how can I find what permissions I have on a model?05:31
babbageclunkaxw: (or what permissions some other juju user has on the model)05:32
axwbabbageclunk: I think "juju show-model" lists users/access05:33
axwyep05:33
babbageclunkaxw: ok - so as a superuser I should be able to grant access to a model to myself, I guess?05:34
axwbabbageclunk: yep05:35
=== frankban|afk is now known as frankban
=== frankban is now known as frankban|afk
menn0wallyworld, axw or thumper: I need to bounce some ideas off someone23:26
wallyworldok23:27
menn0wallyworld: quick hangout?23:28
menn0wallyworld: https://hangouts.google.com/hangouts/_/canonical.com/menn0-wallyworld23:29
wallyworldsure23:29

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