[Openstack] Discussion / proposal: Ability to reset tenant's quotas to default

Eoghan Glynn eglynn at redhat.com
Tue Oct 9 16:17:41 UTC 2012


> HI All,
> 
> 
> 
> I would like to open a discussion on a topic user should have a
> option to reset the tenant’s quotas( to the default).


Hi Vijaya,

I don't think a new nova command is needed for this use-case,
just add a simple custom script:

  nova quota-update `nova quota-defaults $1 | tail -n +4 | tr '_' '-' | awk '/|/ {printf(" --%s %s", $2,$4)}'` $1

then call with the tenant ID as command line arg.

Cheers,
Eoghan
  

> 
> 
> 
> At present nova client has following commands for the quota
> operation.
> 
> 
> 
> $nova --help | grep quota
> 
> quota-defaults List the default quotas for a tenant.
> 
> quota-show List the quotas for a tenant.
> 
> quota-update Update the quotas for a tenant.
> 
> 
> 
> It will be very helpful to have a command to reset quota values to
> defaults .
> 
> For ex: User who wants to do huge tests on the system and rollback
> once the test is done.
> 
> So my proposal is to add a new command quota-reset to the nova client
> which reverts the quota value supplied for the tenant ,to the
> default.
> 
> Some thing similar to nova quota-reset( <tenant-id > <key>)
> 
> Let me know your suggestion/thoughts on the same.
> 
> 
> 
> Thanks,
> 
> Vijaya
> 
> 
> 
> DISCLAIMER ========== This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Ltd. It is intended only for the use of the individual or entity to
> which it is addressed. If you are not the intended recipient, you
> are not authorized to read, retain, copy, print, distribute or use
> this message. If you have received this communication in error,
> please notify the sender and delete all copies of this message.
> Persistent Systems Ltd. does not accept any liability for virus
> infected mails.
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>




More information about the Openstack mailing list