Re: [one-users] Error monitoring host

2014-01-14 Thread Javier Fontan
For host monitoring problems you should check /var/log/one/oned.log.
The problems are usually related with passwordless ssh connection.

You should also upgrade your installation. Latest version is 4.4.

On Thu, Dec 12, 2013 at 6:46 PM, (unknown)  wrote:
> Hi,
> When i try to create a new host using sunstone (OpenNebula 3.6), i have the
> following error : Error monitoring host 8 : Monitor Failure 8 could not
> update remotes.
> - Parameters of my host :
> Information Manager driver = KVM
> Virtual Machine Manager driver =KVM
> Network Manager driver : dummy
>
> Any ideas to resolve this problem please ???
>
> Best Regards
> --
> HASSAN Karim
> PhD student in computer science.
> Researcher at LATICE Laboratory ENSIT
> TUNISIA
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Error monitoring host

2013-12-13 Thread Ruben S. Montero
You need to configure ssh password-less access to the hosts from the
front-end.


On Fri, Dec 13, 2013 at 7:31 PM, Karim Hassan  wrote:

> Hi,
> When i try to create a new host using sunstone (OpenNebula 3.6), i have
> the following error : *Error monitoring host 8 : Monitor Failure 8 could
> not update remotes.*
> - Parameters of my host :
> Information Manager driver = KVM
> Virtual Machine Manager driver =KVM
> Network Manager driver : dummy
>
> Any ideas to resolve this problem please ???
>
> Best Regards
> --
> HASSAN Karim
> PhD student in computer science.
> Researcher at LATICE Laboratory ENSIT
> TUNISIA
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Error monitoring host

2013-12-13 Thread Karim Hassan
Hi,
When i try to create a new host using sunstone (OpenNebula 3.6), i have the
following error : *Error monitoring host 8 : Monitor Failure 8 could not
update remotes.*
- Parameters of my host :
Information Manager driver = KVM
Virtual Machine Manager driver =KVM
Network Manager driver : dummy

Any ideas to resolve this problem please ???

Best Regards
--
HASSAN Karim
PhD student in computer science.
Researcher at LATICE Laboratory ENSIT
TUNISIA
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Error monitoring host

2013-12-12 Thread (unknown)
Hi,
When i try to create a new host using sunstone (OpenNebula 3.6), i have the 
following error : Error monitoring host 8 : Monitor Failure 8 could not update 
remotes.
- Parameters of my host :
Information Manager driver = KVM
Virtual Machine Manager driver =KVM
Network Manager driver : dummy


Any ideas to resolve this problem please ???


Best Regards
--
HASSAN Karim
PhD student in computer science.
Researcher at LATICE Laboratory ENSIT
TUNISIA___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] error monitoring host - even though logs indicate success

2012-08-02 Thread Ruben S. Montero
Hi,

No the host is not treated as in an error state. The ERROR message
(includind its TIMESTAMP) is left in the host template for information
purposes.

Once you have verified the issue you can freely remove the message doing

onehost update 1

Just remove the ERROR attribute in the editor.

Cheers

Ruben

On Thu, Aug 2, 2012 at 8:34 PM, Shantanu Pavgi  wrote:

>
> I am getting following monitoring error on one of the host as show below:
>
> {{{
>
> $ onehost show 1
> HOST 1 INFORMATION
> ID: 1
> NAME  : kvm-04
> STATE : MONITORED
> IM_MAD: im_kvm
> VM_MAD: vmm_kvm
> VN_MAD: dummy
> TM_MAD: tm_shared
> LAST MONITORING TIME  : 1343923509
>
> HOST SHARES
> MAX MEM   : 49409948
> USED MEM (REAL)   : 9608032
> USED MEM (ALLOCATED)  : 16777216
> MAX CPU   : 2400
> USED CPU (REAL)   : 4
> USED CPU (ALLOCATED)  : 600
> MAX DISK  : 0
> USED DISK (REAL)  : 0
> USED DISK (ALLOCATED) : 0
> RUNNING VMS   : 7
>
> MONITORING INFORMATION
> ARCH=x86_64
> CPUSPEED=2660
> ERROR=[
>   MESSAGE="Error monitoring host 1 : MONITOR FAILURE 1 -
> ",
>   TIMESTAMP="Tue Jul 31 12:30:31 2012" ]
> FREECPU=2395.2
> FREEMEMORY=39801916
> HOSTNAME=kvm-04.uabgrid.uab.edu
> HYPERVISOR=kvm
> MODELNAME="Intel(R) Xeon(R) CPU X5650 @ 2.67GHz"
> NETRX=0
> NETTX=0
> TOTALCPU=2400
> TOTALMEMORY=49409948
> USEDCPU=4.800018
> USEDMEMORY=9608032
>
> }}}
>
> OpenNebula had problems in monitoring this host on Jul 31'st. However, now
> it's able to monitor this host successfully as indicated in oned.log file
> below:
>
> {{{
>
> Thu Aug  2 11:04:39 2012 [InM][D]: Host 0 successfully monitored.
> Thu Aug  2 11:05:05 2012 [ReM][D]: HostPoolInfo method invoked
> Thu Aug  2 11:05:05 2012 [InM][I]: Monitoring host kvm-04 (1)
> Thu Aug  2 11:05:05 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Aug  2 11:05:05 2012 [ReM][D]: AclInfo method invoked
> Thu Aug  2 11:05:05 2012 [ReM][D]: HostInfo method invoked
> Thu Aug  2 11:05:09 2012 [InM][I]: ExitCode: 0
> Thu Aug  2 11:05:09 2012 [InM][D]: Host 1 successfully monitored.
> Thu Aug  2 11:05:35 2012 [ReM][D]: HostPoolInfo method invoked
> Thu Aug  2 11:05:35 2012 [ReM][D]: HostInfo method invoked
> Thu Aug  2 11:05:35 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Aug  2 11:05:35 2012 [ReM][D]: AclInfo method invoked
> Thu Aug  2 11:05:50 2012 [InM][I]: Monitoring host kvm-03 (0)
> Thu Aug  2 11:05:50 2012 [InM][I]: Monitoring host kvm-02 (3)
> Thu Aug  2 11:05:54 2012 [InM][I]: ExitCode: 0
> Thu Aug  2 11:05:54 2012 [InM][D]: Host 3 successfully monitored.
> Thu Aug  2 11:05:54 2012 [InM][I]: ExitCode: 0
> Thu Aug  2 11:05:54 2012 [InM][D]: Host 0 successfully monitored.
>
> }}}
>
>
> Although 'onehost show' command displays monitoring information, it also
> displays 'ERROR  = Error monitoring host 1'. So is it an error message or
> informative message about last monitoring error? Is the host still being
> treated in error state? Any help?
>
>
> --
> Thanks,
> Shantanu
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] error monitoring host - even though logs indicate success

2012-08-02 Thread Shantanu Pavgi

I am getting following monitoring error on one of the host as show below: 

{{{

$ onehost show 1
HOST 1 INFORMATION  
ID: 1   
NAME  : kvm-04
STATE : MONITORED   
IM_MAD: im_kvm  
VM_MAD: vmm_kvm 
VN_MAD: dummy   
TM_MAD: tm_shared   
LAST MONITORING TIME  : 1343923509  

HOST SHARES 
MAX MEM   : 49409948
USED MEM (REAL)   : 9608032 
USED MEM (ALLOCATED)  : 16777216
MAX CPU   : 2400
USED CPU (REAL)   : 4   
USED CPU (ALLOCATED)  : 600 
MAX DISK  : 0   
USED DISK (REAL)  : 0   
USED DISK (ALLOCATED) : 0   
RUNNING VMS   : 7   

MONITORING INFORMATION  
ARCH=x86_64
CPUSPEED=2660
ERROR=[
  MESSAGE="Error monitoring host 1 : MONITOR FAILURE 1 -
",
  TIMESTAMP="Tue Jul 31 12:30:31 2012" ]
FREECPU=2395.2
FREEMEMORY=39801916
HOSTNAME=kvm-04.uabgrid.uab.edu
HYPERVISOR=kvm
MODELNAME="Intel(R) Xeon(R) CPU X5650 @ 2.67GHz"
NETRX=0
NETTX=0
TOTALCPU=2400
TOTALMEMORY=49409948
USEDCPU=4.800018
USEDMEMORY=9608032

}}}

OpenNebula had problems in monitoring this host on Jul 31'st. However, now it's 
able to monitor this host successfully as indicated in oned.log file below: 

{{{

Thu Aug  2 11:04:39 2012 [InM][D]: Host 0 successfully monitored.
Thu Aug  2 11:05:05 2012 [ReM][D]: HostPoolInfo method invoked
Thu Aug  2 11:05:05 2012 [InM][I]: Monitoring host kvm-04 (1)
Thu Aug  2 11:05:05 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
Thu Aug  2 11:05:05 2012 [ReM][D]: AclInfo method invoked
Thu Aug  2 11:05:05 2012 [ReM][D]: HostInfo method invoked
Thu Aug  2 11:05:09 2012 [InM][I]: ExitCode: 0
Thu Aug  2 11:05:09 2012 [InM][D]: Host 1 successfully monitored.
Thu Aug  2 11:05:35 2012 [ReM][D]: HostPoolInfo method invoked
Thu Aug  2 11:05:35 2012 [ReM][D]: HostInfo method invoked
Thu Aug  2 11:05:35 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
Thu Aug  2 11:05:35 2012 [ReM][D]: AclInfo method invoked
Thu Aug  2 11:05:50 2012 [InM][I]: Monitoring host kvm-03 (0)
Thu Aug  2 11:05:50 2012 [InM][I]: Monitoring host kvm-02 (3)
Thu Aug  2 11:05:54 2012 [InM][I]: ExitCode: 0
Thu Aug  2 11:05:54 2012 [InM][D]: Host 3 successfully monitored.
Thu Aug  2 11:05:54 2012 [InM][I]: ExitCode: 0
Thu Aug  2 11:05:54 2012 [InM][D]: Host 0 successfully monitored.

}}}


Although 'onehost show' command displays monitoring information, it also 
displays 'ERROR  = Error monitoring host 1'. So is it an error message or 
informative message about last monitoring error? Is the host still being 
treated in error state? Any help? 


--
Thanks,
Shantanu


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


Re: [one-users] Error monitoring host 0: Error executing xen.rb

2012-06-08 Thread Carlos Martín Sánchez
Hi,

Old error messages are left in the template to warn you that a problem
existed, even if it was later fixed.
You can ignore old messages, but if it is bothering you, it can be deleted
from the Host template using the 'onehost update' command.

Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebula



On Fri, Jun 8, 2012 at 1:22 PM, Massimo Canonico  wrote:

> HI,
> read in the mailing list this error, but I'm not sure what I can do.
>
> My host is monitored, but "onehost show " shows this output:
>
> [oneadmin@minicloud03 ttylinux]$ onehost show 0
> HOST 0 INFORMATION
> ID: 0
> NAME  : minicloud.di.unipmn.it
> CLUSTER   : minicloud
> STATE : MONITORED
> IM_MAD: im_xen
> VM_MAD: vmm_xen
> VN_MAD: dummy
> LAST MONITORING TIME  : 1339155601
>
> HOST SHARES
> MAX MEM   : 4192256
> USED MEM (REAL)   : 3458048
> USED MEM (ALLOCATED)  : 0
> MAX CPU   : 400
> USED CPU (REAL)   : 0
> USED CPU (ALLOCATED)  : 0
> MAX DISK  : 0
> USED DISK (REAL)  : 0
> USED DISK (ALLOCATED) : 0
> RUNNING VMS   : 0
>
> MONITORING INFORMATION
> ARCH="x86_64"
> CPUSPEED="2400"
> ERROR=[
>  MESSAGE="Error monitoring host 0 : MONITOR FAILURE 0 Error executing
> xen.rb
> ",
>  TIMESTAMP="Wed Jun  6 16:11:31 2012" ]
> FREECPU="400"
> FREEMEMORY="734208"
> HOSTNAME="minicloud.di.unipmn.**it "
> HYPERVISOR="xen"
> MODELNAME="Intel(R) Xeon(R) CPU X3220 @ 2.40GHz"
> NETRX="0"
> NETTX="0"
> TOTALCPU="400"
> TOTALMEMORY="4192256"
> USEDCPU="0"
> USEDMEMORY="3458048"
>
>
> The timestamp is quite old. I just wondering if the problem is related to
> the fact that front-end and host are not sycronized:
>
> front-end time: Fri Jun  8 13:49:10 CEST 2012
> host time: Fri Jun  8 13:52:52 CEST 2012
>
> almost 3 minutes different.
>
> Cheers,
>  Massimo
>
> __**_
> 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


[one-users] Error monitoring host 0: Error executing xen.rb

2012-06-08 Thread Massimo Canonico

HI,
read in the mailing list this error, but I'm not sure what I can do.

My host is monitored, but "onehost show " shows this output:

[oneadmin@minicloud03 ttylinux]$ onehost show 0
HOST 0 INFORMATION
ID: 0
NAME  : minicloud.di.unipmn.it
CLUSTER   : minicloud
STATE : MONITORED
IM_MAD: im_xen
VM_MAD: vmm_xen
VN_MAD: dummy
LAST MONITORING TIME  : 1339155601

HOST SHARES
MAX MEM   : 4192256
USED MEM (REAL)   : 3458048
USED MEM (ALLOCATED)  : 0
MAX CPU   : 400
USED CPU (REAL)   : 0
USED CPU (ALLOCATED)  : 0
MAX DISK  : 0
USED DISK (REAL)  : 0
USED DISK (ALLOCATED) : 0
RUNNING VMS   : 0

MONITORING INFORMATION
ARCH="x86_64"
CPUSPEED="2400"
ERROR=[
  MESSAGE="Error monitoring host 0 : MONITOR FAILURE 0 Error executing 
xen.rb

",
  TIMESTAMP="Wed Jun  6 16:11:31 2012" ]
FREECPU="400"
FREEMEMORY="734208"
HOSTNAME="minicloud.di.unipmn.it"
HYPERVISOR="xen"
MODELNAME="Intel(R) Xeon(R) CPU X3220 @ 2.40GHz"
NETRX="0"
NETTX="0"
TOTALCPU="400"
TOTALMEMORY="4192256"
USEDCPU="0"
USEDMEMORY="3458048"


The timestamp is quite old. I just wondering if the problem is related 
to the fact that front-end and host are not sycronized:


front-end time: Fri Jun  8 13:49:10 CEST 2012
host time: Fri Jun  8 13:52:52 CEST 2012

almost 3 minutes different.

Cheers,
 Massimo

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


[one-users] Error monitoring host 8 : MONITOR FAILURE 8 Error executing xen.rb

2012-05-23 Thread Mirna

Error monitoring host 8 : MONITOR FAILURE 8 Error executing xen.rb


Participe en la XVI Convencion Cientifica de Ingenieria y Arquitectura del 26 
al 30 de noviembre de 2012. La Habana, Cuba: http://ccia.cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Error monitoring host

2011-09-22 Thread Humberto N. Castejon Martinez
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.

Cheers,
Humberto


Date: Wed, 21 Sep 2011 22:19:32 +0400
From: kna...@gmail.com
To: users@lists.opennebula.org
Subject: Re: [one-users] Error monitoring host
Message-ID: <4e7a2ab4.3070...@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi Humberto,

Just a guess.

What the output of the command 'grep nodeinfo_text
$ONE_LOCATION/lib/remotes/im/kvm.d/kvm.rb|grep virsh' on front-end node?
I have
nodeinfo_text = `virsh -c qemu:///system nodeinfo`

But it looks like you should change it to
virsh -c qemu+ssh:///system

HTH,
Nikolay.

Humberto N. Castejon Martinez wrote on 21/09/11 19:21:
> 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
>
>
> ___
> 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


End of Users Digest, Vol 43, Issue 43
*
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Error monitoring host

2011-09-21 Thread Fabian Wenk

Hello Humberto

On 21.09.11 17:21, Humberto N. Castejon Martinez wrote:

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.


I guess the ssh login from the front end to the cluster node with 
the user oneadmin does not work.


Try manually from the front end to use 'ssh -v oneadmin@joker' 
(the -v gives some verbose output, if you increase eg. with -vvv, 
it will give even more). It guess on the cluster node the file 
~oneadmin/.ssh/id_dsa.pub is missing (or not readable for 
oneadmin). Check also the sshd log file on the cluster node.



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


Re: [one-users] Error monitoring host

2011-09-21 Thread knawnd

Hi Humberto,

Just a guess.

What the output of the command 'grep nodeinfo_text 
$ONE_LOCATION/lib/remotes/im/kvm.d/kvm.rb|grep virsh' on front-end node?

I have
nodeinfo_text = `virsh -c qemu:///system nodeinfo`

But it looks like you should change it to
virsh -c qemu+ssh:///system

HTH,
Nikolay.

Humberto N. Castejon Martinez wrote on 21/09/11 19:21:

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


___
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


[one-users] Error monitoring host

2011-09-21 Thread Humberto N. Castejon Martinez
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
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org