neutron/neutron/scheduler
Rodolfo Alonso Hernandez 984503d4d0 Improve scheduling L3/DHCP agents, missing lower binding indexes
This patch is covering an edge case that could happen when the number
of DHCP agents ("dhcp_agents_per_network") or L3 agents
("max_l3_agents_per_router") has been reduced and there are more agents
assigned than the current number. If the user removes any agent
assignation from a L3 router or a DHCP agent, it is possible to remove
first the lower binding assigned registers.

Now the method ``get_vacant_binding_index`` calculates the number of
agents bound and the number required. If a new one is needed, the
method returns first the lower binding indexes not used.

Closes-Bug: #2006496

Conflicts:
    neutron/common/_constants.py
    neutron/objects/l3agent.py

Change-Id: I25145c088ffdca47acfcb7add02b1a4a615e4612
(cherry picked from commit 5250598c80)
(cherry picked from commit 0920f17f47)
(cherry picked from commit 7dcf8be112)
2023-02-13 18:09:08 +01:00
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base_resource_filter.py Do not fail if the agent load is not bumped 2021-08-30 13:07:13 +00:00
base_scheduler.py Improve scheduling L3/DHCP agents, missing lower binding indexes 2023-02-13 18:09:08 +01:00
dhcp_agent_scheduler.py Improve scheduling L3/DHCP agents, missing lower binding indexes 2023-02-13 18:09:08 +01:00
l3_agent_scheduler.py Improve scheduling L3/DHCP agents, missing lower binding indexes 2023-02-13 18:09:08 +01:00
l3_ovn_scheduler.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00