[OVN] Try to bind ports only to the ovn-controller agents
Patch [1] added getting ovn agents from the agents cache and check
if agent is alive to bound port to it.
Small issue with it was that it could check e.g. ovn metadata agent from
the host as it was only filtering agents by the host on which they are.
This patch adds filter on the agent_type so only ovn-controller agents
are taken from the cache.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/853635 /opendev. org/openstack/ neutron/ commit/ 601b01f82b6fcaa 699eda556c80942 08fd20f10b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit 601b01f82b6fcaa 699eda556c80942 08fd20f10b
Author: Slawek Kaplonski <email address hidden>
Date: Wed Aug 17 14:00:33 2022 +0200
[OVN] Try to bind ports only to the ovn-controller agents
Patch [1] added getting ovn agents from the agents cache and check
if agent is alive to bound port to it.
Small issue with it was that it could check e.g. ovn metadata agent from
the host as it was only filtering agents by the host on which they are.
This patch adds filter on the agent_type so only ovn-controller agents
are taken from the cache.
[1] https:/ /review. opendev. org/c/openstack /neutron/ +/825428
Related-Bug: #1958501 80656a22fb078bb e6273b5fc70 6f29d7671599675 5cb1777dd0)
Change-Id: If065204d7521c4
(cherry picked from commit eda45de8391597b