[openstack-dev] [Openstack-dev] [Ceilometer] Adding Alarms gives error

Mehdi Abaakouk sileht at sileht.net
Fri Sep 20 11:52:51 UTC 2013


Hi,

On Fri, Sep 20, 2013 at 10:44:14AM +0000, Somanchi Trinath-B39208 wrote:
> I still have the following issue:
> 
> 2013-09-20 15:12:58.116 21869 ERROR wsme.api [-] Server-side error: "'Alarm' object has no attribute 'None_rule'". Detail: 
> Traceback (most recent call last):
> 
>   File "/usr/local/lib/python2.7/dist-packages/wsmeext/pecan.py", line 72, in callfunction
>     result = f(self, *args, **kwargs)
> 
>   File "/usr/local/lib/python2.7/dist-packages/ceilometer/api/controllers/v2.py", line 1286, in post
>     change = data.as_dict(storage.models.Alarm)
> 
>   File "/usr/local/lib/python2.7/dist-packages/ceilometer/api/controllers/v2.py", line 1080, in as_dict
>     d['rule'] = getattr(self, "%s_rule" % self.type).as_dict()
> 
> AttributeError: 'Alarm' object has no attribute 'None_rule'
> 
> 10.10.10.100 - - [20/Sep/2013 15:13:06] "POST /v2/alarms HTTP/1.1" 500 135
> 
> 
> 
> From Ceilometer client I'm not sending any "None_rule" attribute. But then, Is API appending any thing ... ?

The alarm json representation have been changed a bit, the ceilometerclient will be
backward compatible, the review that offer the backward
compatibility is not yet merged: https://review.openstack.org/#/c/46707/

About the error message itself, a issue in wsme make the error message
is not the excepted one. I'm currently writting a workaround to ensure the
good error message and return code are returned.


Regards, 

-- 
Mehdi Abaakouk
mail: sileht at sileht.net
irc: sileht
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130920/cecd7c9d/attachment.pgp>


More information about the OpenStack-dev mailing list