Alarm action should be checked when create alarm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Medium
|
ZhiQiang Fan |
Bug Description
Test Ceilometer 2014.2 Juno release on Ubuntu 14.04 with MySQL backend
when create alarm, I could do this:
# ceilometer alarm-threshold
+------
| Property | Value |
+------
| alarm_actions | [u'test://', u'test://', u'test://', u'test://', u'test://', u'test://', |
| | u'test://', u'test://', u'test://', u'test://'] |
| alarm_id | c955620c-
| comparison_operator | eq |
| description | Alarm when cpu_util is eq a avg of 1.0 over 60 seconds |
| enabled | True |
| evaluation_periods | 1 |
| exclude_outliers | False |
| insufficient_
| meter_name | cpu_util |
| name | large-action-test |
| ok_actions | [] |
| period | 60 |
| project_id | d1578b5392f744b
| query | |
| repeat_actions | False |
| state | insufficient data |
| statistic | avg |
| threshold | 1.0 |
| type | threshold |
| user_id | 2630d3c577df426
+------
There are several issues:
1: test:// only add alarm's notification to memory, which is not useful for normal users, we should only allow admin user to specify such notifier
2: test notifier has no limit for notification, it will append to memory until process crash
3: duplicate action should be removed, it is no sense to notify a target twice
4: alarm action's length should be limited, otherwise, for i.e, normal user create 100 alarm (limited by alarm quota maybe), but each alarm has 10000 actions, and enable repeat actions, then ceilometer-
will upload a series of patch to fix those issues.
Changed in ceilometer: | |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
Changed in ceilometer: | |
importance: | Undecided → Medium |
milestone: | none → liberty-1 |
Changed in ceilometer: | |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | liberty-1 → 5.0.0 |
Fix proposed to branch: master /review. openstack. org/166154
Review: https:/