neutron/neutron/tests/unit/common
Rodolfo Alonso Hernandez f315f85a7b 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)
2021-08-30 13:10:01 +00:00
..
ovn Rely on worker count for HashRing caching 2021-05-06 09:07:38 +00:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
moved_globals_code1.py debtcollector for globals 2016-08-30 10:18:19 -04:00
moved_globals_code2.py debtcollector for globals 2016-08-30 10:18:19 -04:00
moved_globals_target.py debtcollector for globals 2016-08-30 10:18:19 -04:00
test__deprecate.py debtcollector for globals 2016-08-30 10:18:19 -04:00
test_cache_utils.py Fix return correct cache when reusing port 2020-03-27 16:48:57 +04:00
test_coordination.py Add a generic coordination lock mechanism 2019-06-06 09:56:58 +08:00
test_ipv6_utils.py Start using oslo_utils.netutils.is_ipv6_enabled() 2019-10-16 21:44:56 -04:00
test_utils.py Do not fail if the agent load is not bumped 2021-08-30 13:10:01 +00:00