Comment 6 for bug 1714072

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

Reviewed: https://review.openstack.org/499270
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=10f8a9aa127cfaecab368e26c3b896e203e301bc
Submitter: Jenkins
Branch: master

commit 10f8a9aa127cfaecab368e26c3b896e203e301bc
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