[one-users] Errors using OpenNebula CLI & Sunstone

Mohit Dhingra mohitdhingras at gmail.com
Sat Jan 14 03:06:12 PST 2012


*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
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120114/a41975c3/attachment-0001.htm>


More information about the Users mailing list