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

=== akhavr1 is now known as akhavr
rick_hwallyworld: ping around?19:58
wallyworldrick_h: hey20:11
rick_hwallyworld: nvm, I'm a moron. I was all focused on adding network-get to charm helpers I miss read that what I really need in the charm is relation-get20:11
rick_hwallyworld: so I got it all working and realized...hmm...the address I need isn't in this new network-get output20:11
rick_hwallyworld: updating to use relation-get now instead and will test out. Is that backward compatible with pre-2.3?20:12
wallyworldrick_h: relation-get still contains the old private-address value, yes20:12
wallyworldjuju 2.3 will put in the new stuff also20:12
rick_hwallyworld: gotcha, so 2.3 is ingress-address and if that's not there fall back to private-address for backwards compat20:13
wallyworldyep20:13
wallyworldso you want to get what the remote unit's address is?20:13
wallyworldas opposed to using network-get to see the local unit's info?20:13
wallyworldrick_h: I ask because i thought the prometheus charm was using unit-get20:14
wallyworldhence the replacement for that is network-get20:14
rick_hwallyworld: it's using: hostname = relation_data.get('hostname')20:15
rick_hwallyworld: so I'm updating that line to build the newer address details20:15
wallyworldok. i also recall unit-get being used20:15
wallyworldsomewhere in a hook20:15
rick_hwallyworld: yes, in the address of prometheus itself20:15
wallyworldthat should use network-get20:15
rick_hwallyworld: so that'll need to be setup so that it's listening/sending the right info to things that relate to it (e.g. grafana)20:15
rick_hwallyworld: right20:16
wallyworldso your network-get charm helper work is still needed20:16
rick_hwallyworld: so the work on network-get is not in vain, but atm just trying to get the telegraf->prometheus part working and that's the the relation-get update20:16
wallyworldok20:17
rick_hwallyworld: anyway, basically I freaked out and ping'd and now I'm unfreaked out and on to working more. sorry for the noise20:17
wallyworldrick_h: no worries, sorry i didn't see stuff earlier, was in sessions etc20:18
rick_hwallyworld: completely figured as much. All good20:18
wallyworldam excited to see this working20:18
rick_hbdx: is as well. He was asking about it and is doing some demo material for work around it20:18
wallyworldgreat20:19
rick_hwallyworld: bdx has some questions on what gets returned when used in a vpc and such20:19
rick_hso once I get the charms behaving I'll ask him to do some vpc testing and make sure things are looking cool20:19
wallyworldok. i can't tell you off hand what is returned. cmr just reads the public address recorded against the machine20:19
wallyworldwhatever that is20:20
rick_hwallyworld: right, so there might be bugs filed because if he binds against vpc specific networks he won't want his stuff on the public network. His vpc is making sure different models can speak to each other20:20
wallyworldright. that's not something we support yet20:20
rick_hok, good to know. bdx will love to test it out when it does :)20:21
wallyworldnot sure how much time we'll have this cycle20:21
wallyworldwe were told to cut scope to just support public addresses for now20:21
rick_hk20:21
wallyworldif there's a driver to do the next step, we can look at what we can do20:22
rick_hwell still, it'll be good to have bugs on the books with repro steps and users wanting things20:22
wallyworldexactly20:22
bdxtheres a driver!20:23
bdxme20:24
bdxthe public address stuff ..... I don't even have a use for (not that others won't)20:25
bdxbut like20:25
zeestratCount me in for use cases with non-public addresses.20:26
bdxeven the MAAS <-> AWS stuff I have planned all happens over VPG to our vpc20:26
bdxso the MAAS instances have no idea the AWS instances aren't local20:26
bdxwell ok20:27
bdxso the majority of the aws instances I will be connecting to don't have public ips20:27
bdxthey are all in private NAT subnets that dont get public ips20:27
bdxso, I don't think I even have to worry about it for the most part20:28
bdxbecause juju will just think (for aws instances in NAT subnets) the public ip is the private ip, because it will be the only ip20:28
bdxwallyworld, rick_h: from what I can see, I will encounter an issue when I want to make a CMR from an instance with both public and private ips (AWS instance in IGW subnet that gets public ip auto assigned)20:30
bdxbut even then, I can just use "--via" right?20:31
rick_hbdx: yea, we'll have to play with it and put together notes on what's there what's next.20:31
bdxkk20:31
rick_hbdx: so you can on the relate command, but what the charm reads from the hooks...20:31
bdxahh20:31
rick_hbdx: it might be that it'll be more maas/openstack friendly at the start. JAAS has some work to support it as well.20:31
wallyworldi think if there's no public address recorded it will fall back to private20:32
wallyworldso long as those are routable between models it should work20:32
bdxwallyworld: I can deal with that20:32
bdxawesome20:32
wallyworld*should*20:32
wallyworld:-)20:32
bdxwallyworld, rick_h, jpk: having an issue with standard lxd deploys to instances using aws provider and 2.3beta2, getting http://paste.ubuntu.com/25715842/20:41
bdxahhhh20:41
bdxAWS isn't a supported provider for the default FAN type probably I bet20:42
bdxper the release notes "On AWS, FAN works out of the box"20:44
bdx:(20:44
wallyworldbdx: sorry, in meeting, will respond soon if i can20:45
bdxnp20:45
bdxthx20:45
jambdx: please file a bug, I have the feeling it is a problem with the interaction between a defined space and fan configuration20:58
jamsince 'common-nat' isn't a space name that Juju would have set up20:58
jamso I'm guessing you added it20:58
bdxjam: yeah21:25
bdxhttps://bugs.launchpad.net/juju/+bug/172266121:25
mupBug #1722661: FAN - unable to setup network <juju:New> <https://launchpad.net/bugs/1722661>21:25
jambdx: are you trying to test out fan, or are you wanting to just have a container behind nat?21:42
bdxjam: I was just taking 2.3 for a test drive .... thought I would start out with testing what happens when I type in something familiar21:43
bdx:)21:43
bdxI like what I see for the non-space-constraint instance though21:46
bdxjam: I wonder if it has anything to do with the fact that my common-nat space is a nat subnet21:46
jambdx: sounds possible21:46
bdxthe ips that the containers get from the provider are basically elastic ips right?21:47
bdxI see21:48
bdxso, this is a limitation then?21:48
bdxthe limitation being that provider type FAN networking for AWS is limited to subnets with routing tables that use an IGW21:50

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