neutron/neutron/agent/ovn/metadata
Daniel Alvarez Sanchez f748962e5a [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:17 +00:00
..
__init__.py [OVN] Move OVN metadata agent 2019-12-09 10:48:39 +00:00
agent.py [OVN] Only account for bound ports in metadata agent 2021-04-27 10:05:17 +00:00
driver.py [OVN] Move OVN metadata agent 2019-12-09 10:48:39 +00:00
ovsdb.py Ensure ovsdb_probe_interval set before connect() 2020-11-25 19:55:32 +00:00
server.py [OVN] Only account for bound ports in metadata agent 2021-04-27 10:05:17 +00:00