[one-users] VM status to unknown after switching to Ganglia

Javier Fontan jfontan at opennebula.org
Wed Apr 4 08:05:00 PDT 2012


Right know we only search hosts in ganglia with the name provided to
ONE (in your case you've only providede the host name) or IP. When we
do not find the hostname as is the we will try to search in the IP
field. In the case you add hosts in ONE using its IP this wil
hopefully work.

Your idea or adding a common domain name for searching is nice and we
are taking it for a future release.

Cheers

On Mon, Apr 2, 2012 at 12:21 PM, Olivier Sallou <olivier.sallou at irisa.fr> wrote:
> I found that issue is related to domain name.
> My hosts have a domain name in Ganglia, not in Open Nebula.
> So poll_ganglia on myhost fails while  myhost.mydomain succeeds
>
> To fix this I updated Ganglia.rb to search host with a "starts-with" but
> this may not be acceptable as a patch, as a starts-with may cause issue with
> other host names in other configurations.
> Either domain name should be added automatically, or configured
> somewhere....
>
> in /usr/lib/one/ruby/Ganglia.rb, I replaced
> xpath="/GANGLIA_XML/CLUSTER/HOST[@NAME='#{host}']"
> with
> xpath="/GANGLIA_XML/CLUSTER/HOST[starts-with(@NAME,'#{host}')]"
>
> Olivier
>
>
> Le 4/2/12 11:49 AM, Olivier Sallou a écrit :
>
> I have moved to Ganglia monitoring.
>
> My VM are in unknown status.
>
> Indeed, after a migration to a ganglia monitored host (not all configured
> for the moment) I see in VM logs:
>
> on Apr  2 11:37:36 2012 [VMM][I]: Successfully execute network driver
> operation: post.
> Mon Apr  2 11:37:36 2012 [LCM][I]: New VM state is RUNNING
> Mon Apr  2 11:40:17 2012 [VMM][I]: ExitCode: 0
> Mon Apr  2 11:40:17 2012 [VMM][I]: VM running but it was not found. Restart
> and delete actions available or try to recover it manually
> Mon Apr  2 11:40:17 2012 [LCM][I]: New VM state is UNKNOWN
>
>
> I can see the metric OPENNEBULA_VMS_INFORMATION  in my host on ganglia
> Once decoded I see:
>
> one-177:
>   :state: a
>   :nettx: 300
>   :usedcpu: "1.5"
>   :name: one-177
>   :usedmemory: 4096000
>   :netrx: 80622
>
> However, in sunstone and onevm I see the unknown status:
>
> oneadmin at genokvm4:/tmp$ onevm show 177
> VIRTUAL MACHINE 177
> INFORMATION
> ID                  : 177
> NAME                : test2
> USER                : oneadmin
> GROUP               : oneadmin
> STATE               : ACTIVE
> LCM_STATE           : UNKNOWN
> HOSTNAME            : genokvm4
> START TIME          : 04/02 11:27:23
> END TIME            : -
> DEPLOY ID           : one-177
>
> VIRTUAL MACHINE
> MONITORING
> NET_TX              : 0
> NET_RX              : 0
> USED MEMORY         : 0
> USED CPU            : 0
>
> PERMISSIONS
> OWNER               : um-
> GROUP               : ---
> OTHER               : ---
>
> VIRTUAL MACHINE
> TEMPLATE
> CONTEXT=[
>   BROADCAST=192.168.2.255,
>   DNS=192.168.2.91,
>   DOMAIN=genouest.org,
>   FILES=/home/genouest/admin/oneadmin/keys/0.pub,
>   GATEWAY=192.168.2.90,
>   HOSTNAME=VM-177,
>   IP=192.168.2.23,
>   NETWORK=192.168.2.0,
>   TARGET=hdb,
>   USERNAME=0 ]
> CPU=2
> DISK=[
>   BUS=ide,
>   CLONE=YES,
>   DISK_ID=0,
>   IMAGE=debian,
>   IMAGE_ID=35,
>   IMAGE_UNAME=oneadmin,
>   READONLY=NO,
>   SAVE=NO,
>   SOURCE=/var/lib/one/images/5b46dddb7011cb645a95e0d861396280,
>   TARGET=hda,
>   TYPE=DISK ]
> GRAPHICS=[
>   KEYMAP=fr,
>   PORT=6077,
>   TYPE=vnc ]
> MEMORY=4000
> NAME=test2
> NIC=[
>   BRIDGE=br0,
>   IP=192.168.2.23,
>   MAC=00:04:c0:a8:02:17,
>   NETWORK=genouest,
>   NETWORK_ID=2,
>   NETWORK_UNAME=oneadmin,
>   VLAN=NO ]
> OS=[
>   ARCH=x86_64,
>   BOOT=hd ]
> RAW=[
>   TYPE=kvm ]
> TEMPLATE_ID=2
> VMID=177
>
> VIRTUAL MACHINE
> HISTORY
>  SEQ        HOSTNAME REASON           START        TIME       PTIME
>    0        genokvm7   user  04/02 11:27:53 00 00:09:38 00 00:02:11
>    1        genokvm4   none  04/02 11:37:21 00 00:09:22 00 00:00:00
>
>
> Olivier
>
> --
>
>
> gpg key id: 4096R/326D8438  (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> --
> Olivier Sallou
> IRISA / University of Rennes 1
> Campus de Beaulieu, 35000 RENNES - FRANCE
> Tel: 02.99.84.71.95
>
> gpg key id: 4096R/326D8438  (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula



More information about the Users mailing list