nova/nova/api/openstack/placement/handlers
Chris Dent c95cd011d0 [placement] Require at least one allocation when PUT
When doing a PUT to /allocations/{consumer_uuid} if the list of
allocations is empty there is a 500 error coming from an uncaught
IndexError.

Adjust the schema to require at least one allocation. If no allocations
are provided in the list, the response will be a 400.

This doesn't require a microversion because it is changing a 500 to
a useful response.

Change-Id: I361fa1e534d7b20c985558e272b672b84c6fe439
Closes-Bug: #1708260
(cherry picked from commit 9155da345e)
2017-08-07 13:22:54 +00:00
..
__init__.py Add initial framing of placement API 2016-07-29 10:31:36 +00:00
aggregate.py [py35] Fixes to get rally scenarios working 2017-01-13 15:44:00 +00:00
allocation.py [placement] Require at least one allocation when PUT 2017-08-07 13:22:54 +00:00
inventory.py [py35] Fixes to get rally scenarios working 2017-01-13 15:44:00 +00:00
resource_class.py [py35] Fixes to get rally scenarios working 2017-01-13 15:44:00 +00:00
resource_provider.py Merge "placement: validate member_of values are uuids" 2017-01-18 04:28:31 +00:00
root.py [py35] Fixes to get rally scenarios working 2017-01-13 15:44:00 +00:00
usage.py [py35] Fixes to get rally scenarios working 2017-01-13 15:44:00 +00:00