<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I found that issue is related to domain name.<br>
My hosts have a domain name in Ganglia, not in Open Nebula.<br>
So poll_ganglia on myhost fails while myhost.mydomain succeeds<br>
<br>
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.<br>
Either domain name should be added automatically, or configured
somewhere....<br>
<br>
in /usr/lib/one/ruby/Ganglia.rb, I replaced<br>
xpath="/GANGLIA_XML/CLUSTER/HOST[@NAME='#{host}']"<br>
with <br>
xpath="/GANGLIA_XML/CLUSTER/HOST[starts-with(@NAME,'#{host}')]"<br>
<br>
Olivier<br>
<br>
<br>
Le 4/2/12 11:49 AM, Olivier Sallou a écrit :
<blockquote cite="mid:4F797636.4000105@irisa.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
I have moved to Ganglia monitoring. <br>
<br>
My VM are in unknown status.<br>
<br>
Indeed, after a migration to a ganglia monitored host (not all
configured for the moment) I see in VM logs:<br>
<meta charset="utf-8">
<pre style="color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">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</pre>
<br>
I can see the metric <span style="color: rgb(100, 100, 100);
font-family: helvetica, sans-serif; font-size: 13px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 16px; orphans: 2;
text-align: -webkit-auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline
!important; float: none; ">OPENNEBULA_VMS_INFORMATION in my
host on ganglia</span><br>
Once decoded I see:<br>
<br>
one-177: <br>
:state: a<br>
:nettx: 300<br>
:usedcpu: "1.5"<br>
:name: one-177<br>
:usedmemory: 4096000<br>
:netrx: 80622<br>
<br>
However, in sunstone and onevm I see the unknown status:<br>
<br>
oneadmin@genokvm4:/tmp$ onevm show 177<br>
VIRTUAL MACHINE 177
INFORMATION <br>
ID : 177 <br>
NAME : test2 <br>
USER : oneadmin <br>
GROUP : oneadmin <br>
STATE : ACTIVE <br>
LCM_STATE : UNKNOWN <br>
HOSTNAME : genokvm4 <br>
START TIME : 04/02 11:27:23 <br>
END TIME : - <br>
DEPLOY ID : one-177 <br>
<br>
VIRTUAL MACHINE
MONITORING <br>
NET_TX : 0 <br>
NET_RX : 0 <br>
USED MEMORY : 0 <br>
USED CPU : 0 <br>
<br>
PERMISSIONS
<br>
OWNER : um- <br>
GROUP : --- <br>
OTHER : --- <br>
<br>
VIRTUAL MACHINE
TEMPLATE <br>
CONTEXT=[<br>
BROADCAST=192.168.2.255,<br>
DNS=192.168.2.91,<br>
DOMAIN=genouest.org,<br>
FILES=/home/genouest/admin/oneadmin/keys/0.pub,<br>
GATEWAY=192.168.2.90,<br>
HOSTNAME=VM-177,<br>
IP=192.168.2.23,<br>
NETWORK=192.168.2.0,<br>
TARGET=hdb,<br>
USERNAME=0 ]<br>
CPU=2<br>
DISK=[<br>
BUS=ide,<br>
CLONE=YES,<br>
DISK_ID=0,<br>
IMAGE=debian,<br>
IMAGE_ID=35,<br>
IMAGE_UNAME=oneadmin,<br>
READONLY=NO,<br>
SAVE=NO,<br>
SOURCE=/var/lib/one/images/5b46dddb7011cb645a95e0d861396280,<br>
TARGET=hda,<br>
TYPE=DISK ]<br>
GRAPHICS=[<br>
KEYMAP=fr,<br>
PORT=6077,<br>
TYPE=vnc ]<br>
MEMORY=4000<br>
NAME=test2<br>
NIC=[<br>
BRIDGE=br0,<br>
IP=192.168.2.23,<br>
MAC=00:04:c0:a8:02:17,<br>
NETWORK=genouest,<br>
NETWORK_ID=2,<br>
NETWORK_UNAME=oneadmin,<br>
VLAN=NO ]<br>
OS=[<br>
ARCH=x86_64,<br>
BOOT=hd ]<br>
RAW=[<br>
TYPE=kvm ]<br>
TEMPLATE_ID=2<br>
VMID=177<br>
<br>
VIRTUAL MACHINE
HISTORY <br>
SEQ HOSTNAME REASON START TIME
PTIME<br>
0 genokvm7 user 04/02 11:27:53 00 00:09:38 00
00:02:11<br>
1 genokvm4 none 04/02 11:37:21 00 00:09:22 00
00:00:00<br>
<br>
<br>
Olivier<br>
<pre class="moz-signature" cols="72">--
gpg key id: 4096R/326D8438 (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
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
</pre>
</body>
</html>