nova/nova/api/openstack/placement
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
..
handlers [placement] Require at least one allocation when PUT 2017-08-07 13:22:54 +00:00
__init__.py Add initial framing of placement API 2016-07-29 10:31:36 +00:00
auth.py Add support for resource_providers urls 2016-08-16 13:24:44 +00:00
deploy.py [placement] fix typo in call to create auth middleware 2017-01-05 20:34:17 +00:00
handler.py placement: REST API for resource classes 2016-12-05 16:13:49 +00:00
microversion.py Expose a REST API for a specific list of RPs 2017-01-13 17:57:29 -05:00
policy.py Remove Rules.load_json warning 2016-12-30 15:27:37 -05:00
requestlog.py [placement] clean up some nits in the requestlog middleware 2016-09-07 09:23:02 +00:00
rest_api_version_history.rst Mark compute/placement REST API max microversions for Ocata 2017-02-02 20:15:18 -05:00
util.py placement: REST API for resource classes 2016-12-05 16:13:49 +00:00
wsgi.py [placement] Fix misleading comment in wsgi loader 2016-09-05 13:14:02 +00:00