commit 2b82aa3a9978ecb31632fae6b400d7fe9137c01b
Author: Chris Dent <email address hidden>
Date: Wed Aug 30 20:30:19 2017 +0100
[placement] Require at least one resource class in allocation
If an allocation was made with an empty resources object, a 500 response
code would result. This change adjusts the schema to use minProperties
of 1 to say there must be at least one resource class and value pair in
the allocation. If there is not a 400 response is returned.
As this is fixing 500 response to a useful error, no microversion is
required. A previous gabbi file which demonstrated the problem has been
updated to demonstrate that the problem has been fixed.
Change-Id: I7d9c64c77586564fb3bdbe92c693bd2a1bc06f24
Closes-Bug: #1714072
(cherry picked from commit 10f8a9aa127cfaecab368e26c3b896e203e301bc)
Reviewed: https:/ /review. openstack. org/499616 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=2b82aa3a997 8ecb31632fae6b4 00d7fe9137c01b
Committed: https:/
Submitter: Jenkins
Branch: stable/pike
commit 2b82aa3a9978ecb 31632fae6b400d7 fe9137c01b
Author: Chris Dent <email address hidden>
Date: Wed Aug 30 20:30:19 2017 +0100
[placement] Require at least one resource class in allocation
If an allocation was made with an empty resources object, a 500 response
code would result. This change adjusts the schema to use minProperties
of 1 to say there must be at least one resource class and value pair in
the allocation. If there is not a 400 response is returned.
As this is fixing 500 response to a useful error, no microversion is
required. A previous gabbi file which demonstrated the problem has been
updated to demonstrate that the problem has been fixed.
Change-Id: I7d9c64c7758656 4fb3bdbe92c693b d2a1bc06f24 cab368e26c3b896 e203e301bc)
Closes-Bug: #1714072
(cherry picked from commit 10f8a9aa127cfae