<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-07-25 17:44 GMT+08:00 Ghanshyam Mann <span dir="ltr"><<a href="mailto:gmann@ghanshyammann.com" target="_blank">gmann@ghanshyammann.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
During today API office hour, we were discussing about keypair quota usage bug (newton) [1]. key_pair 'in_use' quota is always 0 even when request per user which is because it is being set as 0 always [2].<br>
<br>
>From checking the history and review discussion on [3], it seems that it was like that from staring. key_pair quota is being counted when actually creating the keypair but it is not shown in API 'in_use' field. Vishakha (assignee of this bug) is currently planing to work on this bug and before that we have few queries:<br>
<br>
1. is it ok to show the keypair used info via API ? any original rational not to do so or it was just like that from starting.  <br></blockquote><div><br></div><div>It doesn't make sense to show the usage when the user queries project quota, but it makes sense to show the usage when the user queries specific user quota. And we have no way to show usage for the server_group_memebers/security_group_rules, since they are the limit for a specific server group and security group, we have no way to express that in our quota API.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
2. Because this change will show the keypair used quota information in API's existing filed 'in_use', it is API behaviour change (not interface signature change in backward incompatible way) which can cause interop issue. Should we bump microversion for this change? <br></blockquote><div><br></div><div>If we are going to bump microversion, I prefer to set the usage to -1 for server_group_member/security_group_rules usage, since 0 is really confuse for the end user.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[1] <a href="https://bugs.launchpad.net/nova/+bug/1644457" rel="noreferrer" target="_blank">https://bugs.launchpad.net/<wbr>nova/+bug/1644457</a> <br>
[2] <a href="https://github.com/openstack/nova/blob/bf497cc47497d3a5603bf60de652054ac5ae1993/nova/quota.py#L189" rel="noreferrer" target="_blank">https://github.com/openstack/<wbr>nova/blob/<wbr>bf497cc47497d3a5603bf60de65205<wbr>4ac5ae1993/nova/quota.py#L189</a> <br>
[3] <a href="https://review.openstack.org/#/c/446239/" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/446239/</a><br>
<br>
-gmann<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>______________<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.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</blockquote></div><br></div></div>