[Openstack] 26. [energy] How to enable kwapi plugin in Ceilometer ?

Deepthi Dharwar deepthi at linux.vnet.ibm.com
Mon Aug 11 11:54:30 UTC 2014


Thanks a lot Bruno!

Unfortunately I am still facing some minor hiccups.

The machine is all-in-one devstack system.
This has my controller as well as my compute node on it.

Outlining the process:

I indeed created a keystone-service endpoint called 'kwapi'

#> keystone service-create --name=kwapi --type=metering
--description="Energy"
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |              Energy              |
|   enabled   |               True               |
|      id     | b952438819dc4481903455ed9a564c01 |
|     name    |              kwapi               |
|     type    |             metering             |
+-------------+----------------------------------+

I have my kwapi auth_port set to 5002.

stack at mc3:~$ keystone endpoint-create --region RegionOne
--service-id=b952438819dc4481903455ed9a564c01
--publicurl=http://10.0.0.1:5002/v1/probes
--internalurl=http://10.0.0.1:5002/v1/probes
--adminurl=http://10.0.0.1:5002/v1/probes
+-------------+-------------------------------------+
|   Property  |                Value                |
+-------------+-------------------------------------+
|   adminurl  | http://10.0.0.1:5002/v1/probes |
|      id     |   81557eac1b4348a882f2391796ee233f  |
| internalurl | http://10.0.0.1:5002/v1/probes |
|  publicurl  | http://10.0.0.1:5002/v1/probes |
|    region   |              RegionOne              |
|  service_id |   b952438819dc4481903455ed9a564c01  |
+-------------+-------------------------------------+

I am able to fetch the energy and power numbers through the REST API and
python rrd tool. But still ceilometer is unable to read to it.
I have appended the /etc/ceilometer/pipeline.yaml with power and energy
meters.

Ceilometer-acompute is erroring out with the following errors:

DEBUG urllib3.connectionpool [-] Setting read timeout to None
_make_request /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:375
2014-08-11 16:13:25.102 10413 DEBUG urllib3.connectionpool [-] "POST
/v2/tokens HTTP/1.1" 404 93 _make_request
/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:415
2014-08-11 16:13:25.103 10413 ERROR ceilometer.central.manager [-] Skip
interval_task because Keystone error: Authorization Failed: The resource
could not be found. (HTTP 404)



Are there any tweaks in kwapi/api.conf and driver.conf wrt acl and
signing  is concerned for ceilometer to talk to kwapi?


Please do let me know.
Regards,
Deepthi



On 08/08/2014 09:01 PM, Bruno Grazioli wrote:
> Hi Deepthi,
> 
> I solved this problem setting up a keystone endpoind for kwapi, you can
> find more information here:
> 
> http://docs.openstack.org/grizzly/openstack-compute/install/apt/content/keystone-service-endpoint-create.html
> 
> After that change your pipeline.yaml file in /etc/ceilometer/ to
> recognize the energy meter, that would be something like:
> 
>     - name: meter_energy
>       interval: 300
>       meters:
>           - "power*"
>           - "energy*"
>       sinks:
>           - meter_sink
> 
> Restart the ceilometer service and you should be able to collect the
> power and energy metering from kwapi.
> 
> BR,
> Bruno.
> Intern at ICCLab, ZHAW.
> 
>   26. [energy] How to enable kwapi plugin  in Ceilometer ?
> 
>           (Deepthi Dharwar)
> 
>     Message: 26
>     Date: Fri, 08 Aug 2014 14:44:57 +0530
>     From: Deepthi Dharwar <deepthi at linux.vnet.ibm.com
>     <mailto:deepthi at linux.vnet.ibm.com>>
>     To: openstack <openstack at lists.openstack.org
>     <mailto:openstack at lists.openstack.org>>
>     Subject: [Openstack] [energy] How to enable kwapi plugin  in
>             Ceilometer ?
>     Message-ID: <53E49511.9060309 at linux.vnet.ibm.com
>     <mailto:53E49511.9060309 at linux.vnet.ibm.com>>
>     Content-Type: text/plain; charset=ISO-8859-1
> 
>     Hi all,
> 
>     I am running devstack with Ceilometer enabled. I am looking to gather
>     energy and power stats. I have installed kwapi plugin and am able to
>     retrieve Power numbers via the kwapi-driver.
> 
>     I needed some help to know as to how to enable gathering of these power
>     stats in Ceilometer and what are the config changes needed to do on the
>     Ceilometer side for the same ?
> 
>     Regards,
>     Deepthi
> 
> 
> 
> 
>     ------------------------------
> 
>     _______________________________________________
>     Openstack mailing list
>     openstack at lists.openstack.org <mailto:openstack at lists.openstack.org>
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> 
> 
>     End of Openstack Digest, Vol 14, Issue 9
>     ****************************************
> 
> 
> 
> 
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> 





More information about the Openstack mailing list