neutron/neutron/tests
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 Remove "six" library 2020-07-28 16:55:52 +00:00
contrib [OVN] Unify OVN/OVS compilation 2020-07-07 22:05:59 +00:00
etc Convert policy.json into policy-in-code 2018-12-13 20:37:53 +00:00
fullstack Add minimum bw qos rule validation for network 2021-03-04 14:30:58 +00:00
functional [Functional] Fix mocks of the create_dhcp_port method 2021-04-13 06:30:34 +00:00
unit [OVN] Only account for bound ports in metadata agent 2021-04-27 10:05:52 +00:00
var
__init__.py
base.py Remove "six" library 2020-07-28 16:55:52 +00:00
post_mortem_debug.py
tools.py Remove references to unittest2 library 2020-01-14 09:03:26 +00:00