<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks a lot again. That fixed the problem :-D<div><br><br><div><hr id="stopSpelling">Date: Fri, 20 Sep 2013 12:39:02 +0200<br>From: francois.rossigneux@inria.fr<br>To: openstack-dev@lists.openstack.org<br>CC: eltonkevani@hotmail.com<br>Subject: Re: [openstack-dev] [energy] Kwapi Ceilometer plugin<br><br>
Yes, you should update Ceilometer.<br>
<br>
Or modify the ceilometer/energy/kwapi.py like this (line 46) :<br>
- message = request.json<br>
+ message = request.json()<br>
<br>
<br>
<div class="ecxmoz-cite-prefix">Le 20/09/2013 12:13, Elton Kevani a
écrit :<br>
</div>
<blockquote cite="mid:DUB117-W6434C2D14FE4C7831F24BDAD220@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr"><br>
Thanks for the quick fix.
<div><br>
<div>Now kwapi-api is working just fine :-D . Now i have
errors in ceilometer side:</div>
<div><br>
</div>
<div>
<div>2013-09-20 12:05:41 INFO [urllib3.connectionpool]
Starting new HTTP connection (1): 10.10.10.121</div>
<div>2013-09-20 12:05:41 DEBUG [urllib3.connectionpool]
"GET /v1/probes/ HTTP/1.1" 200 344</div>
<div>2013-09-20 12:05:41 WARNING
[ceilometer.central.manager] Continue after error from
kwapi: 'instancemethod' object has no attribute
'__getitem__'</div>
<div>2013-09-20 12:05:41 ERROR
[ceilometer.central.manager] 'instancemethod' object has
no attribute '__getitem__'</div>
<div>Traceback (most recent call last):</div>
<div> File
"/usr/lib/python2.7/dist-packages/ceilometer/central/manager.py",
line 50, in poll_and_publish</div>
<div> self.manager)))</div>
<div> File
"/usr/lib/python2.7/dist-packages/ceilometer/energy/kwapi.py",
line 82, in get_counters</div>
<div> for probe in self.iter_probes(manager.keystone):</div>
<div> File
"/usr/lib/python2.7/dist-packages/ceilometer/energy/kwapi.py",
line 45, in iter_probes</div>
<div> probes = message['probes']</div>
<div>TypeError: 'instancemethod' object has no attribute
'__getitem__'</div>
<div><br>
</div>
<div><br>
</div>
<div>Do you know something about this error?</div>
</div>
</div>
</div>
</blockquote></div></div> </div></body>
</html>