Wrong Alarm Data samples in document
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Low
|
Pradeep Kilambi |
Bug Description
The POST samples in document for Alaem is not working:
{
"alarm_
"http://
],
"alarm_id": null,
"combinatio
"description": "An alarm",
"enabled": true,
"insufficie
"http://
],
"name": "SwiftObjectAlarm",
"ok_actions": [
"http://
],
"project_id": "c96c887c216949
"repeat_
"state": "ok",
"state_
"threshold_
"timestamp": "2013-10-
"type": "threshold",
"user_id": "c96c887c216949
}
Error message in Log:
AttributeError: 'NoneType' object has no attribute 'as_dict'
2013-10-09 04:18:38.028 23872 ERROR wsme.api [-] Server-side error: "'NoneType' object has no attribute 'as_dict'". Detail:
Traceback (most recent call last):
File "/usr/lib/
result = f(self, *args, **kwargs)
File "/usr/lib/
change = data.as_
File "/usr/lib/
d['rule'] = getattr(self, "%s_rule" % self.type)
AttributeError: 'NoneType' object has no attribute 'as_dict'
Changed in ceilometer: | |
assignee: | nobody → Haomeng,Wang (whaom) |
Changed in ceilometer: | |
milestone: | none → icehouse-2 |
Changed in ceilometer: | |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | icehouse-2 → 2014.1 |
I hit this too, this is because the validation when threshold_rule is null is not good enough.