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@industrialdiscipline.com>
This commit is contained in:
Sahid Orentino Ferdjaoui
2024-06-10 15:11:31 +02:00
parent c0ff2386ed
commit f254729a56
4 changed files with 101 additions and 29 deletions
@@ -0,0 +1,7 @@
---
fixes:
- |
Introduced a new compute configuration option
`sharing_providers_max_uuids_per_request` and applied a fix to
handle the "Request-Too-Long" error that can occur when querying
the placement API with a large number of aggregate UUIDs.