[openstack-dev] [energy] Kwapi Ceilometer plugin

Elton Kevani eltonkevani at hotmail.com
Fri Sep 20 10:48:23 UTC 2013


Thanks a lot again. That fixed the problem :-D

Date: Fri, 20 Sep 2013 12:39:02 +0200
From: francois.rossigneux at inria.fr
To: openstack-dev at lists.openstack.org
CC: eltonkevani at hotmail.com
Subject: Re: [openstack-dev] [energy] Kwapi Ceilometer plugin


  
    
  
  
    Yes, you should update Ceilometer.

    

    Or modify the ceilometer/energy/kwapi.py like this (line 46) :

    - message = request.json

    + message = request.json()

    

    

    Le 20/09/2013 12:13, Elton Kevani a
      écrit :

    
    
      
      

        Thanks for the quick fix.
        

          Now kwapi-api is working just fine :-D . Now i have
            errors in ceilometer side:
          

          
          
            2013-09-20 12:05:41     INFO [urllib3.connectionpool]
              Starting new HTTP connection (1): 10.10.10.121
            2013-09-20 12:05:41    DEBUG [urllib3.connectionpool]
              "GET /v1/probes/ HTTP/1.1" 200 344
            2013-09-20 12:05:41  WARNING
              [ceilometer.central.manager] Continue after error from
              kwapi: 'instancemethod' object has no attribute
              '__getitem__'
            2013-09-20 12:05:41    ERROR
              [ceilometer.central.manager] 'instancemethod' object has
              no attribute '__getitem__'
            Traceback (most recent call last):
              File
              "/usr/lib/python2.7/dist-packages/ceilometer/central/manager.py",
              line 50, in poll_and_publish
                self.manager)))
              File
              "/usr/lib/python2.7/dist-packages/ceilometer/energy/kwapi.py",
              line 82, in get_counters
                for probe in self.iter_probes(manager.keystone):
              File
              "/usr/lib/python2.7/dist-packages/ceilometer/energy/kwapi.py",
              line 45, in iter_probes
                probes = message['probes']
            TypeError: 'instancemethod' object has no attribute
              '__getitem__'
            

            
            

            
            Do you know something about this error?
          
        
      
     		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130920/26150447/attachment.html>


More information about the OpenStack-dev mailing list