openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #17321
Re: Discussion / proposal: Ability to reset tenant's quotas to default
Hi Glynn,
My point was that if a user is currently configured to have a quota of 50 VMs, and the default is currently configured to be 20 VMs then there is a difference between "configuring the user to have a quota of 20" and "configuring a user to have the default quota". The first is just a subsequent update to give a user a different but still specific quota value, whereas the second undoes any quota value that has been specifically assigned. And the intent here is the second case.
Perhaps quota delete would be a more appropriate description (and the right way to implement this in the API) ?
Cheers,
Phil
-----Original Message-----
From: Eoghan Glynn [mailto:eglynn@xxxxxxxxxx]
Sent: 09 October 2012 17:32
To: Day, Phil
Cc: openstack@xxxxxxxxxxxxxxxxxxx; Vijaya Erukala
Subject: Re: [Openstack] Discussion / proposal: Ability to reset tenant's quotas to default
> Isn't that just changing one custom limit with another ?
>
> A true reset to the defaults would see the user stay in step with any
> changes to the default values.
Do you mean configured changes to the defaults?
AFAIK 'nova quota-defaults' returns the current set of defaults, which seems to be the logical point to reset against.
> > 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@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~openstack
> > More help : https://help.launchpad.net/ListHelp
> >
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References