[openstack-dev] [energy] Kwapi Ceilometer plugin
François Rossigneux
francois.rossigneux at inria.fr
Fri Sep 20 09:38:36 UTC 2013
Hello,
I fixed the issue.
Thanks.
Le 20/09/2013 10:09, Elton Kevani a écrit :
> 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 API
> 2013-09-20 10:04:37.234 19656 INFO kwapi.plugins.api.collector [-]
> Starting Collector
> 2013-09-20 10:04:37.234 19656 INFO kwapi.plugins.api.collector [-]
> Cleaning collector
> 2013-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
> middleware
> 2013-09-20 10:04:37.237 19656 INFO
> keystoneclient.middleware.auth_token [-] Using
> /tmp/keystone-signing-xuW4AL as cache directory for signing certificate
> 2013-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 apis
> 2013-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_app
> 2013-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_request
> 2013-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_exception
> 2013-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_request
> 2013-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_request
> 2013-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 check
> 2013-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_admin
> 2013-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 init
> 2013-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_file
> 2013-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_rules
> 2013-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]
>
> # Communication
> api_port = 5000
> probes_endpoint = ipc:///tmp/kwapi-forwarder
>
> # Signature
> signature_checking = true
> driver_metering_secret = test
>
> # ACL
> acl_enabled = true
> #acl_auth_url = http://10.10.10.121:5000/v2.0
> policy_file = /etc/kwapi/policy.json
>
> # Timers
> cleaning_interval = 300
>
> # Log files
> log_file = /var/log/kwapi/kwapi-api.log
> verbose = true
>
> [keystone_authtoken]
> auth_uri = http://10.10.10.101:5000/v2.0
> auth_host = 10.10.10.101
> auth_port = 35357
> auth_protocol = http
> auth_version = v2.0
> admin_user = kwapi
> admin_password = test
> admin_tenant_name = service
>
>
> Any suggestions Emoji?
>
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130920/54fa0839/attachment.html>
More information about the OpenStack-dev
mailing list