← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2068893] Re: 414 Request-Too-Long when using _get_sharing_providers with a large number of UUIDs

 

Reviewed:  https://review.opendev.org/c/openstack/nova/+/921665
Committed: https://opendev.org/openstack/nova/commit/f254729a565222be00cf2fe1edc44e6cf10bfae6
Submitter: "Zuul (22348)"
Branch:    master

commit f254729a565222be00cf2fe1edc44e6cf10bfae6
Author: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@xxxxxxxxxxxxxxxxxxxxxxxx>
Date:   Mon Jun 10 15:11:31 2024 +0200

    scheduler: fix _get_sharing_providers to support unlimited aggr
    
    A Request-Too-Long error can be raised in case of too many aggregates
    are attached to a host. The fix is to split the requests.
    
    The request is executed by host via a periodic task. Result is set in
    cache so no performances impact is expected.
    
    The change introduce a new compute configuration option
    `compute.sharing_providers_max_uuids_per_request = 200`.
    
    Closes-bug: #2068893
    
    Change-Id: I1355c0813cb99067ead60f9835938566289beb20
    Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@xxxxxxxxxxxxxxxxxxxxxxxx>


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2068893

Title:
  414 Request-Too-Long when using _get_sharing_providers with a large
  number of UUIDs

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  The scheduler is reporting error when calling placement in situation
  of hosts running into many aggregates

  The web server returns a 414 Request-Too-Long error because the size
  of the URL in the GET request exceeds the allowed limit.

  The proposed fix is some modifications in _get_sharing_providers
  function to divide the agg_uuids list into groups of a maximum of 100
  UUIDs per GET request. The division ensures that the size of each
  request remains below the allowed limit, resolving the issue of the
  414 Request-Too-Long error.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2068893/+subscriptions



References