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

Akihiko Ota skywalker.37th at gmail.com
Sun Jan 29 02:14:11 PST 2012


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

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



More information about the Users mailing list