Time constraint value does not display properly on the return table.

Bug #1395110 reported by Rohit Jaiswal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ceilometerclient
Fix Released
Medium
Rohit Jaiswal

Bug Description

Create a new alarm or Update an existing alarm, and set time constraint, the time constraint value is truncated and displays on wrong page.

root@linuxuser:~/ceilometertest# ceilometer alarm-threshold-update ac640d32-dfac-4c78-82fa-14051a8f6610 --time-constraint 'name=sampleconstraint;start=0 18 * * *;duration=10800;description=test;timezone=US/Pacific'

+---------------------------+------------------------------------------------------+
| Property | Value |
+---------------------------+------------------------------------------------------+
| | |
| | duration: 10800, |
| | description: test, |
| | start: 0 18 * * *, |
| | timezone: US/Pacific}] |
| alarm_actions | [] |
| alarm_id | ac640d32-dfac-4c78-82fa-14051a8f6610 |
| comparison_operator | eq |
| description | Alarm when meter1 is eq a avg of 1.0 over 60 seconds |
| enabled | True |
| evaluation_periods | 1 |
| exclude_outliers | False |
| insufficient_data_actions | [] |
| meter_name | meter1 |
| name | alarm1 |
| ok_actions | [] |
| period | 60 |
| project_id | |
| query | |
| repeat_actions | False |
| state | insufficient data |
| statistic | avg |
| threshold | 1.0 |
| time_constraints | [{name: sampleconstraint, |
| type | threshold |
| user_id | cde29f66655b4d62a6085f4233184483 |
+---------------------------+------------------------------------------------------+

Changed in python-ceilometerclient:
assignee: nobody → Rohit Jaiswal (rohit-jaiswal-3)
status: New → Incomplete
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-ceilometerclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/136546

Lianhao Lu (lianhao-lu)
Changed in python-ceilometerclient:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-ceilometerclient (master)

Reviewed: https://review.openstack.org/136546
Committed: https://git.openstack.org/cgit/openstack/python-ceilometerclient/commit/?id=5fd0b4102a6a8f4e510534e67d0db4d9ab9639bc
Submitter: Jenkins
Branch: master

commit 5fd0b4102a6a8f4e510534e67d0db4d9ab9639bc
Author: Rohit Jaiswal <email address hidden>
Date: Fri Nov 21 11:58:02 2014 -0800

    Alarm TimeConstraint display incorrect

    Added test case for print_dict function

    Change-Id: I3ab8a4e25f946b409ede2a598a5b9cf8593a044e
    Closes-Bug: #1395110

Changed in python-ceilometerclient:
status: In Progress → Fix Committed
Changed in python-ceilometerclient:
milestone: none → 1.3.0
status: Fix Committed → Fix Released
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.