← Back to team overview

openstack team mailing list archive

Re: control user quota

 

nova-manage
http://nova.openstack.org/runnova/nova.manage.html

nova-manage project quota <projectname>

example :
#list xin-project 's quota
$>nova-manage project quota xin-project
Will return several key/value

#modify a key with new value

$>nova-manage project quota xin-project --key=???  --value=???

https://github.com/openstack/nova/blob/master/nova/quota.py

For configuration flags please refer to the above link of quota.py


Xin Zhao <xzhao@xxxxxxx> 於 2012年4月13日上午12:15 寫道:

>  Hi Kuo,
>
> Could you give more details, like the commands used, and settings in the
> config file ? I can't find a good example for them.
>
> Thanks,
> Xin
>
>
> On 4/12/2012 12:04 PM, Kuo Hugo wrote:
>
> I did a quick test in Essex .
> The process almost same as before(Cactus/Diablo)
>
>  1. Manage Quota for a specified "Tenant" from nova-manage .
> 2. Manage Default Quota parameters from nova.conf with several flags
> 3. Hacking Nova source code quota.py for default values.
>
>
>
>  Hope it helps.
>
>
>
> Xin Zhao <xzhao@xxxxxxx> 於 2012年4月12日下午10:27 寫道:
>
>> Hello,
>>
>> I try to assign quota to individual users, to control how many instances
>> each user can run concurrently. But I don't see a doc describing how to do
>> that. I use diablo release.
>> Any help or doc pointer will be greatly appreciated.
>>
>> Xin
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
>
>  --
> +Hugo Kuo+
> tonytkdk@xxxxxxxxx
>  + <tonytkdk@xxxxxxxxx>886 935004793
>
>
>


-- 
+Hugo Kuo+
tonytkdk@xxxxxxxxx
+ <tonytkdk@xxxxxxxxx>886 935004793

Follow ups

References