<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-07-26 1:43 GMT+08:00 Chris Friesen <span dir="ltr"><<a href="mailto:chris.friesen@windriver.com" target="_blank">chris.friesen@windriver.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 07/25/2018 10:29 AM, William M Edmonds wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Ghanshyam Mann <<a href="mailto:gmann@ghanshyammann.com" target="_blank">gmann@ghanshyammann.com</a>> wrote on 07/25/2018 05:44:46 AM:<br>
... snip ...<br>
 > 1. is it ok to show the keypair used info via API ? any original<br>
 > rational not to do so or it was just like that from starting.<br>
<br>
keypairs aren't tied to a tenant/project, so how could nova track/report a quota<br>
for them on a given tenant/project? Which is how the API is constructed... note<br>
the "tenant_id" in GET /os-quota-sets/{tenant_id}/det<wbr>ail<br>
<br>
 > 2. Because this change will show the keypair used quota information<br>
 > in API's existing filed 'in_use', it is API behaviour change (not<br>
 > interface signature change in backward incompatible way) which can<br>
 > cause interop issue. Should we bump microversion for this change?<br>
<br>
If we find a meaningful way to return in_use data for keypairs, then yes, I<br>
would expect a microversion bump so that callers can distinguish between a)<br>
talking to an older installation where in_use is always 0 vs. b) talking to a<br>
newer installation where in_use is 0 because there are really none in use. Or if<br>
we remove keypairs from the response, which at a glance seems to make more<br>
sense, that should also have a microversion bump so that someone who expects the<br>
old response format will still get it.<br>
</blockquote>
<br></div></div>
Keypairs are weird in that they're owned by users, not projects.  This is arguably wrong, since it can cause problems if a user boots an instance with their keypair and then gets removed from a project.<br>
<br>
Nova microversion 2.54 added support for modifying the keypair associated with an instance when doing a rebuild.  Before that there was no clean way to do it.</blockquote><div><br></div><div>I don't understand this, we didn't count the keypair usage with the instance together, we just count the keypair usage for specific user.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888"><br>
<br>
Chris</font></span><div class="HOEnZb"><div class="h5"><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.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</div></div></blockquote></div><br></div></div>