<div dir="ltr">Hi Sean,<div>applying quotas using "--force" is used by operators when it's required to reduce a quota that's been used by a user.</div><div>Ex: user has 10 instances running in the project but now the operator wants to set the quota 5 without asking the user to delete instances.</div><div><br></div><div>I see this as important functionality for operators.</div><div>It's supported by nova client but not by the openstack client. Reducing the feature gap between them it will easy operations.</div><div><br></div><div>cheers,<br></div><div>Belmiro</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 19, 2020 at 4:20 PM Sean Mooney <<a href="mailto:smooney@redhat.com">smooney@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Thu, 2020-03-19 at 16:19 +0530, jayaditya gupta wrote:<br>
> Hello all, new contributor/developer here. I have just submitted a bug for<br>
> python-openstackclient project :<br>
> <a href="https://storyboard.openstack.org/#!/story/2007440" rel="noreferrer" target="_blank">https://storyboard.openstack.org/#!/story/2007440</a><br>
> <br>
> I am not sure how to provide --force option to openstackclient ..<br>
> <br>
> I am comparing quota.py files in nova-client and in openstackclient.but<br>
> can't seem to understand how to provide --force option. Any suggestions?<br>
<br>
at leas when it comes to some nova action we intentionally do not want to support --force<br>
for thing like migration<br>
specifcally for live migration we removed --force in microversion 2.68<br>
<a href="https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id62" rel="noreferrer" target="_blank">https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id62</a><br>
so since osc never supported --force we dont want it to be enabled.<br>
<br>
for "openstack quota set" i dont think we have specifically disucced if we want to support --force<br>
before. <br>
we deprecated the proxing of quotas via nova in micro-version 2.36<br>
<a href="https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#microversion" rel="noreferrer" target="_blank">https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#microversion</a><br>
<br>
2.39 <a href="https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id36" rel="noreferrer" target="_blank">https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id36</a><br>
2.50 <a href="https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id46" rel="noreferrer" target="_blank">https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id46</a><br>
2.57 <a href="https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id53" rel="noreferrer" target="_blank">https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id53</a><br>
also modifed quotas in different ways.<br>
<br>
non of these microversion remove the force parameter like we did with live migration so it hink it would<br>
be valid to add support for --force.<br>
<br>
however nova and keystone are currently working on removing support for nova based quotas using the unified<br>
limits proposal<br>
<br>
<a href="https://specs.openstack.org/openstack/nova-specs/specs/ussuri/approved/unified-limits-nova.html" rel="noreferrer" target="_blank">https://specs.openstack.org/openstack/nova-specs/specs/ussuri/approved/unified-limits-nova.html</a><br>
<a href="https://specs.openstack.org/openstack/keystone-specs/specs/keystone/ongoing/unified-limits.html" rel="noreferrer" target="_blank">https://specs.openstack.org/openstack/keystone-specs/specs/keystone/ongoing/unified-limits.html</a><br>
<br>
so i dont know if we have disucsed how that will impact the openstack clint and if we will deprecate<br>
"openstack quota set" and intoduce a "openstack limit set" to interact with the new api or if we will<br>
use a microverion but maintain the same cli.<br>
<br>
i dont know if the unified limits api will support a force paramater. i hope its not nessisary to have a force paramter<br>
with the new design so while there is no conflict i am awere of wehre exposing --force might encurage usage that the<br>
nova team does not want opertors to do, im not sure it would be consitent with the future direction.<br>
<br>
so tentative +0.5 from me in terms of closing the gap for older openstack releases <br>
but i think it would be good to have the unified limit folks also way in on if it should<br>
be added and how that will interact with the current planned changes.<br>
> <br>
> Best Regards<br>
<br>
<br>
</blockquote></div>