Hello! I want to ask about patch for MAC_binding functionality, seems that it just adding but not updating or deleting MAC_Bindig rows.
https://github.com/ovn-org/ovn/commit/a2b88dc5136507e727e4bcdc4bf6fde559f519a9 In my setup I have logical router with DNAT rules. Whenever I create or delete logical routers or DNAT rules on them with same IPs, I can see that MAC_Binding rows are not updated or deleted in SBDB. Let me show some example of relationships between Port_Binding and Mac_Binding, which I expect to be properly served by OVN controller pinctrl module. But its not :( - DNAT rule added Port_Binding _uuid : 7c16e012-5acc-498e-b656-79a19f5bb4d1 chassis : 1f4aa70f-804a-4e98-b8ba-22db389be1e2 datapath : 09b37624-d7d2-4a21-8758-3809ae319f62 encap : [] external_ids : {"neutron:cidrs"="10.14.0.253/24", "neutron:device_id"="9788b99d-351c-4741-92d3-2ee27ecd1e3f", "neutron:device_owner"="network:router_gateway", "neutron:network_name"=neutron-a0f9f5fd-e94b-44d9-a4b3-66082dd9dd5a, "neutron:port_name"="", "neutron:project_id"="", "neutron:revision_number"="1", "neutron:security_group_ids"="", "neutron:subnet_pool_addr_scope4"="", "neutron:subnet_pool_addr_scope6"=""} gateway_chassis : [] ha_chassis_group : [] logical_port : "ad363382-c4e1-42f1-a103-85a0decf8b73" mac : [router] nat_addresses : ["fa:16:3e:a1:d9:1e 10.14.0.250"] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This field updated!!! options : {l3gateway-chassis=az14-network-2, peer=lrp-ad363382-c4e1-42f1-a103-85a0decf8b73, shadow-port="true"} parent_port : [] requested_chassis : [] tag : [] tunnel_key : 6 type : l3gateway up : true virtual_parent : [] MAC_binding _uuid : b05316bd-4293-44c1-890c-ca2ca869241d <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This row OVN must create if not exist! datapath : 06cb9489-07d5-4328-8543-aab635b1d8d1 ip : "10.14.0.250" logical_port : lrp-8c60913e-1e3f-44fe-ba6e-49ecf6ced01e mac : "fa:16:3e:a1:d9:1e" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This field OVN must update with new mac if row already exist! - DNAT rule deleted Port_Binding _uuid : 7c16e012-5acc-498e-b656-79a19f5bb4d1 chassis : 1f4aa70f-804a-4e98-b8ba-22db389be1e2 datapath : 09b37624-d7d2-4a21-8758-3809ae319f62 encap : [] external_ids : {"neutron:cidrs"="10.14.0.253/24", "neutron:device_id"="9788b99d-351c-4741-92d3-2ee27ecd1e3f", "neutron:device_owner"="network:router_gateway", "neutron:network_name"=neutron-a0f9f5fd-e94b-44d9-a4b3-66082dd9dd5a, "neutron:port_name"="", "neutron:project_id"="", "neutron:revision_number"="1", "neutron:security_group_ids"="", "neutron:subnet_pool_addr_scope4"="", "neutron:subnet_pool_addr_scope6"=""} gateway_chassis : [] ha_chassis_group : [] logical_port : "ad363382-c4e1-42f1-a103-85a0decf8b73" mac : [router] nat_addresses : [] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This field cleared!!! options : {l3gateway-chassis=az14-network-2, peer=lrp-ad363382-c4e1-42f1-a103-85a0decf8b73, shadow-port="true"} parent_port : [] requested_chassis : [] tag : [] tunnel_key : 6 type : l3gateway up : true virtual_parent : [] MAC_binding _uuid : b05316bd-4293-44c1-890c-ca2ca869241d <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This row OVN must destroy! datapath : 06cb9489-07d5-4328-8543-aab635b1d8d1 ip : "10.14.0.250" logical_port : lrp-8c60913e-1e3f-44fe-ba6e-49ecf6ced01e mac : "fa:16:3e:a1:d9:1e" - Logical router added Port_Binding _uuid : 4fba6716-0eb1-4cb2-ac57-66184939e623 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This row created! chassis : 1f4aa70f-804a-4e98-b8ba-22db389be1e2 datapath : 890aef9d-0dd6-48e5-935b-d07951143c37 encap : [] external_ids : {"neutron:network_name"=neutron-a0f9f5fd-e94b-44d9-a4b3-66082dd9dd5a, "neutron:revision_number"="1", "neutron:router_name"="9788b99d-351c-4741-92d3-2ee27ecd1e3f", "neutron:subnet_ids"="8525a5ff-7e20-40f1-a768-b82b30378ac2"} gateway_chassis : [] ha_chassis_group : [] logical_port : lrp-ad363382-c4e1-42f1-a103-85a0decf8b73 mac : ["fa:16:3e:a1:d9:1e 10.14.0.253/24"] nat_addresses : [] options : {chassis-redirect-port=cr-lrp-ad363382-c4e1-42f1-a103-85a0decf8b73, l3gateway-chassis=az14-network-2, peer="ad363382-c4e1-42f1-a103-85a0decf8b73"} parent_port : [] requested_chassis : [] tag : [] tunnel_key : 1 type : l3gateway up : true virtual_parent : [] MAC_binding _uuid : f3435a82-05f8-4c08-8689-6ebbc4f6c7b4 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This row OVN must create if not exist! datapath : 06cb9489-07d5-4328-8543-aab635b1d8d1 ip : "10.14.0.253" logical_port : lrp-8c60913e-1e3f-44fe-ba6e-49ecf6ced01e mac : "fa:16:3e:a1:d9:1e" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This filed OVN must update with new mac if row already exist! - Logical router deleted Port_Binding _uuid : 4fba6716-0eb1-4cb2-ac57-66184939e623 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This row deleted! chassis : 1f4aa70f-804a-4e98-b8ba-22db389be1e2 datapath : 890aef9d-0dd6-48e5-935b-d07951143c37 encap : [] external_ids : {"neutron:network_name"=neutron-a0f9f5fd-e94b-44d9-a4b3-66082dd9dd5a, "neutron:revision_number"="1", "neutron:router_name"="9788b99d-351c-4741-92d3-2ee27ecd1e3f", "neutron:subnet_ids"="8525a5ff-7e20-40f1-a768-b82b30378ac2"} gateway_chassis : [] ha_chassis_group : [] logical_port : lrp-ad363382-c4e1-42f1-a103-85a0decf8b73 mac : ["fa:16:3e:a1:d9:1e 10.14.0.253/24"] nat_addresses : [] options : {chassis-redirect-port=cr-lrp-ad363382-c4e1-42f1-a103-85a0decf8b73, l3gateway-chassis=az14-network-2, peer="ad363382-c4e1-42f1-a103-85a0decf8b73"} parent_port : [] requested_chassis : [] tag : [] tunnel_key : 1 type : l3gateway up : true virtual_parent : [] MAC_binding _uuid : f3435a82-05f8-4c08-8689-6ebbc4f6c7b4 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This row OVN must destroy! datapath : 06cb9489-07d5-4328-8543-aab635b1d8d1 ip : "10.14.0.253" logical_port : lrp-8c60913e-1e3f-44fe-ba6e-49ecf6ced01e mac : "fa:16:3e:a1:d9:1e" So in the above examples I tried to create/delete logical routers with same external IP address twice, and traffic when router created second time to its external IP blackholed. The same picture I can see when, some DNAT rules were added to first router then router deleted and then DNAT rules repeated on second router with same IPs - traffic blackholed again. My setup: - OVN 22.03.3 - OVS 2.17.7 Could some one approve my assumptions about lack of update/delete MAC bindings mechanism in OVN controller in 22.03? Also I appreciate any suggestions about this problem! BR Artem УВЕДОМЛЕНИЕ О КОНФИДЕНЦИАЛЬНОСТИ: Это электронное сообщение и любые документы, приложенные к нему, содержат конфиденциальную информацию. Настоящим уведомляем Вас о том, что если это сообщение не предназначено Вам, использование, копирование, распространение информации, содержащейся в настоящем сообщении, а также осуществление любых действий на основе этой информации, строго запрещено. Если Вы получили это сообщение по ошибке, пожалуйста, сообщите об этом отправителю по электронной почте и удалите это сообщение. CONFIDENTIALITY NOTICE: This email and any files attached to it are confidential. If you are not the intended recipient you are notified that using, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error please notify the sender and delete this email.
_______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss