[openstack-dev] About the response parameters of the API List volumes

Matt Riedemann mriedem at linux.vnet.ibm.com
Fri Oct 30 15:45:16 UTC 2015



On 10/27/2015 9:57 PM, chenying wrote:
> hi, Folks
>
> The API: GET/v2/​{tenant_id}​/volumes  List volumes
>
> When we use the tenant admin to list all the created volumes, we can
> list all tenant's volumes. But the response parameters do not include
>
> the parameter tenant_id. For a administrator, it is reasonable to see
> the the tenant_id of a volume form the response.
>
> So why don't we add the tenant_id to the response parameters of this
> API? What's the reason? Thanks.
>
>
> Best regard.
> chenying(IRC)
> ying.chen at huawei.com
>
>
>
> __________________________________________________________________________
> 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
>

It might just be an oversight. There is a similar issue with listing all 
tenant server groups as an admin in nova, and a spec was proposed [1]. 
To fix that, we use microversions (in nova). Cinder is working toward 
microversion support in Mitaka I believe be able to easily make API 
changes like this which are otherwise backward incompatible since you're 
changing the response.

[1] https://review.openstack.org/#/c/209917/

-- 

Thanks,

Matt Riedemann




More information about the OpenStack-dev mailing list