[one-users] Error monitoring host

Humberto N. Castejon Martinez humcasma at gmail.com
Wed Sep 21 08:21:00 PDT 2011


Hi,

I know the problem I am going to report has already been discussed, but what
I have read from previous discussions has not helped.
My Opennebula front-end has problems to monitor one of my hosts. I get the
following log messages:

Wed Sep 21 17:03:44 2011 [InM][I]: Command execution fail: 'if [ -x
"/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm joker;
else $
Wed Sep 21 17:03:44 2011 [InM][I]: STDERR follows.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again.
Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied (publickey,password).
Wed Sep 21 17:03:44 2011 [InM][I]: ExitCode: 255
Wed Sep 21 17:03:44 2011 [InM][E]: Error monitoring host 0 : MONITOR FAILURE
0 Could not monitor host joker.

The first thing that I have noticed is that run_probes is not in
/var/tmp/one/im/, but I have it in /srv/cloud/one/lib/remotes/im/. Can that
be the source of the problem?
If I executed from my front end machine the following command as root,
everything seems to work ok:

 /srv/cloud/one/lib/remotes/im/run_probes kvm joker

However, if i execute it as oneadmin, i get the following error:

Connecting to uri: qemu:///system
error: unable to connect to '/var/run/libvirt/libvirt-sock': Permission
denied
error: failed to connect to the hypervisor
Error executing kvm.rb
ARCH=x86_64 MODELNAME="Intel(R) Xeon(R) CPU E5540 @ 2.53GHz"

I have checked, and oneadmin is member of the cloud group in joker, I have
specified unix_sock_group = "cloud" in /etc/libvirt/libvirtd.conf and
libvirt-sock  seems to have the right permissions: srwxrwx--- 1 root cloud 0
2011-09-21 17:02 /var/run/libvirt/libvirt-sock
So i do not know why I get the "permission denied" message.
However, if I run virsh -c qemu+ssh://oneadmin@joker/system, I manage to
connect to virsh, w/o entering a password.

So i do not really know what the problem is, and hope you can help me.  The
funny thing is that it used to work perfectly, but it stopped working
suddenly, without me changing anything (or at least I think so).

Cheers,
Humberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110921/78ea6ef4/attachment-0002.htm>


More information about the Users mailing list