Comment 10 for bug 1939432

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/train)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/806573
Committed: https://opendev.org/openstack/neutron/commit/722b9b57e1ff91200636db45e515ca52a769736c
Submitter: "Zuul (22348)"
Branch: stable/train

commit 722b9b57e1ff91200636db45e515ca52a769736c
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Aug 11 09:13:55 2021 +0000

    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 668b1cc652f076e555ef1fc1289684367159186a)
    (cherry picked from commit 816aca60b90b89038863d6974b5a9e0ee8983424)
    (cherry picked from commit 1eb6b8926a7a5ad442c5af6057c042999e2645f1)
    (cherry picked from commit f315f85a7b0ead30877e19988db4e4f80fc960e9)