[one-users] Errors using OpenNebula CLI & Sunstone

Hector Sanjuan hsanjuan at opennebula.org
Sat Jan 14 03:33:15 PST 2012


Hello,

regarding your problem with sunstone server, log says you are missing the  
gem sequel.

Regarding the problems with the DB, you can check the permissions of  
/var/lib/one/one.db, so that it is owned and writable by oneadmin.

Also, if I'm correct you are using OpenNebula >=3.0. The -H option in  
sunstone-server command will have no effect since the host is specified in  
/etc/one/sunstone-server.conf. More info here  
http://opennebula.org/documentation:rel3.0:sunstone#sunstone-serverconf

Hope it helps,

Hector

En Sat, 14 Jan 2012 12:06:12 +0100, Mohit Dhingra  
<mohitdhingras at gmail.com> escribió:

> *Hello All,*
>
> I am getting lots of errors while running sunstone server, using CLI for
> creating VMs on OpenNebula.
>
> 1. Sunstone-server
>
> I am getting following error while starting sustone-server.
>
> cadlab:/srv/cloud3/one/
> network_templates # sunstone-server start -H 10.112.10.50
> Error executing /srv/cloud3/one/lib/sunstone/sunstone-server.rb, please
> check the log /srv/cloud3/one/var/sunstone.log
>
> where sunstone.log file says :
>
> /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in
> `gem_original_require': no such file to load -- sequel (LoadError)
>         from
> /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in  
> `require'
>         from /srv/cloud3/one/lib/ruby/acct/watch_helper.rb:18
>         from
> /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in
> `gem_original_require'
>         from
> /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in  
> `require'
>         from /srv/cloud3/one/lib/ruby/acct/watch_client.rb:18
>         from
> /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in
> `gem_original_require'
>         from
> /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in  
> `require'
>         from /srv/cloud3/one/lib/sunstone/models/SunstoneServer.rb:20
>         from
> /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in
> `gem_original_require'
>         from
> /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:29:in  
> `require'
>         from /srv/cloud3/one/lib/sunstone/sunstone-server.rb:51
>
> Ruby version that is installed is ruby 1.8.7 (2011-02-18 patchlevel 334)
> [x86_64-linux]
>
> 2. onevnet
>
> Then using CLI, I am trying to start VMs, for that, I am trying to add
> virtual network.
>
> oneadmin at cadlab:~/network_templates> onevnet create public_network
> [VirtualNetworkAllocate] Error allocating a new virtual network. Can not
> update Virtual Network.
>
> where, public_network file contains :
> NAME = "Public"
> TYPE = FIXED
> PUBLIC = YES
>
> #We have to bind this network to ''eth0'' for Internet Access
> BRIDGE = eth0
>
> LEASES = [IP=10.112.10.51]
> LEASES = [IP=10.112.10.52]
> LEASES = [IP=10.112.10.53]
> LEASES = [IP=10.112.10.54]
>
> #Custom Attributes to be used in Context
> GATEWAY = 10.112.10.1
> DNS     = 10.16.25.15
>
> And, when I check oned.logs file, it says :
> at Jan 14 12:48:10 2012 [ONE][E]: SQL command was: INSERT INTO leases  
> (oid,
> ip, body) VALUES
> (0,175114803,'<LEASE><IP>175114803</IP><MAC_PREFIX>512</MAC_PREFIX><MAC_SUFFIX>175114803</MAC_SUFFIX><USED>0</USED><VID>-1</VID></LEASE>'),
> error: attempt to write a readonly database
>
> I am trying to run as a oneadmin.
>
> 3. Similary when I try to run
> oneadmin at cadlab:~/vm_templates> onevm create SUSEvm.one
> [VirtualMachineAllocate] Error allocating a new virtual machine. Could  
> not
> get virtual network for VM.
>
>
>
> Can somebody please help me out in figuring out the problem.
> *
> ----------------------------
> Thanks & Regards
> Mohit Dhingra
> *


-- 
Hector Sanjuan
OpenNebula Developer



More information about the Users mailing list