Friday, 2018-11-23

*** hongbin has quit IRC00:19
*** yamamoto has quit IRC00:28
*** longkb has joined #openstack-fwaas00:39
*** longkb has quit IRC01:08
*** annp has joined #openstack-fwaas03:08
*** velizarx has joined #openstack-fwaas07:52
*** velizarx has quit IRC08:24
*** velizarx has joined #openstack-fwaas08:30
doudeHi annp, thanks for you review09:12
doudeyour*09:12
doudejuste a question, do you know what that check is used for? https://github.com/openstack/neutron-fwaas/blob/master/neutron_fwaas/services/firewall/fwaas_plugin_v2.py#L189-L19009:13
doudeI don't understand that shortcut09:13
*** longkb has joined #openstack-fwaas10:10
annphi doude10:19
annpdoude, sorry for late response10:19
*** longkb has quit IRC10:20
annpdoude, That code used to check whether port security is enabled or not.10:22
annpif a port is not enabled security group, then we no need to check this port is hybrid port or not.10:23
doudenp annp10:23
doudewhy?10:23
doudethat means if the port security disable, thefirewall driver support that port10:24
annpIn my understanding, security rule (sg rule and fw rule) won't apply on this port10:25
doudeI think that check should be done after we verified the port type is OVS, no?10:26
doudeoh, you mean if port security disabled on a port, no SG or FP are applied on the port?10:26
annpJust a second, let's me check source code10:27
annphttps://github.com/openstack/neutron-fwaas/blob/master/neutron_fwaas/services/firewall/service_drivers/agents/drivers/linux/l2/openvswitch_firewall/firewall.py#L35510:29
annpYes. I think so.10:29
doudeIMO, port security and SG are not linked. You could disable port security (anti spoofing rules) on a port and applying SG rule10:29
annpFrom my understanding, if we disable port security, then security group rule won't apply, right?10:32
doudeno I don't think10:32
annpSorry I'm still confused, because following the code  https://github.com/openstack/neutron/blob/master/neutron/agent/linux/openvswitch_firewall/firewall.py#L530, security group rule won't apply.10:35
doudeok so if port security disable, SG does not apply?10:37
doudeand if port security disable, we should not apply firewall policies on port to?10:38
annpdoube, Yes. I think so.10:38
annpdoube, Don't you think we should sync up with SridarK, xgerman, yushiro in your patch?10:40
doudeso why returning directly True in that case if port security disable?10:41
doudeyes I added SridarK, xgerman and yushiro as reviewers10:42
doudebut it's thanksgiving actually, so probably get feedback next week10:43
annpBecause fw_l2_driver and security group driver based ovs don't matter with port security disable, So I think we can return directly here.10:47
annpYeah, they're in thanksgiving. :-)10:47
doudeyes got it annp for the OVS case, but you returned True before you validated the port is an OVS port10:50
annpdoube, ah, I got it. Yes. It should be validated after we check ovs port or not.10:51
annpdoube, This is my mistake. Thank you.10:53
doudeok10:53
doudeI can move that check in patch to the agent driver code10:53
doudeI found in ML2 plugin code which limits SG only if port security enabled10:54
doudehttps://github.com/openstack/neutron/blob/aefd805ccadd872f33ab1f8ebcdde37acc939da7/neutron/plugins/ml2/plugin.py#L1239-L124010:54
doudeI don't understand why ML2 have that limitation10:54
doudeit seems more a limitation due to the OVS implementation than usage limitation10:55
annpdoube, hm, I don't understand too.11:01
annpdoude, I think you can reach out Jakub to ask about that :-)11:02
doudeok11:07
annpdoude, btw, if you're interested in https://review.openstack.org/#/c/600870/. Please help us to review it :-)11:07
doudethat's not a issue for me, in Contrail we don't have that limitation :)11:08
doudeso do you want I propose a new patch set to fix that port security check?11:08
doudeok I'll try to review that11:08
annpdoude: Yessss. It would be great.11:09
annpdoude, I'm looking forward new your patch.11:09
annpdoude, Are you in USA?11:10
doudeok thanks annp. No I'm leaving in France (UTC+1)11:12
doudeand you?11:12
annpI'm living in Vietnam (GMT+7).11:13
annpDo the French people celebrate thanksgiving?11:14
doudeno we don't11:17
annpme too. Anyway, Happy thanksgiving!11:19
annpI will leave office now.11:19
doudebut the commercial business of big companies push in Europe to establish the black Friday11:19
doudebusiness :)11:19
doudeyes have good evening and happy thanksgiving11:20
openstackgerritÉdouard Thuleau proposed openstack/neutron-fwaas master: Move port validation support into the driver  https://review.openstack.org/61928611:20
annpah, yeah. I've just bought a book from Julien Danjou :p11:21
doudeI just pushed a new patch set for port security stuff11:21
doudeyes good reading, which one? scaling ?11:21
doudeI've both11:21
doudeI know him, very nce guy11:21
doudenice*11:21
annpI bough scaling book.11:21
annp:-)11:22
doudegood choice11:22
annpYeah! :-) See you and have a great day ahead.11:25
*** annp has quit IRC11:26
*** velizarx has quit IRC12:23
*** velizarx has joined #openstack-fwaas12:54
*** hongbin has joined #openstack-fwaas15:01
*** velizarx has quit IRC16:17
*** hongbin has quit IRC17:49
*** hongbin has joined #openstack-fwaas17:49

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