neutron/neutron/tests/unit/agent
Daniel Alvarez Sanchez 60597d2503 [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
(cherry picked from commit 32e938e698)
2021-04-27 10:05:52 +00:00
..
common Merge "Improve terminology in the Neutron tree" 2020-08-28 14:06:18 +00:00
dhcp Stop metadata proxy gracefully 2021-02-25 09:49:26 +01:00
l2 Remove "six" library 2020-07-28 16:55:52 +00:00
l3 Merge "Delete HA metadata proxy PID and config with elevated privileges" into stable/victoria 2021-03-31 18:30:46 +00:00
linux Fix "_get_sg_members" method 2021-04-08 15:35:46 +00:00
metadata Stop metadata proxy gracefully 2021-02-25 09:49:26 +01:00
ovn [OVN] Only account for bound ports in metadata agent 2021-04-27 10:05:52 +00: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 Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_securitygroups_rpc.py Upgrade RPC version of SecurityGroup*Rpc 2020-12-14 13:44:46 +00:00