[one-users] Error from quota module when trying to create a vm or instantiate a template

Graeme Gillies graeme.r.gillies at gmail.com
Sun Dec 4 21:36:14 PST 2011


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



More information about the Users mailing list