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

Bug #2068893 reported by Sahid Orentino
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Medium
Unassigned

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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/nova/+/921665

Changed in nova:
status: New → In Progress
Revision history for this message
sean mooney (sean-k-mooney) wrote :

this is a feature not a bug setting the triage state to opinion

Changed in nova:
status: In Progress → Opinion
Revision history for this message
sean mooney (sean-k-mooney) wrote :

talksing about this a little more on irc

this issue is in the resource tracker not the scheduled as i orgianlly thought
this is similar to https://bugzilla.redhat.com/show_bug.cgi?id=2283075

currently the resource tracker is caching the set of sharing agggates it is a part of.

in some cases this is very large and can hit limits in the loadblancer or webserver.

sahid's proposal is to paginate the request which may be valided.

currently its not clear that the cached data in the resouce tracker is actually required and as such removal of this cached data might also be an option.

setting this to medium as the work around for now is to increase the max request size on the webserver or loadbalnacer.

the current limit is deployment tool specififc.

tags: added: resource-tracker
Changed in nova:
importance: Undecided → Medium
status: Opinion → Triaged
Changed in nova:
status: Triaged → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.