Reviewed: https://review.openstack.org/607321 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=3eb967784bbe1c1668d22fdb8cee65dc2417103c Submitter: Zuul Branch: stable/ocata
commit 3eb967784bbe1c1668d22fdb8cee65dc2417103c Author: EdLeafe <email address hidden> Date: Fri Feb 3 15:32:55 2017 +0000
Add check for invalid inventory amounts
This patch adds sane minimum and maximums to the fields for an inventory posting, which will quickly return a 400 error if invalid values are passed instead of proceeding, only to fail at the DB layer.
Conflicts: nova/tests/functional/api/openstack/placement/gabbits/inventory.yaml
Partial-Bug: #1673227
Change-Id: I6296cee6b8a4be1dd53c52f6290ebda926cf6465 (cherry picked from commit 0b2d7c4d028104d3a2a0d5851b194eface707ec3)
Reviewed: https:/ /review. openstack. org/607321 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3eb967784bb e1c1668d22fdb8c ee65dc2417103c
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit 3eb967784bbe1c1 668d22fdb8cee65 dc2417103c
Author: EdLeafe <email address hidden>
Date: Fri Feb 3 15:32:55 2017 +0000
Add check for invalid inventory amounts
This patch adds sane minimum and maximums to the fields for an inventory
posting, which will quickly return a 400 error if invalid values are
passed instead of proceeding, only to fail at the DB layer.
Conflicts: tests/functiona l/api/openstack /placement/ gabbits/ inventory. yaml
nova/
Partial-Bug: #1673227
Change-Id: I6296cee6b8a4be 1dd53c52f6290eb da926cf6465 3a2a0d5851b194e face707ec3)
(cherry picked from commit 0b2d7c4d028104d