<div>Thanks for your help. As I said in my original email, I thought it was a funny problem, since everything used to work before and suddenly stopped working, w/o me doing anything. Well, as usual, funny problems are normally the result of stupid mistakes. I actually did something that prevented the monitoring to work as it should. I re-started Opennebula, but I did it as root. Now i have re-strated it once more, this time as oneadmin, and everything works as it used to. Thanks again for the help and sorry for bothering you with stupid problems.</div>
<div><br></div><div>Cheers,</div><div>Humberto</div><div><br></div><div><br></div><div>Date: Wed, 21 Sep 2011 22:19:32 +0400<br></div>
From: <a href="mailto:knawnd@gmail.com">knawnd@gmail.com</a><br>
To: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
Subject: Re: [one-users] Error monitoring host<br>
Message-ID: <<a href="mailto:4E7A2AB4.3070108@gmail.com">4E7A2AB4.3070108@gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Hi Humberto,<br>
<br>
Just a guess.<br>
<br>
What the output of the command 'grep nodeinfo_text<br>
$ONE_LOCATION/lib/remotes/im/kvm.d/kvm.rb|grep virsh' on front-end node?<br>
I have<br>
nodeinfo_text = `virsh -c qemu:///system nodeinfo`<br>
<br>
But it looks like you should change it to<br>
virsh -c qemu+ssh:///system<br>
<br>
HTH,<br>
Nikolay.<br>
<br>
Humberto N. Castejon Martinez wrote on 21/09/11 19:21:<br>
> Hi,<br>
><br>
> I know the problem I am going to report has already been discussed, but<br>
> what I have read from previous discussions has not helped.<br>
> My Opennebula front-end has problems to monitor one of my hosts. I get<br>
> the following log messages:<br>
><br>
> Wed Sep 21 17:03:44 2011 [InM][I]: Command execution fail: 'if [ -x<br>
> "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm<br>
> joker; else $<br>
> Wed Sep 21 17:03:44 2011 [InM][I]: STDERR follows.<br>
> Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again.<br>
> Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied, please try again.<br>
> Wed Sep 21 17:03:44 2011 [InM][I]: Permission denied (publickey,password).<br>
> Wed Sep 21 17:03:44 2011 [InM][I]: ExitCode: 255<br>
> Wed Sep 21 17:03:44 2011 [InM][E]: Error monitoring host 0 : MONITOR<br>
> FAILURE 0 Could not monitor host joker.<br>
><br>
> The first thing that I have noticed is that run_probes is not in<br>
> /var/tmp/one/im/, but I have it in /srv/cloud/one/lib/remotes/im/. Can<br>
> that be the source of the problem?<br>
> If I executed from my front end machine the following command as root,<br>
> everything seems to work ok:<br>
><br>
> /srv/cloud/one/lib/remotes/im/run_probes kvm joker<br>
><br>
> However, if i execute it as oneadmin, i get the following error:<br>
><br>
> Connecting to uri: qemu:///system<br>
> error: unable to connect to '/var/run/libvirt/libvirt-sock': Permission<br>
> denied<br>
> error: failed to connect to the hypervisor<br>
> Error executing kvm.rb<br>
> ARCH=x86_64 MODELNAME="Intel(R) Xeon(R) CPU E5540 @ 2.53GHz"<br>
><br>
> I have checked, and oneadmin is member of the cloud group in joker, I<br>
> have specified unix_sock_group = "cloud" in /etc/libvirt/libvirtd.conf<br>
> and libvirt-sock seems to have the right permissions: srwxrwx--- 1<br>
> root cloud 0 2011-09-21 17:02 /var/run/libvirt/libvirt-sock<br>
> So i do not know why I get the "permission denied" message.<br>
> However, if I run virsh -c qemu+ssh://oneadmin@joker/system, I manage to<br>
> connect to virsh, w/o entering a password.<br>
><br>
> So i do not really know what the problem is, and hope you can help me.<br>
> The funny thing is that it used to work perfectly, but it stopped<br>
> working suddenly, without me changing anything (or at least I think so).<br>
><br>
> Cheers,<br>
> Humberto<br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
<br>
End of Users Digest, Vol 43, Issue 43<br>
*************************************<br>
<br>