[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/ +/901024 /opendev. org/openstack/ neutron/ commit/ c51d6d117af4c73 9106903f5a525b8 2434893cff
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit c51d6d117af4c73 9106903f5a525b8 2434893cff
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
Conflicts:
neutron/ plugins/ ml2/drivers/ ovn/mech_ driver/ mech_driver. py
neutron/ tests/unit/ plugins/ ml2/drivers/ ovn/mech_ driver/ test_mech_ driver. py
Related-Bug: #1958501 80656a22fb078bb e6273b5fc70 6f29d7671599675 5cb1777dd0) 699eda556c80942 08fd20f10b)
Change-Id: If065204d7521c4
(cherry picked from commit eda45de8391597b
(cherry picked from commit 601b01f82b6fcaa