Hi Graeme

On 23 January 2012 01:44, Graeme Gillies <graeme.r.gill...@gmail.com> wrote:
> 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?
>

Indeed, that is the problem, I have created a new issue to fix it.

http://dev.opennebula.org/issues/1079

Thanks for your feedback

> Regards,
>
> Graeme
> _______________________________________________
> Users mailing list
> Users@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 | dmol...@opennebula.org | @OpenNebula
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to