multi-factor query prints wrong in alarm-show

Bug #1380172 reported by Mike Spreitzer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ceilometerclient
Confirmed
Undecided
Unassigned

Bug Description

In the following typescript, observe that two of the three factors of the query are printed at the top instead of where they belong.

ubuntu@mjs-dstk-1010a:~/asg$ ceilometer --debug alarm-show 8fc3c711-34c2-4a5e-970c-6f0e694ec988

...

DEBUG (client) RESP BODY: {"alarm_actions": ["http://172.18.76.6:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3Aba0ddcea2e0744a3aafe3ff26fd6d292%3Astacks%2FNRS3%2F1055111b-0124-4665-b1e3-5d465e3d4109%2Fresources%2Frestarter?Timestamp=2014-10-11T20%3A00%3A02Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=31f69c139d984af99268d0e0b0db0f78&SignatureVersion=2&Signature=am7EtMWhIUChFlVuiLMSs7hfa%2Be1atBYbsA2xHAiTys%3D"], "ok_actions": null, "name": "NRS3-gone_alarm-yxyyyzx2nbll", "timestamp": "2014-10-11T20:00:04.856275", "enabled": true, "state": "insufficient data", "state_timestamp": "2014-10-11T20:00:04.856275", "threshold_rule": {"meter_name": "network.services.lb.member", "evaluation_periods": 2, "period": 70, "statistic": "avg", "threshold": 1.0, "query": [{"field": "metadata.metering.protocol_port", "value": "80", "op": "eq"}, {"field": "metadata.metering.address", "value": "10.0.0.10", "op": "eq"}, {"field": "project_id", "value": "ba0ddcea2e0744a3aafe3ff26fd6d292", "op": "eq"}], "comparison_operator": "lt", "exclude_outliers": false}, "alarm_id": "8fc3c711-34c2-4a5e-970c-6f0e694ec988", "time_constraints": [], "insufficient_data_actions": null, "repeat_actions": true, "user_id": "f918e0c0a3d2455cbbb6cdc24928b4c2", "project_id": "ba0ddcea2e0744a3aafe3ff26fd6d292", "type": "threshold", "description": "Detect server being unresponsive"}

+---------------------------+--------------------------------------------------------------------------+
| Property | Value |
+---------------------------+--------------------------------------------------------------------------+
| | metadata.metering.address == |
| | 10.0.0.10 AND |
| | project_id == ba0ddcea2e0744a3aafe3ff26fd6d292 |
| alarm_actions | [u'http://172.18.76.6:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3Aba0ddce |
| | a2e0744a3aafe3ff26fd6d292%3Astacks%2FNRS3%2F1055111b-0124-4665-b1e3-5d46 |
| | 5e3d4109%2Fresources%2Frestarter?Timestamp=2014-10-11T20%3A00%3A02Z&Sign |
| | atureMethod=HmacSHA256&AWSAccessKeyId=31f69c139d984af99268d0e0b0db0f78&S |
| | ignatureVersion=2&Signature=am7EtMWhIUChFlVuiLMSs7hfa%2Be1atBYbsA2xHAiTy |
| | s%3D'] |
| alarm_id | 8fc3c711-34c2-4a5e-970c-6f0e694ec988 |
| comparison_operator | lt |
| description | Detect server being unresponsive |
| enabled | True |
| evaluation_periods | 2 |
| exclude_outliers | False |
| insufficient_data_actions | None |
| meter_name | network.services.lb.member |
| name | NRS3-gone_alarm-yxyyyzx2nbll |
| ok_actions | None |
| period | 70 |
| project_id | ba0ddcea2e0744a3aafe3ff26fd6d292 |
| query | metadata.metering.protocol_port == 80 AND |
| repeat_actions | True |
| state | insufficient data |
| statistic | avg |
| threshold | 1.0 |
| type | threshold |
| user_id | f918e0c0a3d2455cbbb6cdc24928b4c2 |
+---------------------------+--------------------------------------------------------------------------+

ZhiQiang Fan (aji-zqfan)
Changed in python-ceilometerclient:
assignee: nobody → ZhiQiang Fan (aji-zqfan)
ZhiQiang Fan (aji-zqfan)
Changed in python-ceilometerclient:
status: New → Confirmed
Revision history for this message
ZhiQiang Fan (aji-zqfan) wrote :

this bug can be fixed by patch: https://review.openstack.org/#/c/136546

Changed in python-ceilometerclient:
assignee: ZhiQiang Fan (aji-zqfan) → nobody
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.