neutron/neutron/scheduler
Rodolfo Alonso Hernandez 722b9b57e1 Do not fail if the agent load is not bumped
When a new network and its first subnet is created, the DHCP agent
bumps the "load" parameter to reflect the number of networks handled.
This "load" parameter is modified when:
- As commented, when the first subnet of a network is created. The
  "load" value is bumped.
- When periodically the DHCP agent sends the status, informing about
  the current number of networks handled.

If during the subnet creation this "load" value is not updated, it will
be in the next periodic update of the agent.

This "load" value is used by the scheduler to equally distribute the
objects to be managed by any agent type (DHCP agents manage networks).

The bug refers to DHCP but is valid for any other agent.

Conflicts:
      neutron/common/utils.py
      neutron/scheduler/base_resource_filter.py

Change-Id: Ief402048d99d40b64d81fcf58eb2e39b1ba7ebbb
Closes-Bug: #1939432
(cherry picked from commit 668b1cc652)
(cherry picked from commit 816aca60b9)
(cherry picked from commit 1eb6b8926a)
(cherry picked from commit f315f85a7b)
2021-08-30 13:11:41 +00: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:11:41 +00:00
base_scheduler.py Add debug information to AutoScheduler and BaseScheduler 2019-05-30 09:58:11 +00:00
dhcp_agent_scheduler.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
l3_agent_scheduler.py Switch to new engine facade for Schedulers 2019-06-12 19:46:25 +00:00