Ups, I missed this was solved in the "onehost create Error" thread.

Hector

En Tue, 24 Jan 2012 00:07:05 +0100, Hector Sanjuan <[email protected]> escribió:

If the log doesnt offer more info try running connect to cadlab and run "/var/tmp/one/im/run_probes xen" there directly. It may offer more information.

Hector

En Mon, 16 Jan 2012 15:23:50 +0100, Mohit Dhingra <[email protected]> escribió:

Thanks Hector. All those problems are now resolved. I have been able to
create VMs, by onevm, and sunstone is also running, also onevnet is running
fine.

Now I am getting some other error related to onehost create.

I am using following onehost command. :
oneadmin@cadlab:~/etc> onehost create cadlab im_xen vmm_xen tm_ssh

It gets to error state after some time.

Logs from oned.log
----------------------------------------------------------------------------------------------------------------
Mon Jan 16 19:46:52 2012 [VMM][I]: Loading Virtual Machine Manager drivers.
Mon Jan 16 19:46:52 2012 [VMM][I]:      Loading driver: vmm_xen (XEN)
Mon Jan 16 19:46:53 2012 [VMM][I]:      Driver vmm_xen loaded.
Mon Jan 16 19:46:53 2012 [InM][I]: Loading Information Manager drivers.
Mon Jan 16 19:46:53 2012 [InM][I]:      Loading driver: im_xen
Mon Jan 16 19:46:53 2012 [InM][I]:      Driver im_xen loaded
Mon Jan 16 19:46:53 2012 [TM][I]: Loading Transfer Manager drivers.
Mon Jan 16 19:46:53 2012 [VMM][I]:      Loading driver: tm_ssh
Mon Jan 16 19:46:53 2012 [TM][I]:       Driver tm_ssh loaded.
Mon Jan 16 19:46:53 2012 [HKM][I]: Loading Hook Manager driver.
Mon Jan 16 19:46:53 2012 [HKM][I]:      Hook Manager loaded
Mon Jan 16 19:46:53 2012 [ImM][I]: Loading Image Manager driver.
Mon Jan 16 19:46:53 2012 [ImM][I]:      Image Manager loaded
Mon Jan 16 19:47:04 2012 [ReM][D]: HostPoolInfo method invoked
Mon Jan 16 19:47:04 2012 [InM][I]: Monitoring host cadlab (8)
Mon Jan 16 19:47:05 2012 [InM][I]: Command execution fail: 'if [ -x
"/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes xen 8
cadlab; else                              exit 42; fi'
Mon Jan 16 19:47:05 2012 [InM][I]: ExitCode: 254
Mon Jan 16 19:47:05 2012 [InM][E]: Error monitoring host 8 : MONITOR
FAILURE 8 -
----------------------------------------------------------------------------------------------------------------------

oned.conf file contains following configuration :
IM_MAD = [
    name       = "im_xen",
    executable = "one_im_ssh",
    arguments  = "xen" ]
VM_MAD = [
    name       = "vmm_xen",
    executable = "one_vmm_exec",
    arguments  = "-t 15 -r 0 xen",
    default    = "vmm_exec/vmm_exec_xen.conf",
    type       = "xen" ]
TM_MAD = [
    name       = "tm_ssh",
    executable = "one_tm",
    arguments  = "tm_ssh/tm_ssh.conf" ]


*
----------------------------
Thanks & Regards
Mohit Dhingra
+919611190435*


On 14 January 2012 17:03, Hector Sanjuan <[email protected]> wrote:

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<http://opennebula.org/documentation:rel3.0:sunstone#sunstone-serverconf>

Hope it helps,

Hector

En Sat, 14 Jan 2012 12:06:12 +0100, Mohit Dhingra <[email protected]>
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@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@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





--
Hector Sanjuan
OpenNebula Developer
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to