Description of problem: ceilometer query-alarms --orderby '[{"severity":"desc"}]' sorts alarms by severity's alphabetical order. Version-Release number of selected component (if applicable): openstack-ceilometer-common-2015.1.0-1.el7.noarch openstack-ceilometer-alarm-2015.1.0-1.el7.noarch openstack-ceilometer-compute-2015.1.0-1.el7.noarch openstack-ceilometer-collector-2015.1.0-1.el7.noarch openstack-ceilometer-notification-2015.1.0-1.el7.noarch openstack-ceilometer-central-2015.1.0-1.el7.noarch python-ceilometerclient-1.0.13-1.el7.noarch openstack-ceilometer-api-2015.1.0-1.el7.noarch python-ceilometer-2015.1.0-1.el7.noarch Steps to Reproduce: ceilometer query-alarms --orderby '[{"severity":"desc"}]' +------------------+------------------+-------------------+----------+---------+------------+-------------------------------------------------------------------------------------+ | Alarm ID | Name | State | Severity | Enabled | Continuous | Alarm condition | Time constraints | +------------------+------------------+-------------------+----------+---------+------------+-------------------------------------------------------------------------------------+ | 357ce1eb-***-d18 | TAlarm-1-mode | insufficient data | moderate | True | False | alarm_meter_1_moderate >= 3.0 during 3 x 60s | None | | 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_1_critical >= 3.0 during 3 x 60s | None | | 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":"asc"}]' +------------------+------------------+-------------------+----------+---------+------------+----------------------------------------------------------------------------------+ | Alarm ID | Name | State | Severity | Enabled | Continuous | Alarm condition | Time constraints | +------------------+------------------+-------------------+----------+---------+------------+----------------------------------------------------------------------------------+ | f474b5ed-***-398 | TAlarm-1-crit | insufficient data | critical | False | False | alarm_meter_1_critical >= 3.0 during 3 x 60s | None | | 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_1_moderate >= 3.0 during 3 x 60s | None | | 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 | +------------------+------------------+-------------------+----------+---------+------------+---------------------------------------------------------------+------------------+ Expected results: Ordering has to be done using severity's value - low, moderate, critical (critical, moderate, low)
This bug is against a Version which has reached End of Life. If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.