[one-users] [Monitor Error] Error executing xen.rb. Please help!!!!

張德勤 cinmex91047 at gmail.com
Tue Mar 6 22:39:41 PST 2012


Hello,

First, thank Hector for your reply.
After I set %oneadmin    ALL=(ALL)   NOPASSWD: ALL
It succeed!!!!
the status is on!!
But, something is strange.
When I onehost show 4
the error message is following...

[oneadmin at server ~]$ onehost list
  ID NAME               RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM   STAT
   4 client1              0    400    399    400   3.8G   2.8G   3.8G     on
[oneadmin at server ~]$ onehost show 4
HOST 4 INFORMATION
ID                    : 4
NAME                  : client1
STATE                 : MONITORED
IM_MAD                : im_xen
VM_MAD                : vmm_xen
TM_MAD                : tm_shared

HOST SHARES
MAX MEM               : 4023296
USED MEM (REAL)       : 1108992
USED MEM (ALLOCATED)  : 0
MAX CPU               : 400
USED CPU (REAL)       : 1
USED CPU (ALLOCATED)  : 0
RUNNING VMS           : 0

MONITORING INFORMATION
ARCH=x86_64
CPUSPEED=2826
ERROR=[
  MESSAGE="Error monitoring host 4 : MONITOR FAILURE 4 Error executing
xen.rb
",
  TIMESTAMP="Wed Mar  7 04:57:55 2012" ]
FREECPU=400
FREEMEMORY=2914304
HOSTNAME=client1
HYPERVISOR=xen
MODELNAME="Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz"
NETRX=0
NETTX=0
TOTALCPU=400
TOTALMEMORY=4023296
USEDCPU=1
USEDMEMORY=1108992

But, there is no error message in my oned.log file.

Wed Mar  7 14:29:47 2012 [InM][I]: Monitoring host client1 (4)
Wed Mar  7 14:29:50 2012 [InM][I]: ExitCode: 0
Wed Mar  7 14:29:50 2012 [InM][D]: Host 4 successfully monitored.
Wed Mar  7 14:30:02 2012 [ReM][D]: HostPoolInfo method invoked
Wed Mar  7 14:30:02 2012 [AuM][D]: Message received: LOG I 3387 ExitCode: 0

Wed Mar  7 14:30:02 2012 [AuM][I]: ExitCode: 0
Wed Mar  7 14:30:02 2012 [AuM][D]: Message received: AUTHENTICATE SUCCESS
3387 -

Wed Mar  7 14:30:02 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
Wed Mar  7 14:30:02 2012 [AuM][D]: Message received: LOG I 3388 ExitCode: 0

Wed Mar  7 14:30:02 2012 [AuM][I]: ExitCode: 0
Wed Mar  7 14:30:02 2012 [AuM][D]: Message received: AUTHENTICATE SUCCESS
3388 -

Wed Mar  7 14:30:02 2012 [ReM][D]: AclInfo method invoked
Wed Mar  7 14:30:02 2012 [AuM][D]: Message received: LOG I 3389 ExitCode: 0

Wed Mar  7 14:30:02 2012 [AuM][I]: ExitCode: 0
Wed Mar  7 14:30:02 2012 [AuM][D]: Message received: AUTHENTICATE SUCCESS
3389 -

Wed Mar  7 14:30:32 2012 [ReM][D]: HostPoolInfo method invoked
Wed Mar  7 14:30:32 2012 [AuM][D]: Message received: LOG I 3390 ExitCode: 0

Wed Mar  7 14:30:32 2012 [AuM][I]: ExitCode: 0
Wed Mar  7 14:30:32 2012 [AuM][D]: Message received: AUTHENTICATE SUCCESS
3390 -

Wed Mar  7 14:30:32 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
Wed Mar  7 14:30:32 2012 [AuM][D]: Message received: LOG I 3391 ExitCode: 0

Wed Mar  7 14:30:32 2012 [AuM][I]: ExitCode: 0
Wed Mar  7 14:30:32 2012 [AuM][D]: Message received: AUTHENTICATE SUCCESS
3391 -

Wed Mar  7 14:30:32 2012 [ReM][D]: AclInfo method invoked
Wed Mar  7 14:30:32 2012 [AuM][D]: Message received: LOG I 3392 ExitCode: 0

Wed Mar  7 14:30:32 2012 [AuM][I]: ExitCode: 0
Wed Mar  7 14:30:32 2012 [AuM][D]: Message received: AUTHENTICATE SUCCESS
3392 -


Please help


2012/3/7 Hector Sanjuan <hsanjuan at opennebula.org>

> Hello,
>
>
>  And, I tried run the command on client1, it can monitor my client1
>> self.....
>> But, I must input my password...
>> Is this reason that my ONE server can't monitor the client1???
>>
>
> yes, it seems that is the problem. Please try adding a NOPASSWD to sudoers
> as proposed here:
>
> http://lists.opennebula.org/**pipermail/users-opennebula.**
> org/2010-October/003123.html<http://lists.opennebula.org/pipermail/users-opennebula.org/2010-October/003123.html>
>
> Hector
>
>
>
> En Tue, 06 Mar 2012 20:29:35 +0100, ˆµÂÇÚ <cinmex91047 at gmail.com> escribi¨®:
>
>
>  Dear all£º
>>
>> I am new in OpenNEbula.
>>
>> I have two machines, one is server, and the other one is client1.
>> 1. server £ºCentOS 6 + Opennebula 3.0.0
>> 2. client1£ºCentOS 6 + XEN-kernel(2.6.32.56-1.el6xen.**x86_64) +XEN
>>
>> I have a problem about running onehost list but something wrong.
>>
>> [oneadmin at server ~]$ onehost list
>>  ID NAME               RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM
>> STAT
>>   4 client1              0      0      0    100     0K     0K     0K
>>  err
>>
>> [oneadmin at server ~]$ onehost show 4
>> HOST 4 INFORMATION
>> ID                    : 4
>> NAME                  : client1
>> STATE                 : ERROR
>> IM_MAD                : im_xen
>> VM_MAD                : vmm_xen
>> TM_MAD                : tm_shared
>>
>> HOST SHARES
>> MAX MEM               : 0
>> USED MEM (REAL)       : 0
>> USED MEM (ALLOCATED)  : 0
>> MAX CPU               : 0
>> USED CPU (REAL)       : 0
>> USED CPU (ALLOCATED)  : 0
>> RUNNING VMS           : 0
>>
>> MONITORING INFORMATION
>> ERROR=[
>>  MESSAGE="Error monitoring host 4 : MONITOR FAILURE 4 Error executing
>> xen.rb
>> ",
>>  TIMESTAMP="Wed Mar  7 03:14:59 2012" ]
>>
>>
>> one part of my oned.log is following....
>>
>> Wed Mar  7 03:24:55 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
>> Wed Mar  7 03:24:55 2012 [InM][I]: Command execution fail: 'if [ -x
>> "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes xen 4
>> client1; else                              exit 42; fi'
>> Wed Mar  7 03:24:55 2012 [InM][I]: sudo: no tty present and no askpass
>> program specified
>> Wed Mar  7 03:24:55 2012 [InM][E]: Error executing xen.rb
>> Wed Mar  7 03:24:55 2012 [InM][I]: ExitCode: 255
>> Wed Mar  7 03:24:55 2012 [InM][E]: Error monitoring host 4 : MONITOR
>> FAILURE 4 Error executing xen.rb
>>
>>
>> And, I tried run the command on client1, it can monitor my client1
>> self.....
>> But, I must input my password...
>> Is this reason that my ONE server can't monitor the client1???
>>
>> [oneadmin at client1 xen.d]$ pwd
>> /var/tmp/one/im/xen.d
>> [oneadmin at client1 xen.d]$ ./xen.rb
>> [sudo] password for oneadmin:
>> HYPERVISOR=xen
>> TOTALCPU=400
>> CPUSPEED=2826
>> TOTALMEMORY=4023296
>> FREEMEMORY=2914304
>> USEDMEMORY=1108992
>> USEDCPU=1
>> FREECPU=400
>> NETTX=0
>> NETRX=0
>> [oneadmin at client1 im]$ pwd
>> /var/tmp/one/im
>> [oneadmin at client1 im]$ ./run_probes xen
>> ARCH=x86_64 MODELNAME="Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz"
>> HOSTNAME=client1 HYPERVISOR=xen TOTALCPU=400 CPUSPEED=2826
>> TOTALMEMORY=4023296 FREEMEMORY=2914304 USEDMEMORY=1108992 USEDCPU=1
>> FREECPU=399 NETTX=0 NETRX=0 [oneadmin at client1 im]
>>
>>
>>
>> Someone can help me???
>> Thank you!!!
>>
>>
>>
>
> --
> Hector Sanjuan
> OpenNebula Developer
> ______________________________**_________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
>



-- 
Regards,

Te - Chin, Chang (ˆµÂÇÚ), +886-3-4227151 #57968
Networklab, Computer Science & Information Engineering,
National Central University, Jhongli, Taiwan, R.O.C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120307/ab579d69/attachment-0003.htm>


More information about the Users mailing list