aodh alarm create -t threshold should fail when with parameter aggregation method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-aodhclient |
Triaged
|
Low
|
ZhiQiang Fan |
Bug Description
$ aodh alarm create -t threshold --name threshold_alarm5 --meter-name cpu --threshold 50 --description "description_
this command will be successful, but the threshold rule doesn't have this attribute. This command should fail.
The output is:
+------
| Field | Value |
+------
| alarm_actions | [u'http://
| alarm_id | 5b3616e3-
| comparison_operator | le |
| description | description_
| enabled | True |
| evaluation_periods | 3 |
| exclude_outliers | False |
| insufficient_
| meter_name | cpu |
| name | threshold_alarm5 |
| ok_actions | [u'http://
| period | 60 |
| project_id | 97fcad0402ce4f6
| query | [] |
| repeat_actions | True |
| severity | critical |
| state | insufficient data |
| state_timestamp | 2016-01-
| statistic | avg |
| threshold | 50.0 |
| time_constraints | [{u'duration': 300, u'start': u'0 11 * * *', u'timezone': u'', u'description': u'desc1', u'name': u'cons1'}] |
| timestamp | 2016-01-
| type | threshold |
| user_id | f28735621ee84f3
+------
Changed in python-aodhclient: | |
assignee: | nobody → Xia Linjuan (ljxiash) |
Changed in python-aodhclient: | |
assignee: | Xia Linjuan (ljxiash) → Zi Lian Ji (jizilian) |
Changed in python-aodhclient: | |
assignee: | Zi Lian Ji (jizilian) → nobody |
Changed in python-aodhclient: | |
status: | New → Triaged |
importance: | Undecided → Low |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
Hi Lin Juan
After https:/ /review. openstack. org/#/c/ 266073/ is merged, the aodh client will validate and filter the corresponding parameters before sending the request to the back end.
Thanks