[OVN] localport might not be updated when create multiple subnets for its network

Bug #1946589 reported by Liu Xie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Won't Fix
Medium
Rodolfo Alonso

Bug Description

When create a subnet for a specific network, ovn_client would update external_ids of metadata port.
We focus on these fileds of localport port: 'neutron:cidrs' and 'mac', because those fields contain fixed_ips.

But any scenarios like batch create multiple subnets for one network, its 'neutron:cidrs' and 'mac' might not updated.

metadata port info:
 neutron port-show 15f0d39b-445b-4b19-a32f-6db8136871de -c device_owner -c fixed_ips
+--------------+------------------------------------------------------------------------------------+
| Field | Value |
+--------------+------------------------------------------------------------------------------------+
| device_owner | network:distributed |
| fixed_ips | {"subnet_id": "373254b2-6791-4fe2-8038-30e91a9e9c8d", "ip_address": "192.168.0.2"} |
| | {"subnet_id": "d0d871af-158e-4f45-8af2-92f2058521a3", "ip_address": "192.168.1.2"} |
| | {"subnet_id": "eeac857f-ab0e-438f-9fa6-2ae0cd3de41a", "ip_address": "192.168.2.2"} |
+--------------+------------------------------------------------------------------------------------+

localport port info:
_uuid : 2e17ffa7-f501-49e5-97ce-9a8731e60699
chassis : []
datapath : cfebe6fc-52fc-43ec-a25b-73d30abe4d00
encap : []
external_ids : {"neutron:cidrs"="192.168.2.2/24", "neutron:device_id"=ovnmeta-d39ddf74-9542-4ebf-9d9b-a44d3c11d1fc, "neutron:device_owner"="network:distributed", "neutron:network_name"=neutron-d39ddf74-9542-4ebf-9d9b-a44d3c11d1fc, "neutron:port_name"="", "neutron:project_id"=fc5ea82972ce42499ddc18bc4733eaab, "neutron:revision_number"="4", "neutron:security_group_ids"=""}
gateway_chassis : []
ha_chassis_group : []
logical_port : "15f0d39b-445b-4b19-a32f-6db8136871de"
mac : ["fa:16:3e:e2:60:18 192.168.2.2"]
nat_addresses : []
options : {requested-chassis=""}
parent_port : []
tag : []
tunnel_key : 1
type : localport
up : false
virtual_parent : []

Liu Xie (liushy)
summary: - [OVN] localport might not be updated its external_ids when create
- multiple subnets for its network
+ [OVN] localport might not be updated when create multiple subnets for
+ its network
Changed in neutron:
importance: Undecided → Medium
Changed in neutron:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Hello Liu:

Please check if you have [1] in your system. With this patch in place, I've tested creating a network and adding 3 subnets. The metadata port is correctly updated, as you can see in [2], both the LSP and the port binding records update the "mac" field.

Regards.

[1]https://review.opendev.org/q/Id5d4909caa521a899b97d83bdc1963b010e97dac
[2]https://paste.opendev.org/show/810237/

Changed in neutron:
status: New → Incomplete
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Closing this bug. Please feel free to reopen it if needed, providing new information.

Changed in neutron:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.