Alarm status is different for alarm-show vs. alarm-list

Bug #1363135 reported by Phil Neal
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Invalid
Undecided
Phil Neal

Bug Description

root@overcloud-ce-controller-controllermgmt0-vzf6oedxu2tx:~# ceilometer alarm-list
+--------------------------------------+--------------+-------------------+---------+------------+-------------------------------------------------+------------------+
| Alarm ID | Name | State | Enabled | Continuous | Alarm condition | Time constraints |
+--------------------------------------+--------------+-------------------+---------+------------+-------------------------------------------------+------------------+
| f2c68241-ee43-440c-b707-c4a88f336802 | storagealarm | insufficient data | True | False | storage.objects.containers > 2.0 during 5 x 60s | None |
| fc04e9b8-1235-42c2-8d89-5ccf50cf7c5b | verifyalarm | ok | False | False | volume.size > 9.0 during 2 x 600s | None |
+--------------------------------------+--------------+-------------------+---------+------------+-------------------------------------------------+------------------+
root@overcloud-ce-controller-controllermgmt0-vzf6oedxu2tx:~# ceilometer alarm-show -a f2c68241-ee43-440c-b707-c4a88f336802
+---------------------------+-----------------------------------------------------+
| Property | Value |
+---------------------------+-----------------------------------------------------+
| alarm_actions | [u'log://'] |
| alarm_id | f2c68241-ee43-440c-b707-c4a88f336802 |
| comparison_operator | gt |
| description | func test |
| enabled | True |
| evaluation_periods | 5 |
| exclude_outliers | False |
| insufficient_data_actions | [] |
| meter_name | storage.objects.containers |
| name | storagealarm |
| ok_actions | [] |
| period | 60 |
| project_id | fafd57f95d4448ba9cad70bb8a8476f3 |
| query | resource_id == fafd57f95d4448ba9cad70bb8a8476f3 AND |
| | project_id == fafd57f95d4448ba9cad70bb8a8476f3 |
| repeat_actions | False |
| state | ok |
| statistic | max |
| threshold | 2.0 |
| type | threshold |
| user_id | 880d3b36720242c993955247c49fc5df |
+---------------------------+-----------------------------------------------------+
root@overcloud-ce-controller-controllermgmt0-vzf6oedxu2tx:~# ceilometer alarm-state-get -a f2c68241-ee43-440c-b707-c4a88f336802
+----------+-------+
| Property | Value |
+----------+-------+
| state | ok |
+----------+-------+

look in for the values show with ceilometer alarm-list and ceilometer alarm-list/ceilometer alarm-list

One says as insufficient data and other 2 shows as Ok.

Phil Neal (nealph)
Changed in ceilometer:
assignee: nobody → Phil Neal (nealph)
Revision history for this message
Nejc Saje (nejc-saje) wrote :

Can you provide instructions on how to reproduce this?

Changed in ceilometer:
status: New → Incomplete
Revision history for this message
Anurag (anurag-kumar) wrote :

After creating alarm its state is "insufficient data" for a while once it start collecting metrics it become "ok", so in your case may be you just created the alarm.

Changed in ceilometer:
status: Incomplete → Invalid
Revision history for this message
Phil Neal (nealph) wrote :

Agreed that this was probably a timing issue....in any case the disagreement between the various api commands didn't persist so will let this one go.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.