18:30:11 #startmeeting networking_fwaas 18:30:11 Meeting started Wed Dec 16 18:30:11 2015 UTC and is due to finish in 60 minutes. The chair is sc68cal. Information about MeetBot at http://wiki.debian.org/MeetBot. 18:30:12 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 18:30:14 The meeting name has been set to 'networking_fwaas' 18:30:17 #chair xgerman 18:30:18 Current chairs: sc68cal xgerman 18:30:56 Hi 18:31:00 So. I think the biggest piece of business is getting the API spec from the 5 yard line, into the endzone 18:31:01 xgerman is on vacation. Not sure if he would join 18:31:02 Hi 18:31:16 hi 18:31:16 #chair SridarK 18:31:17 Current chairs: SridarK sc68cal xgerman 18:31:23 Hi All 18:31:44 #topic API spec discussion 18:31:58 sc68cal: yes, we would like to get it merged. 18:32:04 sorry will be slow as i am debugging on another internal issue 18:32:13 So - we're very close. I think there are some small details around the rule behavior 18:32:36 #info openstack gerrit is being upgraded today 18:32:37 Aish: sc68cal: agree - i will have a last go later in the day today 18:32:59 gotcha 18:33:03 I can do another round of comments tomorrow 18:33:26 +1 18:33:32 The main thing that kept me from +2'ing it was the addition of that note where if there is no source or destination included in a rule - that means that it matches any packet 18:34:26 since gerrit is down I'll try and replicate my comment. Basically if you want it to match any packet, set the source or dest to 0.0.0.0/0 or ::/0 18:34:28 I checked security groups yesterday. The API allows no remote security group or remote address prefix. By the time it gets down to iptables, either way 0.0.0.0/0 is programmed in the rule. Horizon forces specification of 0.0.0.0/0 18:34:32 Hi, I am on mobile... 18:35:00 sc68cal: +1 18:35:04 sc68cal: to be more explicit 18:35:17 yes 18:35:43 So, you must have a source and destination, that's my thinking for the rule 18:36:05 now , the question is do we want to let rules that mix the kinds of source and destination 18:36:16 like source_ip_prefix and destination_firewall_group 18:36:27 I thought it would be easier for users if they don't have to specify both, but if everyone else thinks they should both be specified, fine 18:36:41 I think we should allow source_ip_prefix and destination_firewall_group 18:36:48 ^ this works for me 18:36:57 +1 18:37:04 Remember that if you are going to something external, firewall_group does not work 18:37:22 Allow mixing from my perspective. 18:37:40 mickeys: a firewall group could be external 18:37:52 like if you have a 2nd subnet, router, and network, or something 18:37:57 A firewall group is a group of ports. How does that represent external addresses? 18:38:24 mickeys: could be addresses on another tenant network - same tenant 18:38:33 External to the tenant but still in the same cloud 18:38:34 Maybe I should have said outside of OpenStack rather than external 18:38:43 Yep 18:39:04 mickeys: gotcha - well if it's outside of openstack then it couldn't be a firewall group 18:39:12 they'd most likely use ip prefix 18:39:14 If I want to allow traffic from some firewall group to a set of outside address prefixes, for exapmle 18:39:41 So we have to allow source and destination to use different constructs 18:39:51 right - and I think we're all on board with that 18:40:02 +1 18:40:08 +1 18:40:18 +1 18:40:56 so I mean that's the only two little things - if we just update the spec to reflect that, I'm ready to +2 it 18:41:38 * sc68cal moves the football to the 1 yard line 18:41:44 sc68cal: i just need some time till end of day to run thru 18:41:56 but over all i am fine 18:42:02 sc68cal: any opinion on position - priority 18:42:05 ? 18:42:30 I haven't really followed it - so if we have consensus on one or the other I'm willing to follow 18:42:39 is it just semantics, and they do the same thing? 18:42:49 xgerman: i am still on position for now - but we can look at if based on bandwidth 18:43:36 Ok. 18:43:38 They achieve the same thing, but the behavior is different 18:44:06 With position, things shift when you insert a rule. There is a specific API to insert a rule before or after another rule. 18:44:20 With priority, you just specify a value. Does not have to be monotonic, there can be gaps. 18:44:28 No insert before or insert after. 18:44:37 No shifting 18:44:55 mickeys: yes agree - more in lines of how much code we need to rewrite for M 18:44:55 Specific priority value is specified in the API 18:45:15 ok - so based on that, I think I like position. 18:46:04 I guess my only criticism is that with priority it's an opaque value 18:46:47 with position, the ordering is a bit more explicit, plus it's one less thing a client has to put in his CLI or API request 18:47:20 Well, position is two things before and after 18:47:26 since position is set and returned to the user, right SridarK ? 18:47:48 Nope. Position changes when you insert a new rule 18:48:09 position is just set relatively as specified 18:48:15 xgerman: oh? it gets added at the head of the list, not tail? 18:48:21 Position doesn't scale or cache or work RESTfully, since based on state of other rules and not self-contained. 18:48:32 jwarendt: fair point. 18:48:42 jwarendt: agreed on that 18:48:53 +1 18:49:19 if we go with priority - will it be a required value? 18:49:34 Yep 18:49:38 or optional/assigned for you if you don't send it in your req 18:50:12 I think we want to be deterministic 18:50:17 sc68cal: that would be tricky 18:50:22 SridarK: agreed 18:50:42 Required would be best 18:50:48 Some vendors automatically assign, doing +10 with every new rule. It is not easy to explain, or can be a little complex. 18:50:54 In ACLs on routers and switches 18:51:42 OK - so my thinking is this. If we can, let's try out position - but let's definetly whip up a spec for priority 18:52:29 since migrating between the two isn't really that big a deal unless I'm mistaken. 18:53:28 sc68cal: i agree on this, it may be a significant change on the rule front 18:53:52 if we can do this great else we get it in N 18:53:52 priority being a required attribute is sort of a stretch to me, to force a user to pick some arbitrary value 18:54:57 I 18:55:15 am not hard core on this, we can always revisit later 18:55:33 +1 18:55:34 and the migration between would be pretty straight forward from position to priority 18:56:00 could just take position and multiply by 10 or something to give people space to stick stuff in between 18:56:03 sc68cal: i think we can figure that out with a mapping of position to priority 18:56:11 sc68cal: yes 18:57:13 Well, I think we can do that from the get go but didn't sign up for it so will defer to sc68cal 18:58:43 I think we have another big issue that could use more discussion. The current proposal is that things like IP address, protocol, port are in the API but not in the data model. This means they would get translated to address group and service group in the data model, and when you do a get, you would see the groups. I think if we are going to have individual IP address, protocol, and port, we should put them in the data 18:58:43 model as well. We should remember which one was provisioned and return that in the API when you do a GET. 18:58:53 IMO, it is both easier on the users, seeing the same thing in GET that they put in POST, and I think it is easier to populate the same fields from multiple sources in the plugin than to translate the API into different database objects. 18:59:49 I think having two representations for the same thing is confusing 19:00:13 Also that just complicates the data model 19:00:48 i think we discussed this earlier and thought we would refrain from doing this under the covers 19:02:32 mickeys: good point 19:02:33 We only agreed that we give them those convenience functions 19:03:25 That was one proposal. I don't think we discussed it enough to reach full consensus. 19:03:56 Well, storing things two ways leads to a mess for little gain 19:04:43 I think i'm a +1 on mickeys thinking 19:04:43 The place to reduce complexity is the API more than the data model, but we had good reasons for leaving individual IP address as well as address group in the API. 19:05:15 Well, I would kick them out 19:05:52 I am +1 on mikey's position from a user perspective 19:06:16 So if you specify both it gets confusing 19:06:32 Both in one rule, or different rules? 19:06:45 We said we won't allow both in one rule for source, or both in one rule for destination 19:06:56 Even different rules you need to look in two places 19:06:57 in one rule, I agree with xgerman. No doing both source_ip_prefix and source_firewall_group in the same rule 19:07:01 one rule is definitely out - we agreed on that 19:07:14 pick one from the kinds of sources, one from the kinds of desintations 19:07:28 +1 19:07:41 I don't see the problem if some rules use individual IP address while other rules use address group 19:07:47 but I think to mickeys point - don't munge it in the database. Make sure when we return a rule it's the same fields that they stuck in 19:08:19 and with the neutron-classifier effort, that's actually pretty easy 19:08:44 for now we just make the rule database table contain all six fields - but we can slim it down by using classifiers later 19:09:02 We can map to the same thing in the driver before we send RPCs down to the agent 19:09:33 my thinking is, 6 columns for the src and dst types, but a single row would have just 2 filled in with data, the rest null 19:09:54 until we swap over to classifiers, so we have less null columns floating around 19:10:04 in a row 19:10:11 Well, I hate special cases... 19:10:23 i think that would work - so it is either the addr colum or the reference to the address group column 19:11:40 or the firewall group column 19:11:56 +1 19:12:03 And if I like to add another address to my rule I either have to create a new rule with that up or delete that rule and make a new one with address group 19:12:17 Yes 19:12:22 xgerman: sounds right 19:12:37 or update the address group, if your rule pointed to it 19:13:07 Which it won't since we stopped automatic conversion 19:13:26 So like people would add another rule with ip 19:13:29 There are consequences to which representation the user chooses. They are not that bad. 19:13:42 xgerman: yeah most likely 19:13:57 mickeys: +1 19:14:11 I think we've given them plenty of rope to hang themselves with 19:14:13 :) 19:14:17 :-) 19:14:22 plenty of yak shaving instruments 19:14:39 That is my concern - so I like to limit choices 19:15:40 But I trust sc68cal that classifieds will solve that :-) 19:15:45 :) 19:16:42 On that note, the initial implementation will not use sc68cal's classifier proposal for the data model? 19:17:24 mickeys: it might. but for the time being we just make the database table for a firewall rule map directly to how it looks in the API 19:18:01 sc68cal: OK. I will leave it up to you when you want to introduce the classifier. 19:18:30 Given all the things we have added, the classifier will need to be updated whenever we get to it. 19:18:53 mickeys: right. I plan on pairing up with Aish on the database work and we'll go from there about using classifier 19:19:03 Cool 19:19:12 yup.. 19:19:18 but for the purpose of the spec we can just plan worst case to just make a firewall rule in the DB be exactly like it is in the REST API 19:19:32 then optimize it when we get to the code 19:19:42 Except for associations instead of lists ... 19:19:50 mickeys: yep, exactly 19:19:51 sc68cal: +1 for M 19:19:54 mickeys: +1 19:20:25 sc68cal: can we save 5 mins for other discusions 19:20:38 SridarK: sure. open discussion? 19:20:42 y 19:20:50 mid cycle etc 19:20:59 any last things about api spec from anyone? 19:21:07 * sc68cal thinks he's shaved his yak down to stubble 19:22:04 #topic open discussion 19:22:29 xgerman: ur suggestion was to pick a hotel near the airport ? 19:22:35 for the midcycle 19:22:40 Yes 19:23:00 That saves on driving in the morning 19:23:28 ok but is there a shuttle or we need to rent a car in terms of getting to the location 19:23:56 i guess i can look that up too - but if any of u have done this location b4 19:24:07 Most Rent a car but we can carpool 19:24:19 ok sounds good thx xgerman: 19:24:57 I also Once used cabs and Nummer rĂ¼des to The dinner location 19:25:30 ok 19:26:34 Also are folks around next week for the mtg ? 19:27:03 Let's skip the next two 19:27:14 And resume next year 19:27:17 xgerman: +1 19:27:48 * xgerman already on vacation 19:27:51 there is probab quite a few folks off 19:29:08 sounds good to me 19:30:37 Bye 19:30:53 #endmeeting