[one-users] error on opennebula-3.3.0 and esxi 5 during monitoring host

Tino Vazquez tinova at opennebula.org
Mon Mar 12 05:09:12 PDT 2012


Dear Carlo,

It looks like the vmware.rb probe is having troubles finding your vmwarerc file.

> Thu Mar  8 17:02:02 2012 [InM][I]: sh: getcwd() failed: No such file or directory

Do you have ONE_LOCATION defined?

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
Project Engineer
OpenNebula - The Open-Source Solution for Data Center Virtualization
www.OpenNebula.org | @tinova79 | @OpenNebula



On Thu, Mar 8, 2012 at 5:19 PM, Carlo Bongiovanni
<c.bongiovanni at liberologico.com> wrote:
> Hi all,
>
> I installed opennebula-3.3.0 compiling it from source on a ubuntu
> server 64bit. The hypervisor is VMWare esxi 5.
> After one starts, I get an error in oned.log saying
>
> Thu Mar  8 17:02:00 2012 [InM][I]: Monitoring host vmware001 (0)
> Thu Mar  8 17:02:00 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Mar  8 17:02:00 2012 [ReM][D]: AclInfo method invoked
> Thu Mar  8 17:02:02 2012 [InM][I]: Command execution fail:
> /srv/cloud/one/var/remotes/im/run_probes vmware 0 vmware001
> Thu Mar  8 17:02:02 2012 [InM][I]: sh: getcwd() failed: No such file
> or directory
> Thu Mar  8 17:02:02 2012 [InM][I]: shell-init: error retrieving
> current directory: getcwd: cannot access parent directories: File o
> directory non esistente
> Thu Mar  8 17:02:02 2012 [InM][I]: chdir: error retrieving current
> directory: getcwd: cannot access parent directories: No such file or
> directory
> Thu Mar  8 17:02:02 2012 [InM][E]: vmware.rb: Error executing: virsh
> -c  --readonly nodeinfo err: ExitCode: 1
> Thu Mar  8 17:02:02 2012 [InM][I]: out:  No such file or directory
> Thu Mar  8 17:02:02 2012 [InM][I]: error: failed to connect to the hypervisor
> Thu Mar  8 17:02:02 2012 [InM][I]: ./vmware.rb:109: undefined local
> variable or method `info' for #<Object:0x7f857d34f2b0> (NameError)
> Thu Mar  8 17:02:02 2012 [InM][E]: Error executing vmware.rb
> Thu Mar  8 17:02:02 2012 [InM][I]: ExitCode: 1
> Thu Mar  8 17:02:02 2012 [InM][E]: Error monitoring host 0 : MONITOR
> FAILURE 0 Error executing vmware.rb
>
> as you can see from the log it tries to execute
> virsh -c  --readonly nodeinfo
> while the correct command should be
> virsh -c 'esx://vmware001/?no_verify=1&auto_answer=1' --readonly nodeinfo
>
> and of course the 2nd command works perfectly when I run it from bash
>
> my etc/vmwarerc contains:
> # Libvirt congfiguration
> :libvirt_uri: "'esx://@vmware001@/?no_verify=1&auto_answer=1'"
>
> # Username and password of the VMware hypervisor
> :username: "oneadmin"
> :password: "caidarHoaj2"
>
> # VMotion configuration attributes
> :datacenter: "ha-datacenter"
> :vcenter:
>
> and vmware001 is correctly resolved by my DNS.
>
> any suggestion?
>
> thanks, kind regards
>
> --
> Carlo Bongiovanni
>
> callto://pacman81
> gtalk: carlo.bongiovanni
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



More information about the Users mailing list