[one-users] onehost problem with kvm

Csom Gyula csom at interface.hu
Thu Jun 24 06:23:03 PDT 2010


Hi,

ops, yes the main branch is for the current development line, sorry for the mistake:)

Back to the eth interface... Please find attached a simple patch that can adopt the NIC names used by the hosts 
to the kvm.rb script. It works like this: 

The bash script reads the BRIDGE setting from the oned.conf and puts this value to kvm.rb. The script should 
be started when oned is started, but could be executed manually as well. Something like this:

  nic_patch.sh [apply]

See the script for more.

Cheers,
Gyula
________________________________________
Feladó: Javier Fontan [jfontan at gmail.com]
Küldve: 2010. június 24. 15:06
Címzett: Csom Gyula
Másolatot kap: Andrea Turli; users at lists.opennebula.org
Tárgy: Re: [one-users] onehost problem with kvm

Hello,

I made the same mistake. That path in the git repository is for the
development version, the foundation for 1.6, so it is normal that the
files are different. To check the file that comes in the tar.gz you
have to look at one-1.4 branch, or more specifically its release tag:
http://dev.opennebula.org/projects/opennebula/repository/revisions/release-1.4/entry/src/im_mad/kvm/kvm.rb

This bug is solved in one-1.4 branch but 1.4.1 tar.gz is unfortunately
not yet released.

Bye

2010/6/23 Csom Gyula <csom at interface.hu>:
> Hi,
>
> We met a similar problem and it turned out that the IM MAD responsible for KVM-specific
> monitoring is kvm.rb<http://dev.opennebula.org/projects/opennebula/repository/revisions/master/entry/src/im_mad/kvm/kvm.rb>. Unfotunately the script found in the ONE v.1.4 download was not in
> synch with the codebase, namely the virsh call at the begining was erroneous...
>
> You may check whether kvm.rb of your installation contains the following line at the
> begining:
>
>  nodeinfo_text = `virsh -c qemu:///system nodeinfo`
>
> if not then you may simple correct it...
>
> Note that: kvm.rb is found in the ONE lib directory within the im_probes subdir.
>
>
> You may also check whether NIC names used in the hosts are in synch with the kvm.rb
> setting, otherwise NETRX, NETTX might not receive monitoring values at all. kvm.rb looks
> for network monitoring values through the eth1 interface by default. If this is not your case
> you might change the setting, eg.:
>
>  NETINTERFACE = "real nic name"
>
> Cheers,
> Gyula
>
> ________________________________
> Feladó: users-bounces at lists.opennebula.org [users-bounces at lists.opennebula.org] ; meghatalmazó: Andrea Turli [andrea.turli at eng.it]
> Küldve: 2010. június 23. 17:04
> Címzett: users at lists.opennebula.org
> Tárgy: [one-users] onehost problem with kvm
>
> Dear all,
>
> I'm starting today a new installation of OpenNebula 1.4 with the really useful OpenNebula Express guide at http://dev.opennebula.org/projects/opennebula-express/wiki
> Unfortunately it seems to be a communication problem between my front-end (Ubuntu 10.04 - KVM - NFS) and my node (Ubuntu 10.04 - KVM - NFS)
>
> Here some outputs from the frot-end:
>
> $ onehost list
>  ID NAME                      RVM   TCPU   FCPU   ACPU    TMEM    FMEM STAT
>   2 grids21.eng.it              0      0      0    100       0 7891240   on
>
>
> oneadmin at lisa:~$ onehost show 2
> HOST 2 INFORMATION
> ID                    : 2
> NAME                  : grids21.eng.it
> STATE                 : MONITORED
> IM_MAD                : im_kvm
> VM_MAD                : vmm_kvm
> TM_MAD                : tm_nfs
>
> HOST SHARES
> MAX MEM               : 0
> USED MEM (REAL)       : 547284
> USED MEM (ALLOCATED)  : 0
> MAX CPU               : 0
> USED CPU (REAL)       : 0
> USED CPU (ALLOCATED)  : 0
> RUNNING VMS           : 0
>
> MONITORING INFORMATION
> ARCH=x86_64
> CPUSPEED=
> FREECPU=0.0
> FREEMEMORY=7891364
> HOSTNAME=bart
> HYPERVISOR=kvm
> MODELNAME=Intel(R) Xeon(R) CPU            5130  @ 2.00GHz
> NETRX=0
> NETTX=0
> TOTALCPU=
> TOTALMEMORY=
> USEDCPU=0.0
> USEDMEMORY=547284
>
> Here also my oned.conf:
>
> Wed Jun 23 16:54:52 2010 [InM][I]: --Mark--
> Wed Jun 23 16:54:52 2010 [InM][D]: Host 2 successfully monitored.
> Wed Jun 23 16:55:30 2010 [ReM][D]: HostInfo method invoked
> Wed Jun 23 16:55:36 2010 [ReM][D]: HostPoolInfo method invoked
> Wed Jun 23 16:55:52 2010 [InM][I]: Monitoring host grids21.eng.it (2)
> Wed Jun 23 16:56:17 2010 [InM][D]: Host 2 successfully monitored.
> Wed Jun 23 16:56:28 2010 [ReM][D]: HostInfo method invoked
> Wed Jun 23 16:57:22 2010 [InM][I]: Monitoring host grids21.eng.it (2)
> Wed Jun 23 16:57:47 2010 [InM][D]: Host 2 successfully monitored.
> Wed Jun 23 16:58:52 2010 [InM][I]: Monitoring host grids21.eng.it (2)
> Wed Jun 23 16:59:17 2010 [InM][D]: Host 2 successfully monitored.
> Wed Jun 23 17:00:22 2010 [InM][I]: Monitoring host grids21.eng.it (2)
> Wed Jun 23 17:00:47 2010 [InM][D]: Host 2 successfully monitored.
> Wed Jun 23 17:01:52 2010 [InM][I]: Monitoring host grids21.eng.it (2)
>
>
> I think there is a problem in retrieving the CPUSPEED, TOTALCPU and TOTALMEMORY and for this reason I cannot run any VM.
> It seems really similar to this post http://lists.opennebula.org/pipermail/users-opennebula.org/2010-February/001453.html but I cannot find there a solution.
>
> Thank you in advance for your help and suggestions,
> Andrea
>
>
>
>
> --
> Andrea Turli
> Ricercatore
> Direzione Ricerca e Innovazione
> andrea.turli at eng.it<mailto:andrea.turli at eng.it>
>
> Engineering Ingegneria Informatica spa
> Via Riccardo Morandi, 32 00148 Roma (RM)
> Tel. +39 06 8307 4710
> Fax +39 06 8307 4200
> www.eng.it<http://www.eng.it>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



--
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nic_patch.sh
Type: application/octet-stream
Size: 3865 bytes
Desc: nic_patch.sh
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100624/49762d17/attachment-0003.obj>


More information about the Users mailing list