[one-users] ONE 3.2 Default Quotas are ignored?

Daniel Molina dmolina at opennebula.org
Mon Jan 30 03:26:22 PST 2012


Hi,

On 29 January 2012 11:14, Akihiko Ota <skywalker.37th at gmail.com> wrote:
> Hi,
>
> I have configured Quotas according to the documentation [1] on my
> OpenNebula 3.2. Explicit User Quotas are working correctly. But it
> seems Default Quotas configured in the quota.conf
> (/srv/cloud/one/etc/auth/quota.conf) is ignored.
> Is this a quota's bug? or my mistake?
>
> I built OpenNebula 3.2 from source on CentOS 5.7 (x86_64). I am
> using ruby-1.9.3-p0 built from source instead of CentOS 5.7 RPM.
> Installation directory is self-contained. DB backend is sqlite.
>
> I configured quota.conf as follows:
>
> :db: sqlite:///srv/cloud/one/var/onequota.db
> :defaults:
>  :cpu: 4
>  :memory: 1024
>  :num_vms: 1
>  :storage: 10240

Would you mind try using uppercase keys? If this fixes the problem I
will change these values in the conf file and documentation.

Cheers

>
> and restarted oned. But users can get resources more than described in
> quota.conf. Then I set special quotas for user "testuser" as follow:
>
> $ onequota set testuser cpu,memory,num_vms,storage 4,1024,1,10240
>
> This quota works correctly.
>
> [ascadm at frontend]% oneuser list
>  ID GROUP    NAME            AUTH                PASSWORD
>   2 users    testuser        core                  (snip)
> [ascadm at frontend]% onevm create quotatest.one
> [VirtualMachineAllocate] User [2] : CPU quota exceeded (Quota: 4.0,
> Used: 0.0, Requested: 8.0); MEMORY quota exceeded (Quota: 1024, Used:
> 0, Requested: 22528).
>
> Thanks,
>
> [1] http://opennebula.org/documentation:rel3.2:quota_auth
>
> --
> Akihiko Ota
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula



More information about the Users mailing list