[openstack-dev] [nova] placement/resource providers update 4

Sylvain Bauza sbauza at redhat.com
Wed Dec 7 08:40:02 UTC 2016



Le 07/12/2016 01:07, melanie witt a écrit :
> On Tue, 6 Dec 2016 16:04:14 -0500, Jay Pipes wrote:
>> We're discussing only doing:
>>
>>  GET /resource_providers?<simple non-JSON query params>
>>
>> Once we start doing claims in the scheduler, we'll have the ability to
>> do:
>>
>>  POST /allocations
>>  {
>>     <more complex JSON body specifying requested resources, traits, and
>> all kinds of stuff :)>
>>  }
> 
> Thanks. FWIW, I'm not against simple non-JSON query params.
> 
> The last time we discussed this, I was against the idea of JSON blobs in
> query params from a usability standpoint and it was noted that GET with
> a request body isn't guaranteed to be forwarded properly when going
> through proxies because it's not described in the HTTP specification. So
> with that information, I thought POST as a read to e.g.
> /resource_providers/list was the best compromise.
> 
> That all arose because complex JSON bodies were described as a
> possibility for RP list requests. If that's not the case, then I didn't
> think we need to consider POST.
> 

FWIW, I think POST is not that complex and allows us to have room for
further request information like traits, without defeating the purpose
to have something RESTful.

The proposal is up, comments welcome
https://review.openstack.org/#/c/392569/

-Sylvain

> -melanie
> 
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list