[one-users] Problem with opennebula host KVM

Filippo Dalla Gassa pippo.dallagassa at gmail.com
Fri Jan 14 09:19:26 PST 2011


Have you tried to delete host, stop one, start one and recreate the host?

Filippo Dalla Gassa


Il 14/01/2011 18:04, CLABAUT, Emmanuel ha scritto:
> Ok Thanks for your help, but it seems to be the same problem.
>
> I don't understand why i have this :  onehost list
>
>   ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    
> FMEM STAT
>    0 192.168.2.4       default           0      0           0          
> 100      0K         139.1G   on
>
> Thanks. Regards
>
> 2011/1/14 Filippo Dalla Gassa <pippo.dallagassa at gmail.com 
> <mailto:pippo.dallagassa at gmail.com>>
>
>     Add the line ENV['LANG']='C' at the beginning of the script, just
>     after the initial comments, and then stop and restart one so that
>     changes apply.
>
>     Regards,
>
>     Filippo Dalla Gassa
>
>
>     Il 14/01/2011 17:47, CLABAUT, Emmanuel ha scritto:
>>     Thanks for your answer.
>>     I try to find the environnement variable LANG in script kvm.rb,
>>     but there is not this kind of variable.
>>     Can you explain me how and where have you done this modificaiton,
>>     because i don't really understand.
>>     when i make virsh nodeinfo i have a french result.
>>     And in kvm.rb it seems to be in english.
>>
>>     Thanks for your help.
>>
>>     Regards.
>>
>>     2011/1/14 Filippo Dalla Gassa <pippo.dallagassa at gmail.com
>>     <mailto:pippo.dallagassa at gmail.com>>
>>
>>         Hi,
>>         I don't know if it's your case, but I had similar problem
>>         with monitoring host and it was due to the fact that my
>>         system language was different from english (in my case
>>         italian), and so the script could not be able to understand
>>         the values returned by "virsh nodeinfo" command called in the
>>         script.
>>         I've solved adding a declaration in the script to change the
>>         environment variable LANG to the value C.
>>
>>         Hope to be helpful,
>>
>>         Filippo Dalla Gassa
>>
>>
>>         Il 14/01/2011 17:08, CLABAUT, Emmanuel ha scritto:
>>>         Hello,
>>>
>>>         I have installed opennebula and one of my host have a
>>>         problem, opennebula can't seen totalcpu, cpuspeed,
>>>         totalmemory of this host. And I don't understand why. I have
>>>         installed Kvm, Opennebula-node with ./node-install.sh.
>>>         And cause of this problem, i can't launch VM, it remains in
>>>         pending state.
>>>
>>>         Here is an output of onehost list :
>>>          onehost list
>>>           ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU   
>>>         TMEM    FMEM STAT
>>>           11 192.168.2.4       default    0      0      0   
>>>         100      0K  139.1G   on
>>>
>>>
>>>         Here is an output of onehost show 11 :
>>>         onehost show 11
>>>         HOST 11 INFORMATION
>>>         ID                    : 11
>>>         NAME                  : 192.168.2.4
>>>         CLUSTER               : default
>>>         STATE                 : MONITORED
>>>         IM_MAD                : im_kvm
>>>         VM_MAD                : vmm_kvm
>>>         TM_MAD                : tm_ssh
>>>
>>>         HOST SHARES
>>>         MAX MEM               : 0
>>>         USED MEM (REAL)       : 3063644
>>>         USED MEM (ALLOCATED)  : 0
>>>         MAX CPU               : 0
>>>         USED CPU (REAL)       : 0
>>>         USED CPU (ALLOCATED)  : 0
>>>         RUNNING VMS           : 0
>>>
>>>         MONITORING INFORMATION
>>>         ARCH=x86_64
>>>         CPUSPEED=0
>>>         FREECPU=0.0
>>>         FREEMEMORY=145890140
>>>         HOSTNAME=SRV03-KVM
>>>         HYPERVISOR=kvm
>>>         MODELNAME=Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
>>>         NETRX=0
>>>         NETTX=0
>>>         TOTALCPU=0
>>>         TOTALMEMORY=0
>>>         USEDCPU=0.0
>>>         USEDMEMORY=3063644
>>>
>>>
>>>         Here is an output of ruby -wd kvm.rb (exécuté sur l'host) :
>>>         ruby -wd kvm.rb
>>>         kvm.rb:67: warning: global variable `$total_cpu' not initialized
>>>         kvm.rb:68: warning: global variable `$total_cpu' not initialized
>>>         HYPERVISOR=kvm
>>>         kvm.rb:92: warning: global variable `$total_cpu' not initialized
>>>         TOTALCPU=0
>>>         kvm.rb:93: warning: global variable `$cpu_speed' not initialized
>>>         CPUSPEED=0
>>>         kvm.rb:95: warning: global variable `$total_memory' not
>>>         initialized
>>>         TOTALMEMORY=0
>>>         USEDMEMORY=3069604
>>>         FREEMEMORY=145884212
>>>         FREECPU=0.0
>>>         USEDCPU=0.0
>>>         NETRX=0
>>>         NETTX=0
>>>
>>>         Thanks for your help.
>>>
>>>
>>>         _______________________________________________
>>>         Users mailing list
>>>         Users at lists.opennebula.org  <mailto:Users at lists.opennebula.org>
>>>         http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110114/19620035/attachment-0003.htm>


More information about the Users mailing list