Wrong alarms order on 'severity' field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aodh |
Fix Released
|
Low
|
Liusheng | ||
Ceilometer |
Invalid
|
Undecided
|
sanjana |
Bug Description
ceilometer query-alarms --orderby '[{"severity"
+------
| Alarm ID | Name | State | Severity | Enabled | Continuous | Alarm condition | Time constraints |
+------
| 357ce1eb-***-d18 | TAlarm-1-mode | insufficient data | moderate | True | False | alarm_meter_
| 5a6396ff-***a52 | ComAlrm-OR-mod | insufficient data | moderate | False | False | combinated states (OR) of 3c3b6692-***-3a98, f474b5ed-***-e2398 | None |
| 2d5298b5-***-7e7 | ComAlrm-AND-mod | insufficient data | moderate | False | False | combinated states (AND) of 3c3b6692-***-3a98, f474b5ed-***-2398 | None |
| 3c3b6692-***-a98 | TAlarm-1 | insufficient data | low | True | False | alarm_meter_1 >= 3.0 during 3 x 60s | None |
| 786d0809-***-9f5 | ComAlrm-OR-low | insufficient data | low | True | False | combinated states (OR) of 3c3b6692-***-3a98, 357ce1eb-***-5d18 | None |
| 73565d93-***-9fd | ComAlrm-AND-low | insufficient data | low | False | False | combinated states (AND) of 3c3b6692-***-a3a98, 357ce1eb-***-5d18 | None |
| f474b5ed-***-398 | TAlarm-1-crit | insufficient data | critical | False | False | alarm_meter_
| 733df9b1-***-587 | ComAlrm-OR-crit | insufficient data | critical | False | False | combinated states (OR) of 3c3b6692-***-3a98, f474b5ed-***-2398 | None |
| 4e823205-***-a3f | ComAlrm-AND-crit | insufficient data | critical | False | False | combinated states (AND) of 3c3b6692-***-3a98, f474b5ed-***-2398 | None |
+------
ceilometer query-alarms --orderby '[{"severity"
+------
| Alarm ID | Name | State | Severity | Enabled | Continuous | Alarm condition | Time constraints |
+------
| f474b5ed-***-398 | TAlarm-1-crit | insufficient data | critical | False | False | alarm_meter_
| 733df9b1-***-587 | ComAlrm-OR-crit | insufficient data | critical | False | False | combinated states (OR) of 3c3b6692-***-a98, f474b5ed-***-398 | None |
| 4e823205-***-73f | ComAlrm-AND-crit | insufficient data | critical | False | False | combinated states (AND) of 3c3b6692-***-a98, f474b5ed-***-398 | None |
| 3c3b6692-***-a98 | TdAlarm-1 | insufficient data | low | True | False | alarm_meter_1 >= 3.0 during 3 x 60s | None |
| 786d0809-***-9f5 | ComAlrm-OR-low | insufficient data | low | True | False | combinated states (OR) of 3c3b6692-***-a98, 357ce1eb-***-d18 | None |
| 73565d93-***-9fd | ComAlrm-AND-low | insufficient data | low | False | False | combinated states (AND) of 3c3b6692-***-a98, 357ce1eb-***-d18 | None |
| 357ce1eb-***-d18 | TAlarm-1-mod | insufficient data | moderate | True | False | alarm_meter_
| 5a6396ff-***-a52 | ComAlrm-OR-mod | insufficient data | moderate | False | False | combinated states (OR) of 3c3b6692-***-a98, f474b5ed-***-398 | None |
| 2d5298b5-***-7e7 | CombAlrm-AND-mod | insufficient data | moderate | False | False | combinated states (AND) of 3c3b6692-***-a98, f474b5ed-***-398 | None |
+------
With 'ascending' order alarms are grouped in this way:
- critical
- low
- moderate
And with 'descending' order:
- moderate
- low
- critical
Ordering has to be done using severity's value - low, moderate, critical (critical, moderate, low), IMHO.
Or I'm missing something?
Thanks,
Yurii
Changed in ceilometer: | |
assignee: | nobody → Emma Foley (emma-l-foley) |
Changed in aodh: | |
status: | New → Triaged |
Changed in ceilometer: | |
status: | New → Triaged |
Changed in aodh: | |
importance: | Undecided → Low |
Changed in ceilometer: | |
assignee: | nobody → sanjana (sanjana) |
Changed in aodh: | |
assignee: | Emma Foley (emma-l-foley) → sanjana (sanjana) |
Changed in aodh: | |
status: | Triaged → In Progress |
tags: | added: aodh ceilometer |
Changed in aodh: | |
status: | In Progress → Triaged |
Changed in ceilometer: | |
assignee: | sanjana (sanjana) → nobody |
Changed in aodh: | |
assignee: | sanjana (sanjana) → nobody |
Changed in ceilometer: | |
assignee: | nobody → sanjana (sanjana) |
Changed in aodh: | |
status: | Triaged → In Progress |
Changed in aodh: | |
assignee: | sanjana (sanjana) → Liusheng (liusheng) |
Ceilometer's versions: ceilometer- common- 2015.1. 0-1.el7. noarch ceilometer- alarm-2015. 1.0-1.el7. noarch ceilometer- compute- 2015.1. 0-1.el7. noarch ceilometer- collector- 2015.1. 0-1.el7. noarch ceilometer- notification- 2015.1. 0-1.el7. noarch ceilometer- central- 2015.1. 0-1.el7. noarch ceilometerclien t-1.0.13- 1.el7.noarch ceilometer- api-2015. 1.0-1.el7. noarch ceilometer- 2015.1. 0-1.el7. noarch
rpm -qa | grep ceilo
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
python-
openstack-
python-