charm-neutron-api/unit_tests
Dmitrii Shcherbakov a155e9cf11 Use AZLeastRoutersScheduler by default
Neutron uses an AZ-unaware scheduler (LeastRoutersScheduler) by default
in its configuration and the neutron-api charm does not override it.

AZLeastRoutersScheduler inherits from LeastRoutersScheduler and does the
same, plus respects AZ hints when scheduling HA routers.

For --distributed --ha routers using AZLeastRoutersScheduler means that
snat namespaces will be scheduled with respect to the AZ hints specified
during router creation by an operator.

For --ha but not distributed routers using AZLeastRoutersScheduler means
that qrouter namespaces will be scheduled with respect to the AZ hints.

snat namespaces (--ha & --distributed) and qrouter namespaces (--ha
only) are placed by the scheduler to l3 agents that run in the dvr_snat
mode only so the scheduler change will affect both the deployments with
neutron-gateway units and the ones with neutron-openvswitch running with
use-dvr-snat=True.

Change-Id: I98cd67ff0cf5418a9699acc7aff96c3edb9b2341
Closes-Bug: #1886195
2020-11-09 20:17:17 +03:00
..
__init__.py Remove deploy from source support 2018-01-10 15:41:05 +00:00
test_actions_openstack_upgrade.py Remove deploy from source support 2018-01-10 15:41:05 +00:00
test_actions.py Re-license charm as Apache-2.0 2016-07-03 17:47:52 +01:00
test_neutron_api_context.py Use AZLeastRoutersScheduler by default 2020-11-09 20:17:17 +03:00
test_neutron_api_hooks.py Merge "Enable hardware offload support" 2020-03-20 10:09:06 +00:00
test_neutron_api_utils.py Fix db init notifications 2020-08-26 13:49:52 +01:00
test_utils.py Fix lint in unit test 2018-11-01 14:58:45 -05:00