heat event list sorted incorrect

Bug #1209506 reported by JunJie Nan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-heatclient
Fix Released
High
JunJie Nan

Bug Description

heat event-list stack
+---------------------+----+------------------------+--------------------+----------------------+
| logical_resource_id | id | resource_status_reason | resource_status | event_time |
+---------------------+----+------------------------+--------------------+----------------------+
| B | 49 | state changed | CREATE_IN_PROGRESS | 2013-08-08T10:21:41Z |
| H2 | 48 | state changed | CREATE_IN_PROGRESS | 2013-08-08T10:21:41Z |
| A | 53 | state changed | CREATE_IN_PROGRESS | 2013-08-08T10:21:42Z |
| H1 | 50 | state changed | CREATE_IN_PROGRESS | 2013-08-08T10:21:42Z |
| H1 | 52 | state changed | CREATE_COMPLETE | 2013-08-08T10:21:42Z |
| H2 | 51 | state changed | CREATE_COMPLETE | 2013-08-08T10:21:42Z |
| W1 | 54 | state changed | CREATE_IN_PROGRESS | 2013-08-08T10:21:43Z |
| W2 | 55 | state changed | CREATE_IN_PROGRESS | 2013-08-08T10:21:43Z |
| A | 56 | state changed | CREATE_COMPLETE | 2013-08-08T10:21:49Z |
| B | 57 | state changed | CREATE_COMPLETE | 2013-08-08T10:21:49Z |
| C | 58 | state changed | CREATE_IN_PROGRESS | 2013-08-08T10:21:49Z |
| C | 59 | state changed | CREATE_COMPLETE | 2013-08-08T10:21:55Z |
| D | 60 | state changed | CREATE_IN_PROGRESS | 2013-08-08T10:21:55Z |
| D | 61 | state changed | CREATE_COMPLETE | 2013-08-08T10:22:01Z |
| W1 | 62 | state changed | CREATE_COMPLETE | 2013-08-08T10:25:45Z |
| W2 | 63 | state changed | CREATE_COMPLETE | 2013-08-08T10:26:09Z |
+---------------------+----+------------------------+--------------------+----------------------+
We can see event with id = 49 is before event with id=48, because the event time is same.

`heat-cfn' client has no such problem.

JunJie Nan (nanjj)
description: updated
JunJie Nan (nanjj)
Changed in python-heatclient:
assignee: nobody → JunJie Nan (nanjj)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-heatclient (master)

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

Changed in python-heatclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-heatclient (master)

Reviewed: https://review.openstack.org/40809
Committed: http://github.com/openstack/python-heatclient/commit/2d1592e934b4313fb0582dba419fcca27819d7e4
Submitter: Jenkins
Branch: master

commit 2d1592e934b4313fb0582dba419fcca27819d7e4
Author: JUN JIE NAN <email address hidden>
Date: Thu Aug 8 14:27:33 2013 +0800

    Fix heat event list sorted order incorrect

    The order is correct already if python heat client does not recorder
    it. Add option to make print_list not to reorder possible, and call it
    in do_event_list.

    Change-Id: I3f0990aff27df39371c583d5aae3edd106542ad1
    Fixes: bug #1209506

Changed in python-heatclient:
status: In Progress → Fix Committed
Changed in python-heatclient:
milestone: none → v0.2.5
importance: Undecided → High
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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