neutron/neutron/tests/unit/agent
Daniel Alvarez Sanchez 32e938e698 [OVN] Only account for bound ports in metadata agent
Due to bug #1922934 there might be situations with stale ports
in the OVN database. When instances request metadata, the agent
will try to fetch all ports for that particular network with the
same IP address and there should be only one.

However, when there are stale ports in OVN database but not in
Neutron, those ports may have the same IP address and the result
is that metadata won't work. As the stale ports will never be
bound to any hypervisor, this patch is accounting only for
bound ports so that those ports don't interfere until they
eventually get fixed by the maintenance task.

Related-Bug: #1922934
Signed-off-by: Daniel Alvarez Sanchez <dalvarez@redhat.com>
Change-Id: I708904b982d243359f2eeda809beae0321f1a7db
2021-04-22 15:23:43 +02:00
..
common Migrate "ovs-ofctl" to oslo.privsep 2021-03-31 16:44:30 +00:00
dhcp Stop metadata proxy gracefully 2021-02-06 17:24:38 +00:00
l2 Add the DHCPReponder for IPv4 2021-03-30 17:25:59 +08:00
l3 Merge "Block metadata requests to not go out from the router" 2021-03-28 19:24:02 +00:00
linux Always use absolute path for custom kill-scripts 2021-04-09 15:28:41 +02:00
metadata Stop metadata proxy gracefully 2021-02-06 17:24:38 +00:00
ovn [OVN] Only account for bound ports in metadata agent 2021-04-22 15:23:43 +02:00
ovsdb Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
windows Remove "six" library 2020-07-28 16:55:52 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agent_extensions_manager.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_resource_cache.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_rpc.py [OVS] Fix live-migration connection disruption 2021-01-13 11:13:41 +00:00
test_securitygroups_rpc.py Merge "Remove rootwrap execution (4)" 2021-02-17 15:43:21 +00:00