Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-25 Thread Tino Vazquez
Hi,

Let's see what happens if the driver is executed by hand, please send
the output of:

$ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
INIT
MONITOR 0  -

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Tue, Apr 19, 2011 at 2:50 AM, Hoang Dinh Phuc  wrote:
>
> Hello all,
>
>  I've already installed OpenNebula 2.2 on CentOS and add KVM host to
> OpenNebula. Now, i want to add ESX Server (VMWARE) to be managed by the
> OpenNebula. But it make an error. Here is my oned.conf:
>
> VM_MAD = [
>     name   = "vmm_vmware",
>     executable = "one_vmm_sh",
>     arguments  = "vmware",
>     default    = "vmm_sh/vmm_sh_vmware.conf",
>     type   = "vmware" ]
>
>
> #---
> #  VMware Driver Addon Information Driver Manager Configuration
> #---
> IM_MAD = [
>   name   = "im_vmware",
>   executable = "one_im_sh",
>   arguments  = "vmware" ]
> #   arguments = "--username oneadmin --password ' ' " ]
> #---
>
> #---
> # VMware Driver Addon Transfer Manager Driver Configuration
> #---
> TM_MAD = [
>     name   = "tm_vmware",
>     executable = "one_tm",
>     arguments  = "tm_vmware/tm_vmware.conf" ]
>
> When i'm using onehost command to add VMWARE Host, it make an error state.
> And here is the log
> $ onehost esxsrv im_vmware vmm_vmware tm_vmware
>
> Mon Apr 18 14:24:05 2011 [InM][I]: Monitoring host esxsrv (3)
> Mon Apr 18 14:24:05 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Apr 18 14:24:05 2011 [InM][D]: Host 3 successfully monitored.
> Mon Apr 18 14:24:05 2011 [ONE][E]: syntax error, unexpected $end, expecting
> VARIABLE at line 2, columns 1:2
> Mon Apr 18 14:24:05 2011 [InM][E]: Error parsing host information:
>
> Please show me the way to add VMWARE host to OpenNebula.
>
> Thanks so much.
> ---
> F:  Hoang Dinh Phuc
> E:  hdp...@gmail.com
> M: +84909398700
>
>
>
>
> --
> ---
> F:  Hoang Dinh Phuc
> E:  hdp...@gmail.com
> M: +84909398700
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-25 Thread Hoang Dinh Phuc
Hi Tino Vazquez,

I've ran the command

$ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb

But it don't return anything. Do i have to do anything?

Thanks

On 25 April 2011 21:19, Tino Vazquez  wrote:

> Hi,
>
> Let's see what happens if the driver is executed by hand, please send
> the output of:
>
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
> INIT
> MONITOR 0  -
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Tue, Apr 19, 2011 at 2:50 AM, Hoang Dinh Phuc  wrote:
> >
> > Hello all,
> >
> >  I've already installed OpenNebula 2.2 on CentOS and add KVM host to
> > OpenNebula. Now, i want to add ESX Server (VMWARE) to be managed by the
> > OpenNebula. But it make an error. Here is my oned.conf:
> >
> > VM_MAD = [
> > name   = "vmm_vmware",
> > executable = "one_vmm_sh",
> > arguments  = "vmware",
> > default= "vmm_sh/vmm_sh_vmware.conf",
> > type   = "vmware" ]
> >
> >
> >
> #---
> > #  VMware Driver Addon Information Driver Manager Configuration
> >
> #---
> > IM_MAD = [
> >   name   = "im_vmware",
> >   executable = "one_im_sh",
> >   arguments  = "vmware" ]
> > #   arguments = "--username oneadmin --password ' ' " ]
> >
> #---
> >
> >
> #---
> > # VMware Driver Addon Transfer Manager Driver Configuration
> >
> #---
> > TM_MAD = [
> > name   = "tm_vmware",
> > executable = "one_tm",
> > arguments  = "tm_vmware/tm_vmware.conf" ]
> >
> > When i'm using onehost command to add VMWARE Host, it make an error
> state.
> > And here is the log
> > $ onehost esxsrv im_vmware vmm_vmware tm_vmware
> >
> > Mon Apr 18 14:24:05 2011 [InM][I]: Monitoring host esxsrv (3)
> > Mon Apr 18 14:24:05 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> > Mon Apr 18 14:24:05 2011 [InM][D]: Host 3 successfully monitored.
> > Mon Apr 18 14:24:05 2011 [ONE][E]: syntax error, unexpected $end,
> expecting
> > VARIABLE at line 2, columns 1:2
> > Mon Apr 18 14:24:05 2011 [InM][E]: Error parsing host information:
> >
> > Please show me the way to add VMWARE host to OpenNebula.
> >
> > Thanks so much.
> > ---
> > F:  Hoang Dinh Phuc
> > E:  hdp...@gmail.com
> > M: +84909398700
> >
> >
> >
> >
> > --
> > ---
> > F:  Hoang Dinh Phuc
> > E:  hdp...@gmail.com
> > M: +84909398700
> >
> >
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
>



-- 
---
F:  Hoang Dinh Phuc
E:  hdp...@gmail.com
M: +84909398700
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread Tino Vazquez
Hi,

Yes please input the following two lines:

--
INIT
--

The answer should be

--
INIT SUCCESS
--

and the also enter the following

--
MONITOR 0  -
--

and send the output.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Tue, Apr 26, 2011 at 3:33 AM, Hoang Dinh Phuc  wrote:
> Hi Tino Vazquez,
>
> I've ran the command
>
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>
> But it don't return anything. Do i have to do anything?
>
> Thanks
>
> On 25 April 2011 21:19, Tino Vazquez  wrote:
>>
>> Hi,
>>
>> Let's see what happens if the driver is executed by hand, please send
>> the output of:
>>
>> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>> INIT
>> MONITOR 0  -
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Tue, Apr 19, 2011 at 2:50 AM, Hoang Dinh Phuc  wrote:
>> >
>> > Hello all,
>> >
>> >  I've already installed OpenNebula 2.2 on CentOS and add KVM host to
>> > OpenNebula. Now, i want to add ESX Server (VMWARE) to be managed by the
>> > OpenNebula. But it make an error. Here is my oned.conf:
>> >
>> > VM_MAD = [
>> >     name   = "vmm_vmware",
>> >     executable = "one_vmm_sh",
>> >     arguments  = "vmware",
>> >     default    = "vmm_sh/vmm_sh_vmware.conf",
>> >     type   = "vmware" ]
>> >
>> >
>> >
>> > #---
>> > #  VMware Driver Addon Information Driver Manager Configuration
>> >
>> > #---
>> > IM_MAD = [
>> >   name   = "im_vmware",
>> >   executable = "one_im_sh",
>> >   arguments  = "vmware" ]
>> > #   arguments = "--username oneadmin --password ' ' " ]
>> >
>> > #---
>> >
>> >
>> > #---
>> > # VMware Driver Addon Transfer Manager Driver Configuration
>> >
>> > #---
>> > TM_MAD = [
>> >     name   = "tm_vmware",
>> >     executable = "one_tm",
>> >     arguments  = "tm_vmware/tm_vmware.conf" ]
>> >
>> > When i'm using onehost command to add VMWARE Host, it make an error
>> > state.
>> > And here is the log
>> > $ onehost esxsrv im_vmware vmm_vmware tm_vmware
>> >
>> > Mon Apr 18 14:24:05 2011 [InM][I]: Monitoring host esxsrv (3)
>> > Mon Apr 18 14:24:05 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
>> > Mon Apr 18 14:24:05 2011 [InM][D]: Host 3 successfully monitored.
>> > Mon Apr 18 14:24:05 2011 [ONE][E]: syntax error, unexpected $end,
>> > expecting
>> > VARIABLE at line 2, columns 1:2
>> > Mon Apr 18 14:24:05 2011 [InM][E]: Error parsing host information:
>> >
>> > Please show me the way to add VMWARE host to OpenNebula.
>> >
>> > Thanks so much.
>> > ---
>> > F:  Hoang Dinh Phuc
>> > E:  hdp...@gmail.com
>> > M: +84909398700
>> >
>> >
>> >
>> >
>> > --
>> > ---
>> > F:  Hoang Dinh Phuc
>> > E:  hdp...@gmail.com
>> > M: +84909398700
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>> >
>
>
>
> --
> ---
> F:  Hoang Dinh Phuc
> E:  hdp...@gmail.com
> M: +84909398700
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread Hoang Dinh Phuc
Hi

Here is the output:

$ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
--
INIT
--INIT SUCCESS - -
--
MONITOR 0 esxsrv
Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
/srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
from /srv/cloud/one/lib/mads/one_im_sh.rb:85

It can't connect to my ESX Server. Please show me the way to check the
problems.

Thanks & Regards

On 26 April 2011 16:55, Tino Vazquez  wrote:

> Hi,
>
> Yes please input the following two lines:
>
> --
> INIT
> --
>
> The answer should be
>
> --
> INIT SUCCESS
> --
>
> and the also enter the following
>
> --
> MONITOR 0  -
> --
>
> and send the output.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Tue, Apr 26, 2011 at 3:33 AM, Hoang Dinh Phuc  wrote:
> > Hi Tino Vazquez,
> >
> > I've ran the command
> >
> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
> >
> > But it don't return anything. Do i have to do anything?
> >
> > Thanks
> >
> > On 25 April 2011 21:19, Tino Vazquez  wrote:
> >>
> >> Hi,
> >>
> >> Let's see what happens if the driver is executed by hand, please send
> >> the output of:
> >>
> >> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
> >> INIT
> >> MONITOR 0  -
> >>
> >> Regards,
> >>
> >> -Tino
> >>
> >> --
> >> Constantino Vázquez Blanco, MSc
> >> OpenNebula Major Contributor
> >> www.OpenNebula.org | @tinova79
> >>
> >>
> >>
> >> On Tue, Apr 19, 2011 at 2:50 AM, Hoang Dinh Phuc 
> wrote:
> >> >
> >> > Hello all,
> >> >
> >> >  I've already installed OpenNebula 2.2 on CentOS and add KVM host to
> >> > OpenNebula. Now, i want to add ESX Server (VMWARE) to be managed by
> the
> >> > OpenNebula. But it make an error. Here is my oned.conf:
> >> >
> >> > VM_MAD = [
> >> > name   = "vmm_vmware",
> >> > executable = "one_vmm_sh",
> >> > arguments  = "vmware",
> >> > default= "vmm_sh/vmm_sh_vmware.conf",
> >> > type   = "vmware" ]
> >> >
> >> >
> >> >
> >> >
> #---
> >> > #  VMware Driver Addon Information Driver Manager Configuration
> >> >
> >> >
> #---
> >> > IM_MAD = [
> >> >   name   = "im_vmware",
> >> >   executable = "one_im_sh",
> >> >   arguments  = "vmware" ]
> >> > #   arguments = "--username oneadmin --password ' ' " ]
> >> >
> >> >
> #---
> >> >
> >> >
> >> >
> #---
> >> > # VMware Driver Addon Transfer Manager Driver Configuration
> >> >
> >> >
> #---
> >> > TM_MAD = [
> >> > name   = "tm_vmware",
> >> > executable = "one_tm",
> >> > arguments  = "tm_vmware/tm_vmware.conf" ]
> >> >
> >> > When i'm using onehost command to add VMWARE Host, it make an error
> >> > state.
> >> > And here is the log
> >> > $ onehost esxsrv im_vmware vmm_vmware tm_vmware
> >> >
> >> > Mon Apr 18 14:24:05 2011 [InM][I]: Monitoring host esxsrv (3)
> >> > Mon Apr 18 14:24:05 2011 [ReM][D]: VirtualMachinePoolInfo method
> invoked
> >> > Mon Apr 18 14:24:05 2011 [InM][D]: Host 3 successfully monitored.
> >> > Mon Apr 18 14:24:05 2011 [ONE][E]: syntax error, unexpected $end,
> >> > expecting
> >> > VARIABLE at line 2, columns 1:2
> >> > Mon Apr 18 14:24:05 2011 [InM][E]: Error parsing host information:
> >> >
> >> > Please show me the way to add VMWARE host to OpenNebula.
> >> >
> >> > Thanks so much.
> >> > ---
> >> > F:  Hoang Dinh Phuc
> >> > E:  hdp...@gmail.com
> >> > M: +84909398700
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > ---
> >> > F:  Hoang Dinh Phuc
> >> > E:  hdp...@gmail.com
> >> > M: +84909398700
> >> >
> >> >
> >> > ___
> >> > Users mailing list
> >> > Users@lists.opennebula.org
> >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >> >
> >> >
> >
> >
> >
> > --
> > ---
> > F:  Hoang Dinh Phuc
> > E:  hdp...@gmail.com
> > M: +84909398700
> >
> >
>



-- 
---
F:  Hoang Dinh Phuc
E:  hdp...@gmail.com
M: +84909398700
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread Tim Dunlevy
Having the exact same issue here.


Here are the results I am getting:

[oneadmin@opennebula-01 mads]$ ruby -dw one_im_sh.rb INIT INIT SUCCESS - -

MONITOR 0 10.10.2.108 -

MONITOR SUCCESS 0

Exception `Interrupt' at /usr/lib/one/ruby/ActionManager.rb:168 - 
/usr/lib/one/ruby/ActionManager.rb:168:in `wait': Interrupt

from /usr/lib/one/ruby/ActionManager.rb:168:in `start_listener'

from /usr/lib/one/ruby/ActionManager.rb:166:in `synchronize'

from /usr/lib/one/ruby/ActionManager.rb:166:in `start_listener'

from /usr/lib/one/ruby/OpenNebulaDriver.rb:73:in `start_driver'

from one_im_sh.rb:85



[oneadmin@opennebula-01 mads]$ onehost list

  ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM STAT

   0 10.10.2.101   default04004004007.8G5.7G   on

   1 10.10.2.102   default04004004007.8G7.2G   on

   2 10.10.2.103   default04003994007.8G7.1G   on

   3 10.10.2.104   default04003994007.8G7.1G   on

   5 10.10.2.107   default14004003507.8G6.4G   on

   6 10.10.2.105   default04004004007.8G6.4G   on

  11 10.10.2.108   default0  0  0100  0K  0K  err

[oneadmin@opennebula-01 mads]$ tailf /var/log/one/oned.log Mon Apr 25 16:45:31 
2011 [InM][I]: Monitoring host 10.10.2.108 (11) Mon Apr 25 16:45:31 2011 
[InM][D]: Host 11 successfully monitored.

Mon Apr 25 16:45:31 2011 [ONE][E]: syntax error, unexpected $end, expecting 
VARIABLE at line 2, columns 1:2 Mon Apr 25 16:45:31 2011 [InM][E]: Error 
parsing host information:



Mon Apr 25 16:45:46 2011 [ReM][D]: HostPoolInfo method invoked Mon Apr 25 
16:45:46 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Mon Apr 25 
16:46:13 2011 [ReM][D]: HostPoolInfo method invoked Mon Apr 25 16:46:16 2011 
[ReM][D]: HostPoolInfo method invoked Mon Apr 25 16:46:16 2011 [ReM][D]: 
VirtualMachinePoolInfo method invoked



___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread antoni artigues
Hello

I have the same issue. With the latest version of OpenNebula and vmware
driver addon.

Here are the results:
$ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
INIT
INIT SUCCESS - -
MONITOR 0 oscarnode2 -
MONITOR SUCCESS 0 

So. Where is the problem? It's seems is a kind of bug.

Thanks in advance

Antoni Artigues

El mar, 26-04-2011 a las 07:38 -0400, Tim Dunlevy escribió:
> Having the exact same issue here.
> 
>  
> 
> Here are the results I am getting:
> 
> [oneadmin@opennebula-01 mads]$ ruby -dw one_im_sh.rb INIT INIT SUCCESS
> - -
> 
> MONITOR 0 10.10.2.108 - 
> 
> MONITOR SUCCESS 0
> 
> Exception `Interrupt' at /usr/lib/one/ruby/ActionManager.rb:168
> - /usr/lib/one/ruby/ActionManager.rb:168:in `wait': Interrupt
> 
> from /usr/lib/one/ruby/ActionManager.rb:168:in
> `start_listener'
> 
> from /usr/lib/one/ruby/ActionManager.rb:166:in `synchronize'
> 
> from /usr/lib/one/ruby/ActionManager.rb:166:in
> `start_listener'
> 
> from /usr/lib/one/ruby/OpenNebulaDriver.rb:73:in
> `start_driver'
> 
> from one_im_sh.rb:85
> 
>  
> 
> [oneadmin@opennebula-01 mads]$ onehost list
> 
>   ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEM
> FMEM STAT
> 
>0 10.10.2.101   default04004004007.8G
> 5.7G   on
> 
>1 10.10.2.102   default04004004007.8G
> 7.2G   on
> 
>2 10.10.2.103   default04003994007.8G
> 7.1G   on
> 
>3 10.10.2.104   default04003994007.8G
> 7.1G   on
> 
>5 10.10.2.107   default14004003507.8G
> 6.4G   on
> 
>6 10.10.2.105   default04004004007.8G
> 6.4G   on
> 
>   11 10.10.2.108   default0  0  0100  0K
> 0K  err
> 
> [oneadmin@opennebula-01 mads]$ tailf /var/log/one/oned.log Mon Apr 25
> 16:45:31 2011 [InM][I]: Monitoring host 10.10.2.108 (11) Mon Apr 25
> 16:45:31 2011 [InM][D]: Host 11 successfully monitored.
> 
> Mon Apr 25 16:45:31 2011 [ONE][E]: syntax error, unexpected $end,
> expecting VARIABLE at line 2, columns 1:2 Mon Apr 25 16:45:31 2011
> [InM][E]: Error parsing host information: 
> 
>  
> 
> Mon Apr 25 16:45:46 2011 [ReM][D]: HostPoolInfo method invoked Mon Apr
> 25 16:45:46 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Mon
> Apr 25 16:46:13 2011 [ReM][D]: HostPoolInfo method invoked Mon Apr 25
> 16:46:16 2011 [ReM][D]: HostPoolInfo method invoked Mon Apr 25
> 16:46:16 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> 
>  
> 
>  
> 
> 
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread Tino Vazquez
Dear Hoang,

My apologies, the test i was asking for was not complete (it was
lacking a paramenter to the mad).

In any case, I think the problem may be in the way ONE 2.0+ handles
the remotes. The VMware Addon only copies to
$ONE_LOCATION/lib/remotes, when it should copy also to
$ONE_LOCATION/var. I've opened a ticket [1] to keep track of the
solution.

Meanwhile, a workaround is to issue the following from the VMware
Addon installation directory:

$ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r im/remotes/*
$ONE_LOCATION/var/remotes/im/vmware.d
$ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r vmm/remotes/*
$ONE_LOCATION/var/remotes/vmm/vmware

Please let me know if this solves the issue.

Regards,

-Tino

[1] http://dev.opennebula.org/issues/593

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Tue, Apr 26, 2011 at 12:13 PM, Hoang Dinh Phuc  wrote:
> Hi
>
> Here is the output:
>
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
> --
> INIT
> --INIT SUCCESS - -
> --
> MONITOR 0 esxsrv
> Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
> /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
>     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
>     from /srv/cloud/one/lib/mads/one_im_sh.rb:85
>
> It can't connect to my ESX Server. Please show me the way to check the
> problems.
>
> Thanks & Regards
>
> On 26 April 2011 16:55, Tino Vazquez  wrote:
>>
>> Hi,
>>
>> Yes please input the following two lines:
>>
>> --
>> INIT
>> --
>>
>> The answer should be
>>
>> --
>> INIT SUCCESS
>> --
>>
>> and the also enter the following
>>
>> --
>> MONITOR 0  -
>> --
>>
>> and send the output.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Tue, Apr 26, 2011 at 3:33 AM, Hoang Dinh Phuc  wrote:
>> > Hi Tino Vazquez,
>> >
>> > I've ran the command
>> >
>> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>> >
>> > But it don't return anything. Do i have to do anything?
>> >
>> > Thanks
>> >
>> > On 25 April 2011 21:19, Tino Vazquez  wrote:
>> >>
>> >> Hi,
>> >>
>> >> Let's see what happens if the driver is executed by hand, please send
>> >> the output of:
>> >>
>> >> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>> >> INIT
>> >> MONITOR 0  -
>> >>
>> >> Regards,
>> >>
>> >> -Tino
>> >>
>> >> --
>> >> Constantino Vázquez Blanco, MSc
>> >> OpenNebula Major Contributor
>> >> www.OpenNebula.org | @tinova79
>> >>
>> >>
>> >>
>> >> On Tue, Apr 19, 2011 at 2:50 AM, Hoang Dinh Phuc 
>> >> wrote:
>> >> >
>> >> > Hello all,
>> >> >
>> >> >  I've already installed OpenNebula 2.2 on CentOS and add KVM host to
>> >> > OpenNebula. Now, i want to add ESX Server (VMWARE) to be managed by
>> >> > the
>> >> > OpenNebula. But it make an error. Here is my oned.conf:
>> >> >
>> >> > VM_MAD = [
>> >> >     name   = "vmm_vmware",
>> >> >     executable = "one_vmm_sh",
>> >> >     arguments  = "vmware",
>> >> >     default    = "vmm_sh/vmm_sh_vmware.conf",
>> >> >     type   = "vmware" ]
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > #---
>> >> > #  VMware Driver Addon Information Driver Manager Configuration
>> >> >
>> >> >
>> >> > #---
>> >> > IM_MAD = [
>> >> >   name   = "im_vmware",
>> >> >   executable = "one_im_sh",
>> >> >   arguments  = "vmware" ]
>> >> > #   arguments = "--username oneadmin --password ' ' " ]
>> >> >
>> >> >
>> >> > #---
>> >> >
>> >> >
>> >> >
>> >> > #---
>> >> > # VMware Driver Addon Transfer Manager Driver Configuration
>> >> >
>> >> >
>> >> > #---
>> >> > TM_MAD = [
>> >> >     name   = "tm_vmware",
>> >> >     executable = "one_tm",
>> >> >     arguments  = "tm_vmware/tm_vmware.conf" ]
>> >> >
>> >> > When i'm using onehost command to add VMWARE Host, it make an error
>> >> > state.
>> >> > And here is the log
>> >> > $ onehost esxsrv im_vmware vmm_vmware tm_vmware
>> >> >
>> >> > Mon Apr 18 14:24:05 2011 [InM][I]: Monitoring host esxsrv (3)
>> >> > Mon Apr 18 14:24:05 2011 [ReM][D]: VirtualMachinePoolInfo method
>> >> > invoked
>> >> > Mon Apr 18 14:24:05 2011 [InM][D]: Host 3 successfully monitored.
>> >> > Mon Apr 18 14:24:05 2011 [ONE][E]: syntax error, unexpected $end,
>> >> > expecting
>> >> > VARIABLE at line 2, columns 1:2
>> >> > Mon Apr 18 14:24:05 2011 [InM][

Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread Hoang Dinh Phuc
Hi,

Is any mistake in your command? I've change the path like this:

$ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r
*$ONE_LOCATION/lib/remotes/im/vmware.d/*
*$ONE_LOCATION/var/remotes/im/vmware.d

and

$ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r *
$ONE_LOCATION/lib/remotes/vmm/vmware/** $ONE_LOCATION/var/remotes/vmm/vmware

But it still get the error.

Regards

On 26 April 2011 22:20, Tino Vazquez  wrote:

> Dear Hoang,
>
> My apologies, the test i was asking for was not complete (it was
> lacking a paramenter to the mad).
>
> In any case, I think the problem may be in the way ONE 2.0+ handles
> the remotes. The VMware Addon only copies to
> $ONE_LOCATION/lib/remotes, when it should copy also to
> $ONE_LOCATION/var. I've opened a ticket [1] to keep track of the
> solution.
>
> Meanwhile, a workaround is to issue the following from the VMware
> Addon installation directory:
>
> $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r im/remotes/*
> $ONE_LOCATION/var/remotes/im/vmware.d
> $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r vmm/remotes/*
> $ONE_LOCATION/var/remotes/vmm/vmware
>
> Please let me know if this solves the issue.
>
> Regards,
>
> -Tino
>
> [1] http://dev.opennebula.org/issues/593
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Tue, Apr 26, 2011 at 12:13 PM, Hoang Dinh Phuc 
> wrote:
> > Hi
> >
> > Here is the output:
> >
> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
> > --
> > INIT
> > --INIT SUCCESS - -
> > --
> > MONITOR 0 esxsrv
> > Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
> > /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
> > from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
> > from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
> > from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
> > from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
> > from /srv/cloud/one/lib/mads/one_im_sh.rb:85
> >
> > It can't connect to my ESX Server. Please show me the way to check the
> > problems.
> >
> > Thanks & Regards
> >
> > On 26 April 2011 16:55, Tino Vazquez  wrote:
> >>
> >> Hi,
> >>
> >> Yes please input the following two lines:
> >>
> >> --
> >> INIT
> >> --
> >>
> >> The answer should be
> >>
> >> --
> >> INIT SUCCESS
> >> --
> >>
> >> and the also enter the following
> >>
> >> --
> >> MONITOR 0  -
> >> --
> >>
> >> and send the output.
> >>
> >> Regards,
> >>
> >> -Tino
> >>
> >> --
> >> Constantino Vázquez Blanco, MSc
> >> OpenNebula Major Contributor
> >> www.OpenNebula.org | @tinova79
> >>
> >>
> >>
> >> On Tue, Apr 26, 2011 at 3:33 AM, Hoang Dinh Phuc 
> wrote:
> >> > Hi Tino Vazquez,
> >> >
> >> > I've ran the command
> >> >
> >> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
> >> >
> >> > But it don't return anything. Do i have to do anything?
> >> >
> >> > Thanks
> >> >
> >> > On 25 April 2011 21:19, Tino Vazquez  wrote:
> >> >>
> >> >> Hi,
> >> >>
> >> >> Let's see what happens if the driver is executed by hand, please send
> >> >> the output of:
> >> >>
> >> >> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
> >> >> INIT
> >> >> MONITOR 0  -
> >> >>
> >> >> Regards,
> >> >>
> >> >> -Tino
> >> >>
> >> >> --
> >> >> Constantino Vázquez Blanco, MSc
> >> >> OpenNebula Major Contributor
> >> >> www.OpenNebula.org | @tinova79
> >> >>
> >> >>
> >> >>
> >> >> On Tue, Apr 19, 2011 at 2:50 AM, Hoang Dinh Phuc 
> >> >> wrote:
> >> >> >
> >> >> > Hello all,
> >> >> >
> >> >> >  I've already installed OpenNebula 2.2 on CentOS and add KVM host
> to
> >> >> > OpenNebula. Now, i want to add ESX Server (VMWARE) to be managed by
> >> >> > the
> >> >> > OpenNebula. But it make an error. Here is my oned.conf:
> >> >> >
> >> >> > VM_MAD = [
> >> >> > name   = "vmm_vmware",
> >> >> > executable = "one_vmm_sh",
> >> >> > arguments  = "vmware",
> >> >> > default= "vmm_sh/vmm_sh_vmware.conf",
> >> >> > type   = "vmware" ]
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> #---
> >> >> > #  VMware Driver Addon Information Driver Manager Configuration
> >> >> >
> >> >> >
> >> >> >
> #---
> >> >> > IM_MAD = [
> >> >> >   name   = "im_vmware",
> >> >> >   executable = "one_im_sh",
> >> >> >   arguments  = "vmware" ]
> >> >> > #   arguments = "--username oneadmin --password ' ' " ]
> >> >> >
> >> >> >
> >> >> >
> #---
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> #---
> >> >> > # VMware Driver Addon Transfer Manager Driver Configuration
> >> >> >
> >> >> >
> >> >> >
> #

Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread Tino Vazquez
Hi,

The commands should work without modification (note that they should
be run from inside the vmware addon installation folder), although
your modification should also work.

Could you send the output of

--
$ tree $ONE_LOCATION/var
--

and

--
$ $ONE_LOCATION/lib/mads/one_im_sh vmware
INIT
MONITOR 0  -
--

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Tue, Apr 26, 2011 at 6:09 PM, Hoang Dinh Phuc  wrote:
> Hi,
>
> Is any mistake in your command? I've change the path like this:
>
> $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r
> $ONE_LOCATION/lib/remotes/im/vmware.d/*
> $ONE_LOCATION/var/remotes/im/vmware.d
>
> and
>
> $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r
> $ONE_LOCATION/lib/remotes/vmm/vmware/* $ONE_LOCATION/var/remotes/vmm/vmware
>
> But it still get the error.
>
> Regards
>
> On 26 April 2011 22:20, Tino Vazquez  wrote:
>>
>> Dear Hoang,
>>
>> My apologies, the test i was asking for was not complete (it was
>> lacking a paramenter to the mad).
>>
>> In any case, I think the problem may be in the way ONE 2.0+ handles
>> the remotes. The VMware Addon only copies to
>> $ONE_LOCATION/lib/remotes, when it should copy also to
>> $ONE_LOCATION/var. I've opened a ticket [1] to keep track of the
>> solution.
>>
>> Meanwhile, a workaround is to issue the following from the VMware
>> Addon installation directory:
>>
>> $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r im/remotes/*
>> $ONE_LOCATION/var/remotes/im/vmware.d
>> $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r vmm/remotes/*
>> $ONE_LOCATION/var/remotes/vmm/vmware
>>
>> Please let me know if this solves the issue.
>>
>> Regards,
>>
>> -Tino
>>
>> [1] http://dev.opennebula.org/issues/593
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Tue, Apr 26, 2011 at 12:13 PM, Hoang Dinh Phuc 
>> wrote:
>> > Hi
>> >
>> > Here is the output:
>> >
>> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>> > --
>> > INIT
>> > --INIT SUCCESS - -
>> > --
>> > MONITOR 0 esxsrv
>> > Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
>> > /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in
>> > `start_listener'
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in
>> > `start_listener'
>> >     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in
>> > `start_driver'
>> >     from /srv/cloud/one/lib/mads/one_im_sh.rb:85
>> >
>> > It can't connect to my ESX Server. Please show me the way to check the
>> > problems.
>> >
>> > Thanks & Regards
>> >
>> > On 26 April 2011 16:55, Tino Vazquez  wrote:
>> >>
>> >> Hi,
>> >>
>> >> Yes please input the following two lines:
>> >>
>> >> --
>> >> INIT
>> >> --
>> >>
>> >> The answer should be
>> >>
>> >> --
>> >> INIT SUCCESS
>> >> --
>> >>
>> >> and the also enter the following
>> >>
>> >> --
>> >> MONITOR 0  -
>> >> --
>> >>
>> >> and send the output.
>> >>
>> >> Regards,
>> >>
>> >> -Tino
>> >>
>> >> --
>> >> Constantino Vázquez Blanco, MSc
>> >> OpenNebula Major Contributor
>> >> www.OpenNebula.org | @tinova79
>> >>
>> >>
>> >>
>> >> On Tue, Apr 26, 2011 at 3:33 AM, Hoang Dinh Phuc 
>> >> wrote:
>> >> > Hi Tino Vazquez,
>> >> >
>> >> > I've ran the command
>> >> >
>> >> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>> >> >
>> >> > But it don't return anything. Do i have to do anything?
>> >> >
>> >> > Thanks
>> >> >
>> >> > On 25 April 2011 21:19, Tino Vazquez  wrote:
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> Let's see what happens if the driver is executed by hand, please
>> >> >> send
>> >> >> the output of:
>> >> >>
>> >> >> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>> >> >> INIT
>> >> >> MONITOR 0  -
>> >> >>
>> >> >> Regards,
>> >> >>
>> >> >> -Tino
>> >> >>
>> >> >> --
>> >> >> Constantino Vázquez Blanco, MSc
>> >> >> OpenNebula Major Contributor
>> >> >> www.OpenNebula.org | @tinova79
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Tue, Apr 19, 2011 at 2:50 AM, Hoang Dinh Phuc 
>> >> >> wrote:
>> >> >> >
>> >> >> > Hello all,
>> >> >> >
>> >> >> >  I've already installed OpenNebula 2.2 on CentOS and add KVM host
>> >> >> > to
>> >> >> > OpenNebula. Now, i want to add ESX Server (VMWARE) to be managed
>> >> >> > by
>> >> >> > the
>> >> >> > OpenNebula. But it make an error. Here is my oned.conf:
>> >> >> >
>> >> >> > VM_MAD = [
>> >> >> >     name   = "vmm_vmware",
>> >> >> >     executable = "one_vmm_sh",
>> >> >> >     arguments  = "vmware",
>> >> >> >     default    = "vmm_sh/vmm_sh_vmware.conf",
>> >> >> >     type   = "vmware" ]
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > #---
>> >> >> > #  VMware Driver Addon Information Driver Manager Configuration

Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread Tino Vazquez
Dea all,

Please try the solution proposed in [1], and let us know wether it works.

Regards,

-Tino

[1] http://www.mail-archive.com/users@lists.opennebula.org/msg02723.html

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Tue, Apr 26, 2011 at 3:06 PM, antoni artigues  wrote:
> Hello
>
> I have the same issue. With the latest version of OpenNebula and vmware
> driver addon.
>
> Here are the results:
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
> INIT
> INIT SUCCESS - -
> MONITOR 0 oscarnode2 -
> MONITOR SUCCESS 0
>
> So. Where is the problem? It's seems is a kind of bug.
>
> Thanks in advance
>
> Antoni Artigues
>
> El mar, 26-04-2011 a las 07:38 -0400, Tim Dunlevy escribió:
>> Having the exact same issue here.
>>
>>
>>
>> Here are the results I am getting:
>>
>> [oneadmin@opennebula-01 mads]$ ruby -dw one_im_sh.rb INIT INIT SUCCESS
>> - -
>>
>> MONITOR 0 10.10.2.108 -
>>
>> MONITOR SUCCESS 0
>>
>> Exception `Interrupt' at /usr/lib/one/ruby/ActionManager.rb:168
>> - /usr/lib/one/ruby/ActionManager.rb:168:in `wait': Interrupt
>>
>>         from /usr/lib/one/ruby/ActionManager.rb:168:in
>> `start_listener'
>>
>>         from /usr/lib/one/ruby/ActionManager.rb:166:in `synchronize'
>>
>>         from /usr/lib/one/ruby/ActionManager.rb:166:in
>> `start_listener'
>>
>>         from /usr/lib/one/ruby/OpenNebulaDriver.rb:73:in
>> `start_driver'
>>
>>         from one_im_sh.rb:85
>>
>>
>>
>> [oneadmin@opennebula-01 mads]$ onehost list
>>
>>   ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM
>> FMEM STAT
>>
>>    0 10.10.2.101       default    0    400    400    400    7.8G
>> 5.7G   on
>>
>>    1 10.10.2.102       default    0    400    400    400    7.8G
>> 7.2G   on
>>
>>    2 10.10.2.103       default    0    400    399    400    7.8G
>> 7.1G   on
>>
>>    3 10.10.2.104       default    0    400    399    400    7.8G
>> 7.1G   on
>>
>>    5 10.10.2.107       default    1    400    400    350    7.8G
>> 6.4G   on
>>
>>    6 10.10.2.105       default    0    400    400    400    7.8G
>> 6.4G   on
>>
>>   11 10.10.2.108       default    0      0      0    100      0K
>> 0K  err
>>
>> [oneadmin@opennebula-01 mads]$ tailf /var/log/one/oned.log Mon Apr 25
>> 16:45:31 2011 [InM][I]: Monitoring host 10.10.2.108 (11) Mon Apr 25
>> 16:45:31 2011 [InM][D]: Host 11 successfully monitored.
>>
>> Mon Apr 25 16:45:31 2011 [ONE][E]: syntax error, unexpected $end,
>> expecting VARIABLE at line 2, columns 1:2 Mon Apr 25 16:45:31 2011
>> [InM][E]: Error parsing host information:
>>
>>
>>
>> Mon Apr 25 16:45:46 2011 [ReM][D]: HostPoolInfo method invoked Mon Apr
>> 25 16:45:46 2011 [ReM][D]: VirtualMachinePoolInfo method invoked Mon
>> Apr 25 16:46:13 2011 [ReM][D]: HostPoolInfo method invoked Mon Apr 25
>> 16:46:16 2011 [ReM][D]: HostPoolInfo method invoked Mon Apr 25
>> 16:46:16 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
>>
>>
>>
>>
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread Tim Dunlevy
After copying the files and attempting to re-create the host I get the 
following error in the oned.log:


[InM][I]: Command execution fail: /var/lib/one/remotes/im/run_probes vmware 
10.10.2.106

[InM][I]: STDERR follows.

[InM][I]: /usr/lib/one/ruby/OpenNebula/XMLUtils.rb:116:in `each': wrong number 
of arguments (1 for 0) (ArgumentError)

[InM][I]: from /usr/lib/one/ruby/OpenNebula/XMLUtils.rb:116:in 
`retrieve_elements'

[InM][I]: from ./vmware.rb:84

[InM][I]: ExitCode: 1

[InM][I]: Error monitoring host 15 : MONITOR FAILURE 15 Could not monitor host 
10.10.2.106

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread Tim Dunlevy
FYI -
Ruby is version 1.8.7

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-26 Thread Hoang Dinh Phuc
Hi Tino Vazquez,

here is the output of tree structure of $ONE_LOCATION/var:
$ tree $ONE_LOCATION/var
|-- config
|-- images
|   |-- 28c86878bdc6af8c34dd94efcf31c15ee6eeb2a1
|   |-- 567196a1f80db4234d62b83bc6a0b80d0fa99824
|   `-- 8625d68b699fd30e64360471eb2c38fed47fcfb6
|-- one_xmlrpc.01.log
|-- one_xmlrpc.log
|-- oned.01.log
|-- oned.log
|-- oned.pid
|-- remotes
|   |-- im
|   |   |-- ganglia.d
|   |   |   `-- ganglia_probe
|   |   |-- kvm.d
|   |   |   |-- architecture.sh
|   |   |   |-- cpu.sh
|   |   |   |-- kvm.rb
|   |   |   `-- name.sh
|   |   |-- run_probes
|   |   |-- vmware.d
|   |   |   `-- vmware.rb
|   |   `-- xen.d
|   |   |-- architecture.sh
|   |   |-- cpu.sh
|   |   |-- name.sh
|   |   `-- xen.rb
|   `-- vmm
|   |-- kvm
|   |   |-- cancel
|   |   |-- deploy
|   |   |-- kvmrc
|   |   |-- migrate
|   |   |-- poll
|   |   |-- poll_local
|   |   |-- restore
|   |   |-- save
|   |   `-- shutdown
|   |-- vmware
|   |   |-- cancel
|   |   |-- checkpoint
|   |   |-- deploy
|   |   |-- migrate
|   |   |-- poll
|   |   |-- restore
|   |   |-- save
|   |   `-- shutdown
|   `-- xen
|   |-- cancel
|   |-- deploy
|   |-- migrate
|   |-- poll
|   |-- poll_local
|   |-- restore
|   |-- save
|   |-- shutdown
|   `-- xenrc
|-- sched.log
|-- sched.pid
`-- sunstone.log

and here is the next log

$ONE_LOCATION/lib/mads/one_im_sh vmware
INIT
INIT SUCCESS - -
MONITOR 0 esxsrv -
LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes
vmware esxsrv
LOG - 0 STDERR follows.
LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
initialized constant ONE_LOCATION
LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
initialized constant RUBY_LIB_LOCATION
LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u oneadmin -p
virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr: . Stdout:
/srv/cloud/one/bin/tty_expect: invalid option -- c
LOG - 0 Wrong option. Check usage
LOG - 0
LOG - 0 myexpect [-h] <-p password> <-u username> 
LOG - 0
LOG - 0 SYNOPSIS
LOG - 0 Wraps the execution of a command and sends username & password
LOG - 0
LOG - 0 OPTIONS
LOG - 0 -hprints this help.
LOG - 0 -pthe password
LOG - 0 -uthe username
LOG - 0 complete virsh command
LOG - 0 ExitCode: 255
LOG - 0 ./vmware.rb:65: private method `split' called for 255:Fixnum
(NoMethodError)
LOG - 0 Error executing vmware.rb
LOG - 0 ExitCode: 1
MONITOR FAILURE 0 Could not monitor host esxsrv.


Regards

On 26 April 2011 23:16, Tino Vazquez  wrote:

> Hi,
>
> The commands should work without modification (note that they should
> be run from inside the vmware addon installation folder), although
> your modification should also work.
>
> Could you send the output of
>
> --
> $ tree $ONE_LOCATION/var
> --
>
> and
>
> --
> $ $ONE_LOCATION/lib/mads/one_im_sh vmware
> INIT
> MONITOR 0  -
> --
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Tue, Apr 26, 2011 at 6:09 PM, Hoang Dinh Phuc  wrote:
> > Hi,
> >
> > Is any mistake in your command? I've change the path like this:
> >
> > $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r
> > $ONE_LOCATION/lib/remotes/im/vmware.d/*
> > $ONE_LOCATION/var/remotes/im/vmware.d
> >
> > and
> >
> > $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r
> > $ONE_LOCATION/lib/remotes/vmm/vmware/*
> $ONE_LOCATION/var/remotes/vmm/vmware
> >
> > But it still get the error.
> >
> > Regards
> >
> > On 26 April 2011 22:20, Tino Vazquez  wrote:
> >>
> >> Dear Hoang,
> >>
> >> My apologies, the test i was asking for was not complete (it was
> >> lacking a paramenter to the mad).
> >>
> >> In any case, I think the problem may be in the way ONE 2.0+ handles
> >> the remotes. The VMware Addon only copies to
> >> $ONE_LOCATION/lib/remotes, when it should copy also to
> >> $ONE_LOCATION/var. I've opened a ticket [1] to keep track of the
> >> solution.
> >>
> >> Meanwhile, a workaround is to issue the following from the VMware
> >> Addon installation directory:
> >>
> >> $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r im/remotes/*
> >> $ONE_LOCATION/var/remotes/im/vmware.d
> >> $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r vmm/remotes/*
> >> $ONE_LOCATION/var/remotes/vmm/vmware
> >>
> >> Please let me know if this solves the issue.
> >>
> >> Regards,
> >>
> >> -Tino
> >>
> >> [1] http://dev.opennebula.org/issues/593
> >>
> >> --
> >> Constantino Vázquez Blanco, MSc
> >> OpenNebula Major Contributor
> >> www.OpenNebula.org | @tinova79
> >>
> >>
> >>
> >> On Tue, Apr 26, 2011 at 12:13 PM, Hoang Dinh Phuc 
> >> wrote:
> >> > Hi
> >> >
> >> > Here is the output:
> >> >
> >> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
> >> > --
> >> > INIT
> >> > --INIT SUCCESS - -
> >> > --
> >> > MONITOR 0

Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-27 Thread Tino Vazquez
Hi Tim,

This looks like a bug. Could you change line 116 of
$ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:

   self.each(filter.to_s) { |e|  ids_array << e.text }

and try again. If this works, please come back and i'll open a ticket
to get it fix in future OpenNebula releases.

Regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy  wrote:
> FYI -
> Ruby is version 1.8.7
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-27 Thread Tino Vazquez
Dear Hoang,

You need to set the ESX user credentials in $ONE_LOCATION/etc/vmwarerc.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Wed, Apr 27, 2011 at 3:05 AM, Hoang Dinh Phuc  wrote:
> Hi Tino Vazquez,
>
> here is the output of tree structure of $ONE_LOCATION/var:
> $ tree $ONE_LOCATION/var
> |-- config
> |-- images
> |   |-- 28c86878bdc6af8c34dd94efcf31c15ee6eeb2a1
> |   |-- 567196a1f80db4234d62b83bc6a0b80d0fa99824
> |   `-- 8625d68b699fd30e64360471eb2c38fed47fcfb6
> |-- one_xmlrpc.01.log
> |-- one_xmlrpc.log
> |-- oned.01.log
> |-- oned.log
> |-- oned.pid
> |-- remotes
> |   |-- im
> |   |   |-- ganglia.d
> |   |   |   `-- ganglia_probe
> |   |   |-- kvm.d
> |   |   |   |-- architecture.sh
> |   |   |   |-- cpu.sh
> |   |   |   |-- kvm.rb
> |   |   |   `-- name.sh
> |   |   |-- run_probes
> |   |   |-- vmware.d
> |   |   |   `-- vmware.rb
> |   |   `-- xen.d
> |   |   |-- architecture.sh
> |   |   |-- cpu.sh
> |   |   |-- name.sh
> |   |   `-- xen.rb
> |   `-- vmm
> |   |-- kvm
> |   |   |-- cancel
> |   |   |-- deploy
> |   |   |-- kvmrc
> |   |   |-- migrate
> |   |   |-- poll
> |   |   |-- poll_local
> |   |   |-- restore
> |   |   |-- save
> |   |   `-- shutdown
> |   |-- vmware
> |   |   |-- cancel
> |   |   |-- checkpoint
> |   |   |-- deploy
> |   |   |-- migrate
> |   |   |-- poll
> |   |   |-- restore
> |   |   |-- save
> |   |   `-- shutdown
> |   `-- xen
> |   |-- cancel
> |   |-- deploy
> |   |-- migrate
> |   |-- poll
> |   |-- poll_local
> |   |-- restore
> |   |-- save
> |   |-- shutdown
> |   `-- xenrc
> |-- sched.log
> |-- sched.pid
> `-- sunstone.log
>
> and here is the next log
>
> $ONE_LOCATION/lib/mads/one_im_sh vmware
> INIT
> INIT SUCCESS - -
> MONITOR 0 esxsrv -
> LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes
> vmware esxsrv
> LOG - 0 STDERR follows.
> LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
> initialized constant ONE_LOCATION
> LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
> initialized constant RUBY_LIB_LOCATION
> LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u oneadmin -p
> virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr: . Stdout:
> /srv/cloud/one/bin/tty_expect: invalid option -- c
> LOG - 0 Wrong option. Check usage
> LOG - 0
> LOG - 0 myexpect [-h] <-p password> <-u username> 
> LOG - 0
> LOG - 0 SYNOPSIS
> LOG - 0 Wraps the execution of a command and sends username & password
> LOG - 0
> LOG - 0 OPTIONS
> LOG - 0 -h    prints this help.
> LOG - 0 -p    the password
> LOG - 0 -u    the username
> LOG - 0     complete virsh command
> LOG - 0 ExitCode: 255
> LOG - 0 ./vmware.rb:65: private method `split' called for 255:Fixnum
> (NoMethodError)
> LOG - 0 Error executing vmware.rb
> LOG - 0 ExitCode: 1
> MONITOR FAILURE 0 Could not monitor host esxsrv.
>
>
> Regards
>
> On 26 April 2011 23:16, Tino Vazquez  wrote:
>>
>> Hi,
>>
>> The commands should work without modification (note that they should
>> be run from inside the vmware addon installation folder), although
>> your modification should also work.
>>
>> Could you send the output of
>>
>> --
>> $ tree $ONE_LOCATION/var
>> --
>>
>> and
>>
>> --
>> $ $ONE_LOCATION/lib/mads/one_im_sh vmware
>> INIT
>> MONITOR 0  -
>> --
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Tue, Apr 26, 2011 at 6:09 PM, Hoang Dinh Phuc  wrote:
>> > Hi,
>> >
>> > Is any mistake in your command? I've change the path like this:
>> >
>> > $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r
>> > $ONE_LOCATION/lib/remotes/im/vmware.d/*
>> > $ONE_LOCATION/var/remotes/im/vmware.d
>> >
>> > and
>> >
>> > $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r
>> > $ONE_LOCATION/lib/remotes/vmm/vmware/*
>> > $ONE_LOCATION/var/remotes/vmm/vmware
>> >
>> > But it still get the error.
>> >
>> > Regards
>> >
>> > On 26 April 2011 22:20, Tino Vazquez  wrote:
>> >>
>> >> Dear Hoang,
>> >>
>> >> My apologies, the test i was asking for was not complete (it was
>> >> lacking a paramenter to the mad).
>> >>
>> >> In any case, I think the problem may be in the way ONE 2.0+ handles
>> >> the remotes. The VMware Addon only copies to
>> >> $ONE_LOCATION/lib/remotes, when it should copy also to
>> >> $ONE_LOCATION/var. I've opened a ticket [1] to keep track of the
>> >> solution.
>> >>
>> >> Meanwhile, a workaround is to issue the following from the VMware
>> >> Addon installation directory:
>> >>
>> >> $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r im/remotes/*
>> >> $ONE_LOCATION/var/remotes/im/vmware.d
>> >> $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r vmm/remotes/*
>> >> $ONE_LOCATION/var/remotes/

Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-27 Thread Hoang Dinh Phuc
Hi Tino,

Here is the content of $ONE_LCATION/etc/vmwarerc


LIBVIRT_URI   = "esx://@HOST@/?no_verify=1"
QEMU_PROTOCOL = "qemu"

# Username and password of the VMware hypervisor
USERNAME  = "oneadmin"
PASSWORD  = ""

# Loading the vmware library for mads
# Please leave this uncommented
load ENV['ONE_LOCATION'] + "/lib/ruby/vmwarelib.rb"

ENV['LANG']='C'

Do i have to change any information?
Regards

On 27 April 2011 16:50, Tino Vazquez  wrote:

> Dear Hoang,
>
> You need to set the ESX user credentials in $ONE_LOCATION/etc/vmwarerc.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Wed, Apr 27, 2011 at 3:05 AM, Hoang Dinh Phuc  wrote:
> > Hi Tino Vazquez,
> >
> > here is the output of tree structure of $ONE_LOCATION/var:
> > $ tree $ONE_LOCATION/var
> > |-- config
> > |-- images
> > |   |-- 28c86878bdc6af8c34dd94efcf31c15ee6eeb2a1
> > |   |-- 567196a1f80db4234d62b83bc6a0b80d0fa99824
> > |   `-- 8625d68b699fd30e64360471eb2c38fed47fcfb6
> > |-- one_xmlrpc.01.log
> > |-- one_xmlrpc.log
> > |-- oned.01.log
> > |-- oned.log
> > |-- oned.pid
> > |-- remotes
> > |   |-- im
> > |   |   |-- ganglia.d
> > |   |   |   `-- ganglia_probe
> > |   |   |-- kvm.d
> > |   |   |   |-- architecture.sh
> > |   |   |   |-- cpu.sh
> > |   |   |   |-- kvm.rb
> > |   |   |   `-- name.sh
> > |   |   |-- run_probes
> > |   |   |-- vmware.d
> > |   |   |   `-- vmware.rb
> > |   |   `-- xen.d
> > |   |   |-- architecture.sh
> > |   |   |-- cpu.sh
> > |   |   |-- name.sh
> > |   |   `-- xen.rb
> > |   `-- vmm
> > |   |-- kvm
> > |   |   |-- cancel
> > |   |   |-- deploy
> > |   |   |-- kvmrc
> > |   |   |-- migrate
> > |   |   |-- poll
> > |   |   |-- poll_local
> > |   |   |-- restore
> > |   |   |-- save
> > |   |   `-- shutdown
> > |   |-- vmware
> > |   |   |-- cancel
> > |   |   |-- checkpoint
> > |   |   |-- deploy
> > |   |   |-- migrate
> > |   |   |-- poll
> > |   |   |-- restore
> > |   |   |-- save
> > |   |   `-- shutdown
> > |   `-- xen
> > |   |-- cancel
> > |   |-- deploy
> > |   |-- migrate
> > |   |-- poll
> > |   |-- poll_local
> > |   |-- restore
> > |   |-- save
> > |   |-- shutdown
> > |   `-- xenrc
> > |-- sched.log
> > |-- sched.pid
> > `-- sunstone.log
> >
> > and here is the next log
> >
> > $ONE_LOCATION/lib/mads/one_im_sh vmware
> > INIT
> > INIT SUCCESS - -
> > MONITOR 0 esxsrv -
> > LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes
> > vmware esxsrv
> > LOG - 0 STDERR follows.
> > LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
> > initialized constant ONE_LOCATION
> > LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
> > initialized constant RUBY_LIB_LOCATION
> > LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u oneadmin -p
> > virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr: .
> Stdout:
> > /srv/cloud/one/bin/tty_expect: invalid option -- c
> > LOG - 0 Wrong option. Check usage
> > LOG - 0
> > LOG - 0 myexpect [-h] <-p password> <-u username> 
> > LOG - 0
> > LOG - 0 SYNOPSIS
> > LOG - 0 Wraps the execution of a command and sends username & password
> > LOG - 0
> > LOG - 0 OPTIONS
> > LOG - 0 -hprints this help.
> > LOG - 0 -pthe password
> > LOG - 0 -uthe username
> > LOG - 0 complete virsh command
> > LOG - 0 ExitCode: 255
> > LOG - 0 ./vmware.rb:65: private method `split' called for 255:Fixnum
> > (NoMethodError)
> > LOG - 0 Error executing vmware.rb
> > LOG - 0 ExitCode: 1
> > MONITOR FAILURE 0 Could not monitor host esxsrv.
> >
> >
> > Regards
> >
> > On 26 April 2011 23:16, Tino Vazquez  wrote:
> >>
> >> Hi,
> >>
> >> The commands should work without modification (note that they should
> >> be run from inside the vmware addon installation folder), although
> >> your modification should also work.
> >>
> >> Could you send the output of
> >>
> >> --
> >> $ tree $ONE_LOCATION/var
> >> --
> >>
> >> and
> >>
> >> --
> >> $ $ONE_LOCATION/lib/mads/one_im_sh vmware
> >> INIT
> >> MONITOR 0  -
> >> --
> >>
> >> Regards,
> >>
> >> -Tino
> >>
> >> --
> >> Constantino Vázquez Blanco, MSc
> >> OpenNebula Major Contributor
> >> www.OpenNebula.org | @tinova79
> >>
> >>
> >>
> >> On Tue, Apr 26, 2011 at 6:09 PM, Hoang Dinh Phuc 
> wrote:
> >> > Hi,
> >> >
> >> > Is any mistake in your command? I've change the path like this:
> >> >
> >> > $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r
> >> > $ONE_LOCATION/lib/remotes/im/vmware.d/*
> >> > $ONE_LOCATION/var/remotes/im/vmware.d
> >> >
> >> > and
> >> >
> >> > $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r
> >> > $ONE_LOCATION/lib/remotes/vmm/vmware/*
> >> > $ONE_LOCATION/var/remotes/vmm/vmware
> >> >
> >> > But it still get the error.
> >> >
> >> > Regards
> >> >
> >> > On 26 April 2011 

Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-27 Thread Tino Vazquez
Deawr Hong,

Yes, you have to set in USERNAME and PASSWORD valid credentials to
access the ESX hypervisor.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Wed, Apr 27, 2011 at 11:53 AM, Hoang Dinh Phuc  wrote:
> Hi Tino,
>
> Here is the content of $ONE_LCATION/etc/vmwarerc
>
>
> LIBVIRT_URI   = "esx://@HOST@/?no_verify=1"
> QEMU_PROTOCOL = "qemu"
>
> # Username and password of the VMware hypervisor
> USERNAME  = "oneadmin"
> PASSWORD  = ""
>
> # Loading the vmware library for mads
> # Please leave this uncommented
> load ENV['ONE_LOCATION'] + "/lib/ruby/vmwarelib.rb"
>
> ENV['LANG']='C'
>
> Do i have to change any information?
> Regards
>
> On 27 April 2011 16:50, Tino Vazquez  wrote:
>>
>> Dear Hoang,
>>
>> You need to set the ESX user credentials in $ONE_LOCATION/etc/vmwarerc.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Wed, Apr 27, 2011 at 3:05 AM, Hoang Dinh Phuc  wrote:
>> > Hi Tino Vazquez,
>> >
>> > here is the output of tree structure of $ONE_LOCATION/var:
>> > $ tree $ONE_LOCATION/var
>> > |-- config
>> > |-- images
>> > |   |-- 28c86878bdc6af8c34dd94efcf31c15ee6eeb2a1
>> > |   |-- 567196a1f80db4234d62b83bc6a0b80d0fa99824
>> > |   `-- 8625d68b699fd30e64360471eb2c38fed47fcfb6
>> > |-- one_xmlrpc.01.log
>> > |-- one_xmlrpc.log
>> > |-- oned.01.log
>> > |-- oned.log
>> > |-- oned.pid
>> > |-- remotes
>> > |   |-- im
>> > |   |   |-- ganglia.d
>> > |   |   |   `-- ganglia_probe
>> > |   |   |-- kvm.d
>> > |   |   |   |-- architecture.sh
>> > |   |   |   |-- cpu.sh
>> > |   |   |   |-- kvm.rb
>> > |   |   |   `-- name.sh
>> > |   |   |-- run_probes
>> > |   |   |-- vmware.d
>> > |   |   |   `-- vmware.rb
>> > |   |   `-- xen.d
>> > |   |   |-- architecture.sh
>> > |   |   |-- cpu.sh
>> > |   |   |-- name.sh
>> > |   |   `-- xen.rb
>> > |   `-- vmm
>> > |   |-- kvm
>> > |   |   |-- cancel
>> > |   |   |-- deploy
>> > |   |   |-- kvmrc
>> > |   |   |-- migrate
>> > |   |   |-- poll
>> > |   |   |-- poll_local
>> > |   |   |-- restore
>> > |   |   |-- save
>> > |   |   `-- shutdown
>> > |   |-- vmware
>> > |   |   |-- cancel
>> > |   |   |-- checkpoint
>> > |   |   |-- deploy
>> > |   |   |-- migrate
>> > |   |   |-- poll
>> > |   |   |-- restore
>> > |   |   |-- save
>> > |   |   `-- shutdown
>> > |   `-- xen
>> > |   |-- cancel
>> > |   |-- deploy
>> > |   |-- migrate
>> > |   |-- poll
>> > |   |-- poll_local
>> > |   |-- restore
>> > |   |-- save
>> > |   |-- shutdown
>> > |   `-- xenrc
>> > |-- sched.log
>> > |-- sched.pid
>> > `-- sunstone.log
>> >
>> > and here is the next log
>> >
>> > $ONE_LOCATION/lib/mads/one_im_sh vmware
>> > INIT
>> > INIT SUCCESS - -
>> > MONITOR 0 esxsrv -
>> > LOG - 0 Command execution fail:
>> > /srv/cloud/one/var/remotes//im/run_probes
>> > vmware esxsrv
>> > LOG - 0 STDERR follows.
>> > LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
>> > initialized constant ONE_LOCATION
>> > LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
>> > initialized constant RUBY_LIB_LOCATION
>> > LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u oneadmin
>> > -p
>> > virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr: .
>> > Stdout:
>> > /srv/cloud/one/bin/tty_expect: invalid option -- c
>> > LOG - 0 Wrong option. Check usage
>> > LOG - 0
>> > LOG - 0 myexpect [-h] <-p password> <-u username> 
>> > LOG - 0
>> > LOG - 0 SYNOPSIS
>> > LOG - 0 Wraps the execution of a command and sends username & password
>> > LOG - 0
>> > LOG - 0 OPTIONS
>> > LOG - 0 -h    prints this help.
>> > LOG - 0 -p    the password
>> > LOG - 0 -u    the username
>> > LOG - 0     complete virsh command
>> > LOG - 0 ExitCode: 255
>> > LOG - 0 ./vmware.rb:65: private method `split' called for 255:Fixnum
>> > (NoMethodError)
>> > LOG - 0 Error executing vmware.rb
>> > LOG - 0 ExitCode: 1
>> > MONITOR FAILURE 0 Could not monitor host esxsrv.
>> >
>> >
>> > Regards
>> >
>> > On 26 April 2011 23:16, Tino Vazquez  wrote:
>> >>
>> >> Hi,
>> >>
>> >> The commands should work without modification (note that they should
>> >> be run from inside the vmware addon installation folder), although
>> >> your modification should also work.
>> >>
>> >> Could you send the output of
>> >>
>> >> --
>> >> $ tree $ONE_LOCATION/var
>> >> --
>> >>
>> >> and
>> >>
>> >> --
>> >> $ $ONE_LOCATION/lib/mads/one_im_sh vmware
>> >> INIT
>> >> MONITOR 0  -
>> >> --
>> >>
>> >> Regards,
>> >>
>> >> -Tino
>> >>
>> >> --
>> >> Constantino Vázquez Blanco, MSc
>> >> OpenNebula Major Contributor
>> >> www.OpenNebula.org | @tinova79
>> >>
>> >>
>> >>
>> >> On Tue, Apr 26, 2011 at 6:09 PM, Hoang Dinh Phuc 
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > Is any mis

Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-27 Thread Tino Vazquez
Dear Hoang,

comments inline,

On Wed, Apr 27, 2011 at 12:12 PM, Hoang Dinh Phuc  wrote:
> Hi Tino,
>
> I've change the USERNAME="root" and PASSWORD="pass" . Then i test:
>
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb

This should be

 $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware

> 
> INIT
> INIT SUCCESS - -
> -
> MONITOR 0 esxsrv -
> MONITOR SUCCESS 0
> (Ctrl-C)
> Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
> /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
>     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
>     from /srv/cloud/one/lib/mads/one_im_sh.rb:85
>
> Then. I use the command to test to connect to ESX Server:
> $ virsh -c esx://root@esxsrv/?no_verify=1

This should be

 $ virsh -c esx://esxsrv/?no_verify=1

> Enter root's password for esxsrv:
> error: internal error Could not find compute resource '��� � ��� []Ít&'
> error: failed to connect to the hypervisor
>
> It can't connect to esx server
>
> Then, i add esx host to opennebula by command:
> $ onehost create esxsrv im_vmware vmm_vmware tm_vmware
>
> But it make error state, and here is the oned.log:
> Wed Apr 27 17:01:14 2011 [InM][I]:
> Wed Apr 27 17:01:14 2011 [InM][I]: error: internal error Could not find
> compute resource '<8b>U^H<83>ø^A<89>^B^YÀ<83>Ä^T[]Ã<8d>t&'
> Wed Apr 27 17:01:14 2011 [InM][I]: error: failed to connect to the
> hypervisor
> Wed Apr 27 17:01:14 2011 [InM][I]: . Stdout: ExitCode: 1
> Wed Apr 27 17:01:14 2011 [InM][I]: ./vmware.rb:65: private method `split'
> called for 1:Fixnum (NoMethodError)
> Wed Apr 27 17:01:14 2011 [InM][I]: Error executing vmware.rb
> Wed Apr 27 17:01:14 2011 [InM][I]: ExitCode: 1
> Wed Apr 27 17:01:14 2011 [InM][E]: Error monitoring host 5 : MONITOR FAILURE
> 5 Could not monitor host esxsrv.
>
> Please help me to resolve this problems
>
> Thanks
> On 27 April 2011 16:58, Tino Vazquez  wrote:
>>
>> Deawr Hong,
>>
>> Yes, you have to set in USERNAME and PASSWORD valid credentials to
>> access the ESX hypervisor.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Wed, Apr 27, 2011 at 11:53 AM, Hoang Dinh Phuc 
>> wrote:
>> > Hi Tino,
>> >
>> > Here is the content of $ONE_LCATION/etc/vmwarerc
>> >
>> >
>> > LIBVIRT_URI   = "esx://@HOST@/?no_verify=1"
>> > QEMU_PROTOCOL = "qemu"
>> >
>> > # Username and password of the VMware hypervisor
>> > USERNAME  = "oneadmin"
>> > PASSWORD  = ""
>> >
>> > # Loading the vmware library for mads
>> > # Please leave this uncommented
>> > load ENV['ONE_LOCATION'] + "/lib/ruby/vmwarelib.rb"
>> >
>> > ENV['LANG']='C'
>> >
>> > Do i have to change any information?
>> > Regards
>> >
>> > On 27 April 2011 16:50, Tino Vazquez  wrote:
>> >>
>> >> Dear Hoang,
>> >>
>> >> You need to set the ESX user credentials in $ONE_LOCATION/etc/vmwarerc.
>> >>
>> >> Regards,
>> >>
>> >> -Tino
>> >>
>> >> --
>> >> Constantino Vázquez Blanco, MSc
>> >> OpenNebula Major Contributor
>> >> www.OpenNebula.org | @tinova79
>> >>
>> >>
>> >>
>> >> On Wed, Apr 27, 2011 at 3:05 AM, Hoang Dinh Phuc 
>> >> wrote:
>> >> > Hi Tino Vazquez,
>> >> >
>> >> > here is the output of tree structure of $ONE_LOCATION/var:
>> >> > $ tree $ONE_LOCATION/var
>> >> > |-- config
>> >> > |-- images
>> >> > |   |-- 28c86878bdc6af8c34dd94efcf31c15ee6eeb2a1
>> >> > |   |-- 567196a1f80db4234d62b83bc6a0b80d0fa99824
>> >> > |   `-- 8625d68b699fd30e64360471eb2c38fed47fcfb6
>> >> > |-- one_xmlrpc.01.log
>> >> > |-- one_xmlrpc.log
>> >> > |-- oned.01.log
>> >> > |-- oned.log
>> >> > |-- oned.pid
>> >> > |-- remotes
>> >> > |   |-- im
>> >> > |   |   |-- ganglia.d
>> >> > |   |   |   `-- ganglia_probe
>> >> > |   |   |-- kvm.d
>> >> > |   |   |   |-- architecture.sh
>> >> > |   |   |   |-- cpu.sh
>> >> > |   |   |   |-- kvm.rb
>> >> > |   |   |   `-- name.sh
>> >> > |   |   |-- run_probes
>> >> > |   |   |-- vmware.d
>> >> > |   |   |   `-- vmware.rb
>> >> > |   |   `-- xen.d
>> >> > |   |   |-- architecture.sh
>> >> > |   |   |-- cpu.sh
>> >> > |   |   |-- name.sh
>> >> > |   |   `-- xen.rb
>> >> > |   `-- vmm
>> >> > |   |-- kvm
>> >> > |   |   |-- cancel
>> >> > |   |   |-- deploy
>> >> > |   |   |-- kvmrc
>> >> > |   |   |-- migrate
>> >> > |   |   |-- poll
>> >> > |   |   |-- poll_local
>> >> > |   |   |-- restore
>> >> > |   |   |-- save
>> >> > |   |   `-- shutdown
>> >> > |   |-- vmware
>> >> > |   |   |-- cancel
>> >> > |   |   |-- checkpoint
>> >> > |   |   |-- deploy
>> >> > |   |   |-- migrate
>> >> > |   |   |-- poll
>> >> > |   |   |-- restore
>> >> > |   |   |-- save
>> >> > |   |   `-- shutdown
>> >> > 

Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-27 Thread Tim Dunlevy
Same error after changing the line to below.

-Original Message-
From: Tino Vazquez [mailto:tinov...@gmail.com] 
Sent: Wednesday, April 27, 2011 5:49 AM
To: Tim Dunlevy
Cc: users@lists.opennebula.org
Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula

Hi Tim,

This looks like a bug. Could you change line 116 of 
$ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:

   self.each(filter.to_s) { |e|  ids_array << e.text }

and try again. If this works, please come back and i'll open a ticket to get it 
fix in future OpenNebula releases.

Regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization Technology 
Engineer / Researcher OpenNebula Toolkit | opennebula.org



On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy  wrote:
> FYI -
> Ruby is version 1.8.7
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-27 Thread Hoang Dinh Phuc
Hello Tino,

Here is the log you need:

$ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware
---
INIT
INIT SUCCESS - -
---
MONITOR 0 esxsrv -

LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes
vmware esxsrv
LOG - 0 STDERR follows.
LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
initialized constant ONE_LOCATION
LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
initialized constant RUBY_LIB_LOCATION
LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u root -p pass
virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr:  pass
LOG - 0
LOG - 0 error: internal error Could not find compute resource '��� � ���
[]Ít&'
LOG - 0 error: failed to connect to the hypervisor
LOG - 0 . Stdout: ExitCode: 1
LOG - 0 ./vmware.rb:65: private method `split' called for 1:Fixnum
(NoMethodError)
LOG - 0 Error executing vmware.rb
LOG - 0 ExitCode: 1
MONITOR FAILURE 0 Could not monitor host esxsrv.
Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
/srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
from /srv/cloud/one/lib/mads/one_im_sh.rb:85
And the second:

virsh -c esx://esxsrv/?no_verify=1
Enter username for esxsrv [root]: oneadmin
Enter oneadmin's password for esxsrv:
error: internal error HTTP response code 500 for call to 'Login'. Fault:
ServerFaultCode - Cannot complete login due to an incorrect user name or
password.
error: failed to connect to the hypervisor

Do i have to reinstall OpenNebula (2.2) to fix these problems?

Thanks & Regards
On 27 April 2011 17:24, Tino Vazquez  wrote:

> Dear Hoang,
>
> comments inline,
>
> On Wed, Apr 27, 2011 at 12:12 PM, Hoang Dinh Phuc 
> wrote:
> > Hi Tino,
> >
> > I've change the USERNAME="root" and PASSWORD="pass" . Then i test:
> >
> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>
> This should be
>
>  $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware
>
> > 
> > INIT
> > INIT SUCCESS - -
> > -
> > MONITOR 0 esxsrv -
> > MONITOR SUCCESS 0
> > (Ctrl-C)
> > Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
> > /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
> > from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
> > from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
> > from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
> > from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
> > from /srv/cloud/one/lib/mads/one_im_sh.rb:85
> >
> > Then. I use the command to test to connect to ESX Server:
> > $ virsh -c esx://root@esxsrv/?no_verify=1
>
> This should be
>
>  $ virsh -c esx://esxsrv/?no_verify=1
>
> > Enter root's password for esxsrv:
> > error: internal error Could not find compute resource '��� � ��� []Ít&'
> > error: failed to connect to the hypervisor
> >
> > It can't connect to esx server
> >
> > Then, i add esx host to opennebula by command:
> > $ onehost create esxsrv im_vmware vmm_vmware tm_vmware
> >
> > But it make error state, and here is the oned.log:
> > Wed Apr 27 17:01:14 2011 [InM][I]:
> > Wed Apr 27 17:01:14 2011 [InM][I]: error: internal error Could not find
> > compute resource '<8b>U^H<83>ø^A<89>^B^YÀ<83>Ä^T[]Ã<8d>t&'
> > Wed Apr 27 17:01:14 2011 [InM][I]: error: failed to connect to the
> > hypervisor
> > Wed Apr 27 17:01:14 2011 [InM][I]: . Stdout: ExitCode: 1
> > Wed Apr 27 17:01:14 2011 [InM][I]: ./vmware.rb:65: private method `split'
> > called for 1:Fixnum (NoMethodError)
> > Wed Apr 27 17:01:14 2011 [InM][I]: Error executing vmware.rb
> > Wed Apr 27 17:01:14 2011 [InM][I]: ExitCode: 1
> > Wed Apr 27 17:01:14 2011 [InM][E]: Error monitoring host 5 : MONITOR
> FAILURE
> > 5 Could not monitor host esxsrv.
> >
> > Please help me to resolve this problems
> >
> > Thanks
> > On 27 April 2011 16:58, Tino Vazquez  wrote:
> >>
> >> Deawr Hong,
> >>
> >> Yes, you have to set in USERNAME and PASSWORD valid credentials to
> >> access the ESX hypervisor.
> >>
> >> Regards,
> >>
> >> -Tino
> >>
> >> --
> >> Constantino Vázquez Blanco, MSc
> >> OpenNebula Major Contributor
> >> www.OpenNebula.org | @tinova79
> >>
> >>
> >>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-27 Thread Tino Vazquez
Hi,

You need to set a valid user in the ESX hypervisor, _not_ a opennebula
or linux user.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Wed, Apr 27, 2011 at 3:03 PM, Hoang Dinh Phuc  wrote:
> Hello Tino,
>
> Here is the log you need:
>
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware
> ---
> INIT
> INIT SUCCESS - -
> ---
> MONITOR 0 esxsrv -
>
> LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes
> vmware esxsrv
> LOG - 0 STDERR follows.
> LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
> initialized constant ONE_LOCATION
> LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
> initialized constant RUBY_LIB_LOCATION
> LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u root -p pass
> virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr:  pass
> LOG - 0
> LOG - 0 error: internal error Could not find compute resource '��� � ���
> []Ít&'
> LOG - 0 error: failed to connect to the hypervisor
> LOG - 0 . Stdout: ExitCode: 1
> LOG - 0 ./vmware.rb:65: private method `split' called for 1:Fixnum
> (NoMethodError)
> LOG - 0 Error executing vmware.rb
> LOG - 0 ExitCode: 1
> MONITOR FAILURE 0 Could not monitor host esxsrv.
> Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
> /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
>     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
>     from /srv/cloud/one/lib/mads/one_im_sh.rb:85
> And the second:
>
> virsh -c esx://esxsrv/?no_verify=1
> Enter username for esxsrv [root]: oneadmin
> Enter oneadmin's password for esxsrv:
> error: internal error HTTP response code 500 for call to 'Login'. Fault:
> ServerFaultCode - Cannot complete login due to an incorrect user name or
> password.
> error: failed to connect to the hypervisor
>
> Do i have to reinstall OpenNebula (2.2) to fix these problems?
>
> Thanks & Regards
> On 27 April 2011 17:24, Tino Vazquez  wrote:
>>
>> Dear Hoang,
>>
>> comments inline,
>>
>> On Wed, Apr 27, 2011 at 12:12 PM, Hoang Dinh Phuc 
>> wrote:
>> > Hi Tino,
>> >
>> > I've change the USERNAME="root" and PASSWORD="pass" . Then i test:
>> >
>> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>>
>> This should be
>>
>>  $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware
>>
>> > 
>> > INIT
>> > INIT SUCCESS - -
>> > -
>> > MONITOR 0 esxsrv -
>> > MONITOR SUCCESS 0
>> > (Ctrl-C)
>> > Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
>> > /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in
>> > `start_listener'
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in
>> > `start_listener'
>> >     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in
>> > `start_driver'
>> >     from /srv/cloud/one/lib/mads/one_im_sh.rb:85
>> >
>> > Then. I use the command to test to connect to ESX Server:
>> > $ virsh -c esx://root@esxsrv/?no_verify=1
>>
>> This should be
>>
>>  $ virsh -c esx://esxsrv/?no_verify=1
>>
>> > Enter root's password for esxsrv:
>> > error: internal error Could not find compute resource '��� � ��� []Ít&'
>> > error: failed to connect to the hypervisor
>> >
>> > It can't connect to esx server
>> >
>> > Then, i add esx host to opennebula by command:
>> > $ onehost create esxsrv im_vmware vmm_vmware tm_vmware
>> >
>> > But it make error state, and here is the oned.log:
>> > Wed Apr 27 17:01:14 2011 [InM][I]:
>> > Wed Apr 27 17:01:14 2011 [InM][I]: error: internal error Could not find
>> > compute resource '<8b>U^H<83>ø^A<89>^B^YÀ<83>Ä^T[]Ã<8d>t&'
>> > Wed Apr 27 17:01:14 2011 [InM][I]: error: failed to connect to the
>> > hypervisor
>> > Wed Apr 27 17:01:14 2011 [InM][I]: . Stdout: ExitCode: 1
>> > Wed Apr 27 17:01:14 2011 [InM][I]: ./vmware.rb:65: private method
>> > `split'
>> > called for 1:Fixnum (NoMethodError)
>> > Wed Apr 27 17:01:14 2011 [InM][I]: Error executing vmware.rb
>> > Wed Apr 27 17:01:14 2011 [InM][I]: ExitCode: 1
>> > Wed Apr 27 17:01:14 2011 [InM][E]: Error monitoring host 5 : MONITOR
>> > FAILURE
>> > 5 Could not monitor host esxsrv.
>> >
>> > Please help me to resolve this problems
>> >
>> > Thanks
>> > On 27 April 2011 16:58, Tino Vazquez  wrote:
>> >>
>> >> Deawr Hong,
>> >>
>> >> Yes, you have to set in USERNAME and PASSWORD valid credentials to
>> >> access the ESX hypervisor.
>> >>
>> >> Regards,
>> >>
>> >> -Tino
>> >>
>> >> --
>> >> Constantino Vázquez Blanco, MSc
>> >> OpenNebula Major Contributor
>> >> www.OpenNebula.org | @tinova79
>> >>
>> >>
>> >>
>
>
___
U

Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-27 Thread Tino Vazquez
Hi Tim,

Did you restart oned?

If so, please send the error message, it may be a little different.

Regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Wed, Apr 27, 2011 at 2:36 PM, Tim Dunlevy  wrote:
> Same error after changing the line to below.
>
> -Original Message-
> From: Tino Vazquez [mailto:tinov...@gmail.com]
> Sent: Wednesday, April 27, 2011 5:49 AM
> To: Tim Dunlevy
> Cc: users@lists.opennebula.org
> Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula
>
> Hi Tim,
>
> This looks like a bug. Could you change line 116 of 
> $ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:
>
>           self.each(filter.to_s) { |e|  ids_array << e.text }
>
> and try again. If this works, please come back and i'll open a ticket to get 
> it fix in future OpenNebula releases.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization 
> Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org
>
>
>
> On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy  
> wrote:
>> FYI -
>> Ruby is version 1.8.7
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-28 Thread antoni artigues
Hi Tino

I have exactly the same issue as Tim

I have done the proposed in :
http://www.mail-archive.com/users@lists.opennebula.org/msg02723.html

Then I have changed this:

change line 116 of
$ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:

   self.each(filter.to_s) { |e|  ids_array << e.text }

My code now is:

--
else
   # @xml.each(filter.to_s) { |e|  ids_array << e.text }
   self.each(filter.to_s) { |e|  ids_array << e.text } 
end
--

And with this changes I obtain the same error as Tim:

--
Thu Apr 28 09:56:54 2011 [InM][I]: Command execution
fail: /srv/cloud/one/var/remotes//im/run_probes vmware oscarnode3
Thu Apr 28 09:56:54 2011 [InM][I]: STDERR follows.
Thu Apr 28 09:56:54 2011
[InM][I]: /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
initialized constant ONE_LOCATION
Thu Apr 28 09:56:54 2011
[InM][I]: /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
initialized constant RUBY_LIB_LOCATION
Thu Apr 28 09:56:54 2011
[InM][I]: /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:117:in `each':
wrong number of arguments (1 for 0) (ArgumentError)
Thu Apr 28 09:56:54 2011 [InM][I]:
from /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:117:in
`retrieve_elements'
Thu Apr 28 09:56:54 2011 [InM][I]: from ./vmware.rb:83
Thu Apr 28 09:56:54 2011 [InM][I]: Error executing vmware.rb
Thu Apr 28 09:56:54 2011 [InM][I]: ExitCode: 1
Thu Apr 28 09:56:54 2011 [InM][E]: Error monitoring host 5 : MONITOR
FAILURE 5 Could not monitor host oscarnode3.
--

Thanks in advance

Antoni Artigues

El mié, 27-04-2011 a las 17:03 +0200, Tino Vazquez escribió:
> Hi Tim,
> 
> Did you restart oned?
> 
> If so, please send the error message, it may be a little different.
> 
> Regards,
> 
> -Tino
> 
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
> 
> 
> 
> On Wed, Apr 27, 2011 at 2:36 PM, Tim Dunlevy  
> wrote:
> > Same error after changing the line to below.
> >
> > -Original Message-
> > From: Tino Vazquez [mailto:tinov...@gmail.com]
> > Sent: Wednesday, April 27, 2011 5:49 AM
> > To: Tim Dunlevy
> > Cc: users@lists.opennebula.org
> > Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula
> >
> > Hi Tim,
> >
> > This looks like a bug. Could you change line 116 of 
> > $ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:
> >
> >   self.each(filter.to_s) { |e|  ids_array << e.text }
> >
> > and try again. If this works, please come back and i'll open a ticket to 
> > get it fix in future OpenNebula releases.
> >
> > Regards,
> >
> > -Tino
> >
> > --
> > Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization 
> > Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org
> >
> >
> >
> > On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy  
> > wrote:
> >> FYI -
> >> Ruby is version 1.8.7
> >>
> >> ___
> >> Users mailing list
> >> Users@lists.opennebula.org
> >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>
> >
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-28 Thread Tino Vazquez
Hi,

This is a bug in the code when not using the NOKOGIRI gem. As a
workaround, please try installing that gem.

Meanwhile, I've opened a ticket [1] to keep track of the solution.

Regards,

-Tino

[1] http://dev.opennebula.org/issues/597

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Thu, Apr 28, 2011 at 10:09 AM, antoni artigues  wrote:
> Hi Tino
>
> I have exactly the same issue as Tim
>
> I have done the proposed in :
> http://www.mail-archive.com/users@lists.opennebula.org/msg02723.html
>
> Then I have changed this:
>
> change line 116 of
> $ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:
>
>           self.each(filter.to_s) { |e|  ids_array << e.text }
>
> My code now is:
>
> --
> else
>   # @xml.each(filter.to_s) { |e|  ids_array << e.text }
>   self.each(filter.to_s) { |e|  ids_array << e.text }
> end
> --
>
> And with this changes I obtain the same error as Tim:
>
> --
> Thu Apr 28 09:56:54 2011 [InM][I]: Command execution
> fail: /srv/cloud/one/var/remotes//im/run_probes vmware oscarnode3
> Thu Apr 28 09:56:54 2011 [InM][I]: STDERR follows.
> Thu Apr 28 09:56:54 2011
> [InM][I]: /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
> initialized constant ONE_LOCATION
> Thu Apr 28 09:56:54 2011
> [InM][I]: /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
> initialized constant RUBY_LIB_LOCATION
> Thu Apr 28 09:56:54 2011
> [InM][I]: /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:117:in `each':
> wrong number of arguments (1 for 0) (ArgumentError)
> Thu Apr 28 09:56:54 2011 [InM][I]:
> from /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:117:in
> `retrieve_elements'
> Thu Apr 28 09:56:54 2011 [InM][I]: from ./vmware.rb:83
> Thu Apr 28 09:56:54 2011 [InM][I]: Error executing vmware.rb
> Thu Apr 28 09:56:54 2011 [InM][I]: ExitCode: 1
> Thu Apr 28 09:56:54 2011 [InM][E]: Error monitoring host 5 : MONITOR
> FAILURE 5 Could not monitor host oscarnode3.
> --
>
> Thanks in advance
>
> Antoni Artigues
>
> El mié, 27-04-2011 a las 17:03 +0200, Tino Vazquez escribió:
>> Hi Tim,
>>
>> Did you restart oned?
>>
>> If so, please send the error message, it may be a little different.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> Virtualization Technology Engineer / Researcher
>> OpenNebula Toolkit | opennebula.org
>>
>>
>>
>> On Wed, Apr 27, 2011 at 2:36 PM, Tim Dunlevy  
>> wrote:
>> > Same error after changing the line to below.
>> >
>> > -Original Message-
>> > From: Tino Vazquez [mailto:tinov...@gmail.com]
>> > Sent: Wednesday, April 27, 2011 5:49 AM
>> > To: Tim Dunlevy
>> > Cc: users@lists.opennebula.org
>> > Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula
>> >
>> > Hi Tim,
>> >
>> > This looks like a bug. Could you change line 116 of 
>> > $ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:
>> >
>> >           self.each(filter.to_s) { |e|  ids_array << e.text }
>> >
>> > and try again. If this works, please come back and i'll open a ticket to 
>> > get it fix in future OpenNebula releases.
>> >
>> > Regards,
>> >
>> > -Tino
>> >
>> > --
>> > Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization 
>> > Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org
>> >
>> >
>> >
>> > On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy  
>> > wrote:
>> >> FYI -
>> >> Ruby is version 1.8.7
>> >>
>> >> ___
>> >> Users mailing list
>> >> Users@lists.opennebula.org
>> >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >>
>> >
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-28 Thread antoni artigues
Okey.

Install NOKOGIRI solves the problem. Now works well

Thanks

Antoni Artigues
El jue, 28-04-2011 a las 12:30 +0200, Tino Vazquez escribió:
> This is a bug in the code when not using the NOKOGIRI gem. As a
> workaround, please try installing that gem.
> 
> Meanwhile, I've opened a ticket [1] to keep track of the solution.
> 
> Regards,
> 
> -Tino
> 
> [1] http://dev.opennebula.org/issues/597 

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org