<div dir="ltr">Hi Timur,<div><br></div><div>Did you try this Cinder API [1]?  Here [2] is cinderclient output.</div><div><br></div><div><br></div><div><br></div><div>[1] <a href="https://github.com/openstack/python-cinderclient/blob/master/cinderclient/v2/quotas.py#L33">https://github.com/openstack/python-cinderclient/blob/master/cinderclient/v2/quotas.py#L33</a></div><div>[2] <a href="http://paste.openstack.org/show/482225/">http://paste.openstack.org/show/482225/</a></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Regards,<br>Ivan Kolodyazhny,<br><a href="http://blog.e0ne.info/" target="_blank">http://blog.e0ne.info/</a></div></div></div></div>
<br><div class="gmail_quote">On Thu, Dec 17, 2015 at 8:41 PM, Timur Sufiev <span dir="ltr"><<a href="mailto:tsufiev@mirantis.com" target="_blank">tsufiev@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, folks!<div><br></div><div>I'd like to initiate a discussion of the feature request I'm going to make on behalf of Horizon to every core OpenStack service which supports Quota feature, namely Cinder, Nova and Neutron. </div><div><br></div><div>Although all three services' APIs support special calls to get current quota limitations (Nova and Cinder allows to get and update both per-tenant and default cloud-wide limitations, Neutron allows to do it only for per-tenant limitations), there is no special call in any of these services to get current per-tenant usage of quota. Because of that Horizon needs to get, say for 'volumes' quota, a list of Cinder volumes in the current tenant and then just calculate its length [1]. When there are really a lot of entities in tenant - instances/volumes/security groups/whatever - all this calls sum up and make rendering pages in Horizon much more slower than it could be. Is it possible to provide special API calls to alleviate this?</div><div><br></div><div>[1] <a href="https://github.com/openstack/horizon/blob/9.0.0.0b1/openstack_dashboard/usage/quotas.py#L350" target="_blank">https://github.com/openstack/horizon/blob/9.0.0.0b1/openstack_dashboard/usage/quotas.py#L350</a></div></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>