<div dir="ltr">Does the described behavior qualify as a bug?<div><br></div><div>Thanks,</div><div>-Ravi.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 3, 2013 at 5:21 PM, Ravi Chunduru <span dir="ltr"><<a href="mailto:ravivsn@gmail.com" target="_blank">ravivsn@gmail.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">Hi,<div>  In my tests, I observed that when an admin of a tenant runs 'nova list' to list down all the servers of the tenant - nova-api makes a call to quantum to get_ports with filter set to device owner. This operation is taking about 1m 30s in our setup(almost having 100 VMs i.e > 100 ports) </div>


<div><br></div><div>While a user of a tenant runs the same command, the response is immediate.</div><div><br></div><div>Going into details - the only difference between those two operations is the 'role'. </div><div>


<br></div><div>Looking into the code, I have the following questions</div><div>1) Scoped Admin token returned all entries of a resource. Any reason not filtered per tenant? </div><div>Comparing with Nova - it always honored tenant from the scoped token and returns values specific to tenant.</div>


<div><br></div><div>2) In the above described test, the DB access should not take much time with or with out tenant-id in filter. Why change in response time for tenant admin or a member user?</div><div><br></div><div>Thanks,</div>


<div>-Ravi.</div><div><br></div><div><br clear="all"><div><br></div><br>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ravi<br>
</div>