neutron/neutron/tests/unit
Lucas Alvares Gomes e6d150ef7d [OVN] Enhanced external port scheduling
This patch introduces a new configuration for OVN CMS Options called
"enable-chassis-as-extport-host". This configuration can be used
by ML2/OVN to identify nodes that are eligible for scheduling OVN's
external ports.

Prior to this patch, external ports were always scheduled on centralized
networked nodes tagged with the "enable-chassis-as-gw" flag in the OVN
CMS Options but, when it comes to deploying OpenStack on OpenShift
requiring services such as the OVN Metadata Agent or DHCP Agent to
serve those external ports and running them on control plane nodes are
not ideal. This is where this patch comes handy allowing these ports to
have more flexibility in where they are scheduled.

The patch is also backward compatible and if the new configuration is
not present on the OVN CMS Options, ML2/OVN will continue to schedule
the external ports on nodes configured with the previous configuration
like always.

Documentation will be updated on a follow up patch.

Conflicts:
  neutron/common/ovn/utils.py
  neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/impl_idl_ovn.py

Note about this backport: This backport includes the
is_additional_chassis_supported() method from utils.py that was introduced
by another patch: https://review.opendev.org/c/openstack/neutron/+/895402

Closes-Bug: 2037294
Change-Id: Ic46d847e3aebfe543d5a7ab49d18d1f1abf1342e
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
(cherry picked from commit 770914f98d)
2023-12-05 14:25:43 +00:00
..
agent [DHCP agent] Fetch OVN Metadata port from plugin 2023-11-27 05:26:22 +00:00
api Merge "Delete sg rule which remote is the deleted sg" 2023-07-01 05:12:35 +00:00
cmd Make "project_id" in "L3HARouterNetwork" unique constraint 2023-05-10 09:15:05 +02:00
common [OVN] Enhanced external port scheduling 2023-12-05 14:25:43 +00:00
conf Add extra router attributes for ECMP and BFD 2023-07-25 17:03:34 +02:00
core_extensions Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
db Merge "Prevent internal IP change for floating IP" 2023-09-13 14:09:44 +00:00
extensions Default SG rules - use new rules templates to create rules for SGs 2023-08-30 10:18:19 +00:00
hacking Remove "six" library 2020-07-28 16:55:52 +00:00
ipam Remove exception ``IpAddressAllocationNotFound`` 2022-03-16 16:48:06 +00:00
notifiers [sqlalchemy-20] Use the correct OVO field type 2023-07-12 18:00:57 +00:00
objects Merge "For hosts in DVR mode, only fetch bound FIPs" 2023-08-10 03:03:29 +00:00
pecan_wsgi Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
plugins [OVN] Enhanced external port scheduling 2023-12-05 14:25:43 +00:00
privileged Catch non-existent entry failures better in ip_lib 2023-11-15 22:07:07 +00:00
quota Initialize config in DietTestCase class 2023-07-19 12:58:58 +02:00
scheduler Use the new network HA parameter 2023-08-25 08:43:37 +00:00
services Revert "[OVN][Trunk] Add port binding info on subport when parent is bound" 2023-09-27 14:38:05 +00:00
tests Merge "Replace assertItemsEqual with assertCountEqual" 2021-04-26 19:12:38 +00:00
__init__.py Don't set use_stderr to False for tests 2017-04-15 01:41:29 +00:00
_test_extension_portbindings.py [S-RBAC] Switch to new policies by default 2023-04-21 16:22:42 +02:00
dummy_plugin.py Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
extension_stubs.py
fake_resources.py [OVN] Enhanced external port scheduling 2023-12-05 14:25:43 +00:00
test_auth.py Fix deprecation warnings about oslo.context 2022-08-13 09:08:00 +00:00
test_manager.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_neutron_plugin_base_v2.py Add unit test to validate non DB base core plugin can be loaded 2017-11-15 21:21:35 +00:00
test_opts.py Provide the rpc_response_max_timeout parameter to sriov-agent 2021-06-06 23:56:14 +09:00
test_policy.py Fix policy unit test deprecation warnings 2023-03-01 15:26:12 -05:00
test_service.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_worker.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_wsgi.py Fix a deprecation warning about escape sequence 2022-08-13 19:03:19 +09:00
testlib_api.py [Fullstack] Use new DB for each running test 2023-08-30 12:16:51 +02:00