[one-users] quota module throws error on image creation with opennebula 3.2

Graeme Gillies graeme.r.gillies at gmail.com
Sun Jan 22 16:44:43 PST 2012


Hi,

I have enabled/attempting to use the quota module in opennebula 3.2 on
a RHEL 6 machine which has ruby-1.8.7.352-3.el6.x86_64, and everything
works fine except for when I try to create a new image, It gives me a
permission denied error, with the following error in the log

Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4
/usr/lib/one/ruby/quota.rb:85:in `round': wrong number of arguments (1
for 0) (ArgumentError)

Mon Jan 23 10:28:54 2012 [AuM][I]: /usr/lib/one/ruby/quota.rb:85:in
`round': wrong number of arguments (1 for 0) (ArgumentError)
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 from
/usr/lib/one/ruby/quota.rb:85

Mon Jan 23 10:28:54 2012 [AuM][I]: from /usr/lib/one/ruby/quota.rb:85
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 from
/usr/lib/one/ruby/quota.rb:348:in `call'

Mon Jan 23 10:28:54 2012 [AuM][I]: from /usr/lib/one/ruby/quota.rb:348:in `call'
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 from
/usr/lib/one/ruby/quota.rb:348:in `get_resources'

Mon Jan 23 10:28:54 2012 [AuM][I]: from
/usr/lib/one/ruby/quota.rb:348:in `get_resources'
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 from
/usr/lib/one/ruby/quota.rb:347:in `each'

Mon Jan 23 10:28:54 2012 [AuM][I]: from /usr/lib/one/ruby/quota.rb:347:in `each'
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 from
/usr/lib/one/ruby/quota.rb:347:in `get_resources'

Mon Jan 23 10:28:54 2012 [AuM][I]: from
/usr/lib/one/ruby/quota.rb:347:in `get_resources'
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 from
/usr/lib/one/ruby/quota.rb:241:in `check_quotas'

Mon Jan 23 10:28:54 2012 [AuM][I]: from
/usr/lib/one/ruby/quota.rb:241:in `check_quotas'
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 from
/usr/lib/one/ruby/quota.rb:237:in `authorize'

Mon Jan 23 10:28:54 2012 [AuM][I]: from
/usr/lib/one/ruby/quota.rb:237:in `authorize'
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 from
/var/lib/one/remotes/auth/quota/authorize:58

Mon Jan 23 10:28:54 2012 [AuM][I]: from
/var/lib/one/remotes/auth/quota/authorize:58
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 from
/var/lib/one/remotes/auth/quota/authorize:52:in `each'

Mon Jan 23 10:28:54 2012 [AuM][I]: from
/var/lib/one/remotes/auth/quota/authorize:52:in `each'
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 from
/var/lib/one/remotes/auth/quota/authorize:52

Mon Jan 23 10:28:54 2012 [AuM][I]: from
/var/lib/one/remotes/auth/quota/authorize:52
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: LOG I 4 ExitCode: 1

Mon Jan 23 10:28:54 2012 [AuM][I]: ExitCode: 1
Mon Jan 23 10:28:54 2012 [AuM][D]: Message received: AUTHORIZE FAILURE 4 -

Mon Jan 23 10:28:54 2012 [AuM][E]: Auth Error:
Mon Jan 23 10:28:54 2012 [ReM][E]: [ImageAllocate] User [1] not
authorized to perform action on image.

Having a quick poke around the internet it looks like the problem is
ruby 1.8 round function doesn't take any arguments (but it does in 1.9
and above). I'm assuming this is an easy fix for someone to change
line 85 of /usr/lib/one/ruby/quota.rb to be 1.8 compatible?

Regards,

Graeme



More information about the Users mailing list