/srv/irclogs.ubuntu.com/2017/05/02/#juju-dev.txt

=== mjs0 is now known as menn0
* babbageclunk goes out for a walk.02:46
babbageclunkaxw: thanks for the comments - can you expand on your first one a bit though? I think that's something I didn't know about.05:14
axwbabbageclunk: the private-address relation setting is only ever set when a unit enters scope05:14
axwbabbageclunk: and juju will not attempt to replace the value afterwards05:15
axwbabbageclunk: because juju can't tell if it set the value, or the charm did05:15
babbageclunkaxw: And after that the charm can monkey with it if it wants?05:15
axwbabbageclunk: right, e.g. for "proxy charms", which report the address of some other thing on a different machine05:15
axwbabbageclunk: so, it's up to the charm to update the private-address relation setting if it sees the addresses change05:16
babbageclunkaxw: So I think that makes the existing approach where we put in the public address in invalid, doesn't it?05:17
axwbabbageclunk: well, it'll work up until the point where the public address changes05:18
axwbabbageclunk: but yes, I think we're buggered after that05:18
axwbabbageclunk: I think we need network-get for this to work05:18
babbageclunkaxw: or if the charm updates private-address itself without knowing that it's in a cross-model situation05:19
axwbabbageclunk: actually, network-get already exists and is what should be used05:19
axwbabbageclunk: so we just need to make sure network-get does the right thing for remote relations05:19
axwi.e. uses the remote space & endpoint binding info to determine which address to report05:19
babbageclunkaxw: ok05:19
axwbabbageclunk: juju help-tool network-get, if you're not familiar with it05:20
babbageclunkaxw: I got confused reading Ian's comments - it seems like the two of them are at odds to me.05:21
babbageclunkIn the first one he's suggesting to get the information at the point it's needed, and in the second he agrees that we should store the spaces and bindings in the model.05:22
axwbabbageclunk: indeed, I'm a bit lost there too. IMO we just store the remote spaces and remote application endpoint bindings when creating the remote application entity in state. then we can determine the address to use by querying state, rather than the remote side again05:25
babbageclunkaxw: Yeah, that makes sense to me.05:25
axwbabbageclunk: so network-get would call through to the controller, which would check the routability from that existing info, and either return the cloud-local or the public address05:26
axwand similar when doing EnterScope05:26
babbageclunkaxw: Yup yup.05:26
babbageclunkaxw: Ok, I'll write that up as I understand it and keep going forward with that.05:27
babbageclunkaxw: Thanks!05:27
axwbabbageclunk: cool, no worries05:27
wpkhttps://github.com/juju/utils/pull/278 anyone08:06
wpk?08:06
rogpeppeaxw: ping08:33
axwrogpeppe: pong08:33
rogpeppeaxw: hiya08:34
rogpeppeaxw: just wondering what the best thing to do about fixing the model-defaults command - it makes an API connection at Init time, which isn't allowed any more (and was never a great idea anyway IMO)08:34
rogpeppeaxw: the idea that you can't tell if you've provided a cloud argument without going to the API and looking it up seems odd08:35
rogpeppeaxw: perhaps i should just move all that logic to Run, but my "this is not right" head is getting in the way here :)08:36
* axw looks08:37
axwrogpeppe: that command is pretty gross, but I don't think we can break the ambiguity now08:39
axwrogpeppe: I think the best we can do really is to move it to Run08:39
rogpeppeaxw: ok, will do :-\08:39
axwrogpeppe: since the cloud names known to the client aren't necessarily the same as what's in the controller08:39
rogpeppeaxw: indeed. and neither are the model keys08:39
axwyep08:40
rogpeppeaxw: it would be a bit of a problem if someone made a cloud with a name that matched a model config key...08:40
rogpeppeaxw: thanks for your review of my rather large PR, BTW08:41
axwrogpeppe: no worries08:41
rogpeppewpk: reviewed https://github.com/juju/utils/pull/27808:43
wpkrogpeppe: thanks, updated08:53
=== frankban|afk is now known as frankban
blahdeblahkwmonroe, cory_fu: Either of you around at the moment?  (Or anyone else who knows about cwr-ci.)11:10
blahdeblahJust wondering if you can clarify one point from the cwr-ci README: how must we refer to the charm to be tested in the bundle?11:11
blahdeblahThe doc says to run "juju run-action cwr/0 cwr-charm-commit repo=http://github.com/myself/my-awesome-charm charm-name=awesome-charm reference-bundle=~awesome-team/awesome-bundle"11:11
blahdeblahHowever if I "charm proof" a bundle with anything but a pinned awesome-charm revision, I get a warning.11:12
blahdeblahSo the question is: how do I reference the charm within the testing bundle?11:12
blahdeblahOr maybe it doesn't matter?  Can I just deploy the bundle then CWR will deploy the bundle, then upgrade to the git version of my charm?11:13
blahdeblahAlso, I've just (apparently) successfully pushed, granted, and published the bundle I want to start with, but it's not showing up in the store: http://pastebin.ubuntu.com/24498131/  Am I doing something wrong?11:28
rick_hblahdeblah: yea, I'd not worry about the warning about the version number on the charm12:01
rick_hblahdeblah: it's a warning that the charm could move under you and that bundle might be broken if you don't realize it, but it's just a warning12:02
blahdeblahrick_h: thanks - any idea about how to a) make the bundle visible, and b) refer to the charm to be tested by cwr-ci within the bundle?12:03
rick_hblahdeblah: so to make the bundle visible you have to grant EVERYONE permission to it with the charm cli tool.12:03
rick_hblahdeblah: as far as cwr-ci part I'm not sure.12:03
blahdeblahrick_h: You mean EVERYONE in caps?  Or everyone just like the pastebin above shows?12:04
rick_hblahdeblah: sorry looking. I missed the pastebin12:05
rick_hblahdeblah: try the grant command w/o the revision on the url12:08
rick_hblahdeblah: and try a `charm show cs:~paulgear/bundle/ntp-server perm`12:09
rick_hblahdeblah: to check the permissions12:09
=== daniel is now known as Guest47234
=== Guest47234 is now known as Odd_Bloke
=== frankban is now known as frankban|afk
blahdeblahrick_h: thanks - that did the trick23:02

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