<div dir="ltr"><br><div class="gmail_extra">Sorry Deepthi I was not so clear in my first answer,<br><div class="gmail_extra"><br></div><div class="gmail_extra">Having
a look at
<a href="https://github.com/openstack/ceilometer/blob/master/ceilometer/energy/kwapi.py">https://github.com/openstack/ceilometer/blob/master/ceilometer/energy/kwapi.py</a>
at line 62, we see that the client searches for an endpoint called
energy, so I would set the type as energy instead of metering, would be
something like:<br><br>>>keystone service-create --name=Kwapi --type=energy<br>
--description="Kwapi Energy Monitor"<br><br></div>Your endpoint does not seems is set up correctly, so try to remove the "/probes" in the end of the urls, <a href="http://10.0.0.1:5002/v1/probes" target="_blank">http://10.0.0.1:5002/v1</a> and restart ceilometer service. If you still have issues with the samples try to change the time interval. <br>
<br></div><div class="gmail_extra">BR,<br></div><div class="gmail_extra">Bruno.<br>Intern at ICCLab, ZHAW.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 1:54 PM, Deepthi Dharwar <span dir="ltr"><<a href="mailto:deepthi@linux.vnet.ibm.com" target="_blank">deepthi@linux.vnet.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks a lot Bruno!<br>
<br>
Unfortunately I am still facing some minor hiccups.<br>
<br>
The machine is all-in-one devstack system.<br>
This has my controller as well as my compute node on it.<br>
<br>
Outlining the process:<br>
<br>
I indeed created a keystone-service endpoint called 'kwapi'<br>
<br>
#> keystone service-create --name=kwapi --type=metering<br>
--description="Energy"<br>
+-------------+----------------------------------+<br>
| Property | Value |<br>
+-------------+----------------------------------+<br>
| description | Energy |<br>
| enabled | True |<br>
| id | b952438819dc4481903455ed9a564c01 |<br>
| name | kwapi |<br>
| type | metering |<br>
+-------------+----------------------------------+<br>
<br>
I have my kwapi auth_port set to 5002.<br>
<br>
stack@mc3:~$ keystone endpoint-create --region RegionOne<br>
--service-id=b952438819dc4481903455ed9a564c01<br>
--publicurl=<a href="http://10.0.0.1:5002/v1/probes" target="_blank">http://10.0.0.1:5002/v1/probes</a><br>
--internalurl=<a href="http://10.0.0.1:5002/v1/probes
--adminurl=http://10.0.0.1:5002/v1/probes" target="_blank">http://10.0.0.1:5002/v1/probes<br>
--adminurl=http://10.0.0.1:5002/v1/probes</a><br>
+-------------+-------------------------------------+<br>
| Property | Value |<br>
+-------------+-------------------------------------+<br>
| adminurl | <a href="http://10.0.0.1:5002/v1/probes" target="_blank">http://10.0.0.1:5002/v1/probes</a> |<br>
| id | 81557eac1b4348a882f2391796ee233f |<br>
| internalurl | <a href="http://10.0.0.1:5002/v1/probes" target="_blank">http://10.0.0.1:5002/v1/probes</a> |<br>
| publicurl | <a href="http://10.0.0.1:5002/v1/probes" target="_blank">http://10.0.0.1:5002/v1/probes</a> |<br>
| region | RegionOne |<br>
| service_id | b952438819dc4481903455ed9a564c01 |<br>
+-------------+-------------------------------------+<br>
<br>
I am able to fetch the energy and power numbers through the REST API and<br>
python rrd tool. But still ceilometer is unable to read to it.<br>
I have appended the /etc/ceilometer/pipeline.yaml with power and energy<br>
meters.<br>
<br>
Ceilometer-acompute is erroring out with the following errors:<br>
<br>
DEBUG urllib3.connectionpool [-] Setting read timeout to None<br>
_make_request /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:375<br>
2014-08-11 16:13:25.102 10413 DEBUG urllib3.connectionpool [-] "POST<br>
/v2/tokens HTTP/1.1" 404 93 _make_request<br>
/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:415<br>
2014-08-11 16:13:25.103 10413 ERROR ceilometer.central.manager [-] Skip<br>
interval_task because Keystone error: Authorization Failed: The resource<br>
could not be found. (HTTP 404)<br>
<br>
<br>
<br>
Are there any tweaks in kwapi/api.conf and driver.conf wrt acl and<br>
signing is concerned for ceilometer to talk to kwapi?<br>
<br>
<br>
Please do let me know.<br>
Regards,<br>
Deepthi<br>
<div class=""><br>
<br>
<br>
On 08/08/2014 09:01 PM, Bruno Grazioli wrote:<br>
> Hi Deepthi,<br>
><br>
> I solved this problem setting up a keystone endpoind for kwapi, you can<br>
> find more information here:<br>
><br>
> <a href="http://docs.openstack.org/grizzly/openstack-compute/install/apt/content/keystone-service-endpoint-create.html" target="_blank">http://docs.openstack.org/grizzly/openstack-compute/install/apt/content/keystone-service-endpoint-create.html</a><br>
><br>
> After that change your pipeline.yaml file in /etc/ceilometer/ to<br>
> recognize the energy meter, that would be something like:<br>
><br>
> - name: meter_energy<br>
> interval: 300<br>
> meters:<br>
> - "power*"<br>
> - "energy*"<br>
> sinks:<br>
> - meter_sink<br>
><br>
> Restart the ceilometer service and you should be able to collect the<br>
> power and energy metering from kwapi.<br>
><br>
> BR,<br>
> Bruno.<br>
> Intern at ICCLab, ZHAW.<br>
><br>
> 26. [energy] How to enable kwapi plugin in Ceilometer ?<br>
><br>
> (Deepthi Dharwar)<br>
><br>
> Message: 26<br>
> Date: Fri, 08 Aug 2014 14:44:57 +0530<br>
> From: Deepthi Dharwar <<a href="mailto:deepthi@linux.vnet.ibm.com">deepthi@linux.vnet.ibm.com</a><br>
</div>> <mailto:<a href="mailto:deepthi@linux.vnet.ibm.com">deepthi@linux.vnet.ibm.com</a>>><br>
> To: openstack <<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> <mailto:<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>>><br>
<div class="">> Subject: [Openstack] [energy] How to enable kwapi plugin in<br>
> Ceilometer ?<br>
> Message-ID: <<a href="mailto:53E49511.9060309@linux.vnet.ibm.com">53E49511.9060309@linux.vnet.ibm.com</a><br>
</div>> <mailto:<a href="mailto:53E49511.9060309@linux.vnet.ibm.com">53E49511.9060309@linux.vnet.ibm.com</a>>><br>
<div class="">> Content-Type: text/plain; charset=ISO-8859-1<br>
><br>
> Hi all,<br>
><br>
> I am running devstack with Ceilometer enabled. I am looking to gather<br>
> energy and power stats. I have installed kwapi plugin and am able to<br>
> retrieve Power numbers via the kwapi-driver.<br>
><br>
> I needed some help to know as to how to enable gathering of these power<br>
> stats in Ceilometer and what are the config changes needed to do on the<br>
> Ceilometer side for the same ?<br>
><br>
> Regards,<br>
> Deepthi<br>
><br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> Openstack mailing list<br>
</div>> <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a> <mailto:<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>><br>
<div class="">> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
><br>
> End of Openstack Digest, Vol 14, Issue 9<br>
> ****************************************<br>
><br>
><br>
><br>
><br>
</div>> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
<br>
</blockquote></div><br></div></div>