[openstack-dev] [energy] Kwapi Ceilometer plugin

Elton Kevani eltonkevani at hotmail.com
Fri Sep 20 08:09:20 UTC 2013


Hello, I'm trying to install Kwapi from source and make it work with ceilometer.  The kwapi-driver,kwapi-forwarder and kwapi-rrd are working fine but when i try starting kwapi-api i have these errors:
2013-09-20 10:04:37.231 19656 INFO kwapi.plugins.api.app [-] Starting API2013-09-20 10:04:37.234 19656 INFO kwapi.plugins.api.collector [-] Starting Collector2013-09-20 10:04:37.234 19656 INFO kwapi.plugins.api.collector [-] Cleaning collector2013-09-20 10:04:37.235 19656 INFO kwapi.plugins.api.collector [-] API listening to ['ipc:///tmp/kwapi-forwarder']2013-09-20 10:04:37.236 19656 INFO keystoneclient.middleware.auth_token [-] Starting keystone auth_token middleware2013-09-20 10:04:37.237 19656 INFO keystoneclient.middleware.auth_token [-] Using /tmp/keystone-signing-xuW4AL as cache directory for signing certificate2013-09-20 10:04:37.240 19656 INFO werkzeug [-]  * Running on http://0.0.0.0:5000/2013-09-20 10:05:25.427 19656 INFO keystoneclient.middleware.auth_token [-] Auth Token proceeding with requested v2.0 apis2013-09-20 10:05:25.620 19656 ERROR kwapi.plugins.api.app [-] Exception on /v1/probes/ [GET]2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app Traceback (most recent call last):2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app     response = self.full_dispatch_request()2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app     rv = self.handle_user_exception(e)2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app     reraise(exc_type, exc_value, tb)2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1473, in full_dispatch_request2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app     rv = self.preprocess_request()2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app   File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1666, in preprocess_request2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app     rv = func()2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app   File "/root/kwapi/kwapi/plugins/api/acl.py", line 49, in check2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app     if not policy.check_is_admin(headers.get('X-Roles', "").split(",")):2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app   File "/root/kwapi/kwapi/policy.py", line 53, in check_is_admin2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app     init()2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app   File "/root/kwapi/kwapi/policy.py", line 41, in init2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app     reload_func=_set_rules)2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app   File "/root/kwapi/kwapi/utils.py", line 41, in read_cached_file2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app     reload_func(cache_info['data'])2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app   File "/root/kwapi/kwapi/policy.py", line 46, in _set_rules2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app     policy.set_rules(policy.Rules.load_json(data, default_rule))2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app AttributeError: 'module' object has no attribute 'set_rules'2013-09-20 10:05:25.620 19656 TRACE kwapi.plugins.api.app 2013-09-20 10:05:25.631 19656 INFO werkzeug [-] 10.10.10.101 - - [20/Sep/2013 10:05:25] "GET /v1/probes/ HTTP/1.1" 500 -

My api.conf for kwapi is :

# Kwapi config file
[DEFAULT]
# Communicationapi_port = 5000probes_endpoint = ipc:///tmp/kwapi-forwarder
# Signaturesignature_checking = truedriver_metering_secret = test
# ACLacl_enabled = true#acl_auth_url = http://10.10.10.121:5000/v2.0policy_file = /etc/kwapi/policy.json
# Timerscleaning_interval = 300
# Log fileslog_file = /var/log/kwapi/kwapi-api.logverbose = true
[keystone_authtoken]auth_uri = http://10.10.10.101:5000/v2.0auth_host = 10.10.10.101auth_port = 35357auth_protocol = httpauth_version = v2.0admin_user = kwapiadmin_password = testadmin_tenant_name = service

Any suggestions 😊?

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130920/cd879718/attachment-0001.html>


More information about the OpenStack-dev mailing list