[one-users] Error from quota module when trying to create a vm or instantiate a template
Daniel Molina
dmolina at opennebula.org
Fri Dec 16 09:04:50 PST 2011
Hi Graeme,
On 15 December 2011 05:26, Graeme Gillies <graeme.r.gillies at gmail.com> wrote:
> Hi,
>
> I've done some more investigating and I've got a handle on what the problem is.
>
> My VM templates don't define a CPU attribute (as I'm just letting it
> use the default values) and therefore the code errors out trying to
> get a CPU value from my vm template which don't have one.
>
You are right. This bug was fixed in the master branch using the
following patch.
https://gist.github.com/9218f1b5b5fc19bc58ec
The problem of this patch is that the CPU of these VMs will be ignored
(known issue). We will move the quota system to the OpenNebula core in
the short-term. Meanwhile I think this patch should do the trick
adding a new default param for VMs without CPU. (I have not tested
it).
https://gist.github.com/93213ab62fce831b758f
Kind regards
> This sounds like a bug to me, I'm assuming I should file it at
> dev.opennebula.org?
>
> Regards,
>
> Graeme
>
> On Mon, Dec 5, 2011 at 3:36 PM, Graeme Gillies
> <graeme.r.gillies at gmail.com> wrote:
>> Hi,
>>
>> I have enabled the quota module on my opennebula 3 installation and
>> now whenever I try and create a vm image, either from a template or
>> file from disk, I get the quota module denying me. I have checked the
>> quota limits for the user are ok. Running the command from the
>> oned.log with ruby debug gives the following error message
>>
>> /var/lib/one/remotes/auth/quota/authorize:38: warning: ambiguous first
>> argument; put parentheses or even spaces
>> /var/lib/one/remotes/auth/quota/authorize:57: warning: ambiguous first
>> argument; put parentheses or even spaces
>> Exception `LoadError' at /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1113
>> - no such file to load -- rubygems/defaults/operating_system
>> Exception `LoadError' at
>> /usr/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:50 - no such file
>> to load -- Win32API
>> Exception `NoMethodError' at /usr/lib/ruby/1.8/rational.rb:78 -
>> undefined method `gcd' for Rational(1, 2):Rational
>> Exception `LoadError' at
>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such
>> file to load -- nokogiri
>> Exception `LoadError' at
>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such
>> file to load -- xmlparser
>> Exception `LoadError' at
>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - no such
>> file to load -- xmlparser
>> Exception `LoadError' at
>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such
>> file to load -- sequel
>> /usr/lib/ruby/gems/1.8/gems/sequel-3.29.0/lib/sequel/model/base.rb:817:
>> warning: `*' interpreted as argument prefix
>> /usr/lib/ruby/gems/1.8/gems/sequel-3.29.0/lib/sequel/model/base.rb:631:
>> warning: instance variable @dataset not initialized
>> /usr/lib/ruby/gems/1.8/gems/sequel-3.29.0/lib/sequel/model/base.rb:631:
>> warning: instance variable @dataset not initialized
>> Exception `LoadError' at
>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such
>> file to load -- sqlite3
>> Exception `LoadError' at
>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such
>> file to load -- sqlite3/1.8/sqlite3_native
>> Exception `LoadError' at
>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - no such
>> file to load -- sqlite3/1.8/sqlite3_native
>> Exception `SQLite3::SQLException' at
>> /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.3/lib/sqlite3/database.rb:91 -
>> index quotas_uid_index already exists
>> Exception `Sequel::DatabaseError' at
>> /usr/lib/ruby/gems/1.8/gems/sequel-3.29.0/lib/sequel/database/misc.rb:254
>> - SQLite3::SQLException: index quotas_uid_index already exists
>> Exception `SQLite3::SQLException' at
>> /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.3/lib/sqlite3/database.rb:91 -
>> index usage_uid_index already exists
>> Exception `Sequel::DatabaseError' at
>> /usr/lib/ruby/gems/1.8/gems/sequel-3.29.0/lib/sequel/database/misc.rb:254
>> - SQLite3::SQLException: index usage_uid_index already exists
>> /usr/lib/ruby/gems/1.8/gems/sequel-3.29.0/lib/sequel/dataset/actions.rb:130:
>> warning: instance variable @row_proc not initialized
>> /usr/lib/ruby/gems/1.8/gems/sequel-3.29.0/lib/sequel/dataset/actions.rb:130:
>> warning: instance variable @row_proc not initialized
>> Exception `TypeError' at /usr/lib/one/ruby/quota.rb:199 - can't
>> convert nil into Float
>> /usr/lib/one/ruby/quota.rb:199:in `Float': can't convert nil into
>> Float (TypeError)
>> from /usr/lib/one/ruby/quota.rb:199:in `send'
>> from /usr/lib/one/ruby/quota.rb:199:in `check_quotas'
>> from /usr/lib/one/ruby/quota.rb:194:in `each'
>> from /usr/lib/one/ruby/quota.rb:194:in `check_quotas'
>> from /usr/lib/one/ruby/quota.rb:184:in `authorize'
>> from /var/lib/one/remotes/auth/quota/authorize:53
>> from /var/lib/one/remotes/auth/quota/authorize:52:in `each'
>> from /var/lib/one/remotes/auth/quota/authorize:52
>>
>> output for onequota show 1
>>
>> uid cpu memory num_vms storage
>> 1 0/3 5120/10240 4/10 0/20480
>>
>> Any help would be much appreciated.
>>
>> Regards,
>>
>> Graeme
> _______________________________________________
> 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