OVN metadata use the same IP as LB health monitor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-ovn |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Recently I ran into an issue that instances are unable to get metadata, after a few debugs I found out the issue to be the LB health monitor is replying the arp request for OVN metadata agent's IP causing the request going to metadata agent actually being sent to another MAC address.
Form sb_db logical flow dump I found the bellow flow
_uuid : df93e919-
actions : "eth.dst = eth.src; eth.src = 5e:69:e7:47:38:7b; arp.op = 2; /* ARP reply */ arp.tha = arp.sha; arp.sha = 5e:69:e7:47:38:7b; arp.tpa = arp.spa; arp.spa = 10.0.0.2; outport = inport; flags.loopback = 1; output;"
controller_meter : []
external_ids : {source=
logical_datapath : f714c506-
logical_dp_group : []
match : "arp.tpa == 10.0.0.2 && arp.op == 1"
pipeline : ingress
priority : 110
table_id : 18
tags : {}
hash : 0
Priority 110 flow with this action should be from the LB health monitor according to ovn-northd doc [1]
Where as ovn-metadata agent also uses the same IP (10.0.0.2)
+------
| Field | Value |
+------
| admin_state_up | UP |
| allowed_
| binding_host_id | |
| binding_profile | |
| binding_vif_details | |
| binding_vif_type | unbound |
| binding_vnic_type | normal |
| created_at | 2023-01-
| data_plane_status | None |
| description | |
| device_id | ovnmeta-
| device_owner | network:distributed |
| device_profile | None |
| dns_assignment | fqdn='host-
| dns_domain | |
| dns_name | |
| extra_dhcp_opts | |
| fixed_ips | ip_address=
| id | c1ba8ceb-
| ip_allocation | None |
| mac_address | fa:16:3e:7c:b8:1c |
| name | |
| network_id | 5640d643-
| numa_affinity_
| port_security_
| project_id | 2fbc86f895ed4ef
| propagate_
| qos_network_
| qos_policy_id | None |
| resource_request | None |
| revision_number | 2 |
| security_group_ids | |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2023-01-
+------
This causes all packet that should be going to 10.0.0.2 (metadata agent) actually being sent to 5e:69:e7:47:38:7b MAC address which is incorrect.
Expected result:
OVN LB health monitor sending arp replies to an unused IP, or reserved a port with an IP specifically for health monitor.
This is a duplicate of https:/ /bugs.launchpad .net/neutron/ +bug/2004238, let's keep the neutron one instead