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

Carlo Bongiovanni c.bongiovanni at liberologico.com
Thu Mar 8 08:19:45 PST 2012


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



More information about the Users mailing list