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

axwhml: woot :)01:33
hmlvery happy!01:34
axwwallyworld thumper: I've been through the sizings again. question mark on update-status, needs some spec to figure out what a decent approach is. other than that, I think wallyworld's numbers are fine, but I bumped a few up03:20
thumperaxw: thanks03:21
wallyworld+103:21
anastasiamacaxw: fwiw, we had put some details in our sizing with jam... did u see these?03:29
axwanastasiamac: yes, thanks03:29
anastasiamac\o/03:29
babbageclunkwallyworld: ping?04:00
wallyworldhey04:05
wallyworldbabbageclunk: pong04:06
babbageclunkdoh, didn't get a notification for some reason04:13
wallyworldthat happens to me too04:13
babbageclunkwallyworld: sorry ^. I'm having to hack no-neutron support into the test doubles in goose.04:13
babbageclunkwallyworld: is this worthwhile?04:13
wallyworldhmmm. there's no easier way?04:14
babbageclunkwallyworld: thought I'd check before I got too far down the rabbit hole.04:14
wallyworldwe can't use a monkey patch to simulate lack of neatron?04:15
babbageclunkHmm. Maybe by registering a control point for authorisation to chop it out?04:15
babbageclunkI'll try that04:15
babbageclunkhang on04:16
wallyworldyeah that04:16
wallyworldor return an error that triggers the switch to nova in juju04:17
wallyworldvia the control point mechanism04:17
wallyworldjam: hey, i'd like to land that network-get PR. are you able to +1?04:41
jamwallyworld: so the *big* point is that I don't think creating a "public" space is really going to do what you think it will in 2.304:46
jamnow, whether its still the best compromise that we can think of. I was hoping wpk would give it a look, but it seems he was overloaded with other things yesterday.04:47
jamI'll check in again with him in about 10 min04:47
jamI'll give the code a look as well.04:47
wallyworldok. i'm not sure why you think creating a space containing subnets from which a public address may be selected won't work. bear in mind though that is optional - just don't bind to anything if you want juju to choose a public address if one is available04:48
wallyworldyou bind the endpoint to a space if you *don't* want a public address to be used04:48
wallyworldso the user has control of how their offer is consumed04:49
jamwallyworld: if you don't bind at all, then you can't select a subnet04:49
jamYou might have carved several subnets that don't have public access because you want them to be for your database04:49
jamso you need other subnets that *do* have public access, and thus you want to *select* them so you don't accidentally provision in the ones that don't have public04:50
jamthat doesn't mean your patch can't land, but it is a discrepancy between what we want to have and what we currently have04:53
axwwallyworld: FYI, I'm looking at https://bugs.launchpad.net/juju/+bug/172467305:39
mupBug #1724673: unable to destroy-model with offer in it <cross-model> <juju:In Progress by axwalk> <https://launchpad.net/bugs/1724673>05:39
wallyworldjam: if you don't bind, juju will try and select the machine public address to set as the ingress address. if you want to control what address juju uses, bind to a space05:40
wallyworldie you need to decide an an offerer if you want your offer to be public or not05:40
wallyworldaxw: awesome, thanks for picking up that bug05:43
jamwallyworld: my point is, if I have created 2 subnets on AWS, one that has public internet and one that doesn't. if I don't bind *at all* then Juju randomly selects which subnet it will use05:45
jamand *might* pick the one that has a public address, so that I can create a public offer05:45
jamor might not05:45
wallyworldjam: no it won't it will use the public address05:46
jamwallyworld: if you deploy to subnet-b *it has not public address*05:46
wallyworldit calls machine.PublicAddress()05:46
jamwallyworld: AWS Subnets can have a "create public address" flag05:46
wallyworldright but using spaces and hence subnets is your choice05:46
jamwallyworld: so if you can't bind, then you can't say "Make sure to use these subnets that have public addresses"05:46
wallyworldi'm missing something it seems - i thought in aws, gce etc - all machines got  apublic address05:47
wallyworldand m.PublicAddress() would return that05:47
wallyworldand that's what we use in the absense of a binding05:47
jamwallyworld: see above. There is a flag on a subnet that says "should machines in this subnet get a public address"05:48
jamyou can set that to false05:48
jamwhich is what you *want* for your Database05:48
jambecause PCI says that database machines can't have public ingress05:48
wallyworldnot if you are offering it for public consumption05:48
jamwallyworld: and yes, I don't want to make my db public05:48
jambut I want my website public05:48
jamand I can't have it use the database subnet05:48
jamso I want to select the subnet that has public addresses associated with it05:49
wallyworldso you can do that just fine05:49
jamwallyworld: how do I tell it not to use the database subnet without binding?05:49
wallyworldbind the website endpoint to a space with public addresses and the website db endpoint to a different space05:49
wallyworldor just bind the db endpoint05:50
jamwallyworld: you just said that if I bind it to the space that includes the subnet that has public addresses it will get the locally bound subnet address05:50
jamI have the interview in 10, so I have to go prep, but I'll chat with you about this after05:50
wallyworldok, sounds good, i think we are at cross purposes05:50
jamwpk was oversleeping, so I'll try to get his attention later as well05:50
wallyworldok05:50
=== frankban|afk is now known as frankban
wallyworldaxw: i think ChangeIngressRules() in sshInstanceConfigurator is wrong? the param should be -A and not -I ?07:21
wallyworldwhen i try with -I it fails, but -A works fine07:21
wpkyou mean iptables -I fails?07:32
axwwallyworld: sorry gotta take charlotte to ballet, I can take a look when I get back. that thing is an abomination07:38
wallyworldwpk: yeah, but -A works, eg sudo iptables -d 192.168.1.1 -A INPUT -p icmp --icmp-type 8 -j ACCEPT07:47
wallyworldthat works but -I doesn't07:47
wpkwhaaa?07:48
wpkworks for me07:48
wallyworldhmmm07:48
wpkhow it fails?07:48
wallyworldi sshed into an aws instance and confirmed there also07:48
wallyworldwpk: wtf, i just tried it again and it worked07:49
wallyworldlast time i got an error message about chained rules or something07:50
wallyworldnfi07:50
wpkwallyworld: It got scared that I'll start to debug it. It's called respect.07:51
wallyworldlol07:51
wallyworldwpk: if you had time for a smallish review at some stage, https://github.com/juju/juju/pull/796909:50
wpkI'd call it icmp-ping09:54
wallyworldthe sec group calls it just icmp09:55
wallyworlda single word is better IMO09:55
wallyworldit's also icmp in iptables09:55
wallyworldeasier to type udp or tcp or icmp09:55
wpkit's icmp type 809:56
wpk(in iptables)09:56
wallyworldACCEPT     icmp --  0.0.0.0/0            10.0.0.1     icmptype 809:57
wallyworldthe prot column is icmp09:57
wpkbut there's icmptype 809:57
wallyworldbut that's not in the prot column09:58
wpkyou're not accepting any icmp, just type 8 (echo)09:58
wallyworldthe type is not specified in the sec groiup is it?09:58
wallyworldthat example was just for iptables, when you open an ip rule in a sec group you just say icmp09:59
wallyworldthe iptables list has these headers: target     prot opt source               destination10:00
wallyworldthe prot values are "icmp" or "tcp" or "udp"10:00
wallyworldand that's what we specify for IpPerm in aws for example also10:01
wallyworldwe don't specify the sub type10:01
wpkBut just like you're opening a port in tcp/udp here you're saying you're opening "icmp" and only opening one type of it(echo). I'm being pesky, I know....10:02
wpkbut LGTM10:02
wpk(just there might be someone who'll say that he wanted to open ICMP and only got pings :)10:03
wallyworldwpk: but we don't specify that we're just opening one type for clouds. the only place we do that is that stupid configurator. i guess i could remove the type from there10:05
wpkI wonder how it works on AWS. Anyway, as above - LGTM as is.10:05
wallyworldok, ty10:06
babbageclunkjam: could you take another look at https://github.com/juju/juju/pull/7962 plz?10:12
axwwallyworld: my PR has a bug in it, but highlighted an issue with the relation counting in applicationOffers.Remove. it's possible for a relation to a non-remote application to be removed, and replaced with one to a remote application, and the offer would still be removed10:24
axwwould/could10:24
wallyworldoh oops10:25
axwwallyworld: I've just pushed, see state/applicationoffers.go for my TODO(axw)10:25
axwI'll take a look at fixing that tomorrow10:26
wallyworldty, luckily we shouldn't have people hitting this yet10:27
wallyworldjam: not sure if you saw my last comment on the pr. if we can accept the current behaviour, i'd like to land it tonight so it makes beta210:28
wallyworldwithout the pr, things are sub optimal in a different way - i believe the pr makes things better for more cases we care about10:28
wallyworldyou either want your db publiclly available as an offer or you don't - we support that scenario fine10:29
wpkdamn, I hate fixing tests in state/..10:30
wallyworlddon't we all :-)10:31
jamso who wants to be a review buddy for mgopurge: https://github.com/juju/mgopurge/pull/22/files12:51
jamthat one is fairly straightforward, at least12:51
wallyworldjam: lgtm12:52
wallyworldjam: did you get to ask for a 2nd opinion on the network-get PR?12:53
wallyworldrunning out of time to land for beta212:54
jamI did, though it seems he hasn't gotten to that, ran into other bugs.12:54
wpkwallyworld: LGTM for now12:54
wallyworldty, we can iterate12:54
wallyworldi do believe it's a step forward12:54
wallyworldnot perfect yet12:55
wallyworldi did get the nagios stuff all working today though12:55
jamwallyworld: is it possible to check if there is a public address corresponding to a given space, rather than just whether there is a binding, or we just don't have that information12:57
jamwe probably don't track a link anyway12:57
jamanywhere12:57
wallyworldjam: yeah, we don't model that IIANM12:58
jamI, Ian, Man ? :)13:00
wpkjam: Someone recently used 'OIC', I had to look it up in Acronym Finder. The first answer does not seem to be correct...13:01
jamO I C, yeah13:04
wallyworldIf I Am Not Mistaken13:05
wallyworld:-)13:05
jamwallyworld: yeah, I figured it out, I just figured I'd play with it.13:05
jamits not one I use regularly13:05
jamIIRC is usually what I use there13:05
wallyworldwpk: so you ok for me to merge?13:09
jamlooking over it now, myself13:13
wallyworldok, ta13:16
jamwallyworld: I had one comment on it, where you took out a fallback to unit.PrivateAddress() if len(NetworkInfo) == 013:16
jamwallyworld: aside from the fallback issue, I think lgtm13:19
wallyworldjam: ty, i'm rereading the code, but it was intentional as it wasn't needed in that place anymore13:20
jamk13:24
wallyworldjam: we now rely on the behaviour in GetNetworkInfoForSpaces(0 to "Do The Right Thing" with regard to populating the bind addresses.13:24
wallyworldthe ingress address still falls back to using private addressfor the default space if it's cross model13:25
wallyworldand if not, we select the first bind address13:25
jambabbageclunk: reviewed13:32
=== frankban is now known as frankban|afk
wallyworldexternalreality_: i have 10 mins now if you want to chat22:31

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