Show events by event-list with "log" format, event_time displays wrong

Bug #1498283 reported by Yingzhe Zeng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
Fix Committed
Medium
Yingzhe Zeng

Bug Description

Use event-list subcommand to show events with "log" format, command line as follow:

heat event-list stack333 -F log

The outcome is:
07:01:5 2015-09-17 196280ab-c5ec-439a-94bc-06d2a7ee3287 [stack333]: CREATE_IN_PROGRESS Stack CREATE started
07:01:5 2015-09-17 5389f1fc-929e-4bc9-9f51-59f1087934c8 [boot_script]: CREATE_IN_PROGRESS state changed
07:01:5 2015-09-17 0525e889-e9cc-4094-867a-c6dc36340b4a [server_with_boot_script]: CREATE_IN_PROGRESS state changed
07:01:5 2015-09-17 b34aeb76-fceb-4d67-a1b8-4d5a11afcccd [boot_script]: CREATE_COMPLETE state changed
07:02:0 2015-09-17 8f1192db-3f92-4f41-9306-6f79f54af6ac [server_with_boot_script]: CREATE_COMPLETE state changed
07:02:0 2015-09-17 8ab3aeeb-143e-4912-88bc-1a2e7e9f7bba [boot_deploy]: CREATE_IN_PROGRESS state changed
08:01:5 2015-09-17 aa31a462-b9f2-49e9-a076-f533f446414a [boot_deploy]: CREATE_FAILED CREATE aborted
08:01:5 2015-09-17 eb60045e-0c19-4a44-922b-64278067ba1a [stack333]: CREATE_FAILED Create timed out

Obviously the output time is wrong, such as 08:01:5.
The field of seconds should be double digit, but only displays one.

Changed in python-heatclient:
assignee: nobody → Yingzhe Zeng (zengyingzhe)
description: updated
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/228389

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

Reviewed: https://review.openstack.org/228389
Committed: https://git.openstack.org/cgit/openstack/python-heatclient/commit/?id=35dd0f21df68bab229b04e6c4cceff3ee477b482
Submitter: Jenkins
Branch: master

commit 35dd0f21df68bab229b04e6c4cceff3ee477b482
Author: zengyingzhe <email address hidden>
Date: Mon Sep 28 18:40:25 2015 +0800

    Fix the bug when showing event in log format

    The event time displayed in log format is truncated, because the event
    log formater of heatclient resolves the event_time string incorrectly.
    Exchange the date and time fields splitted from event_time attribute,
    and don't truncate the last character of time_date[1].

    Closes-Bug: #1498283
    Change-Id: If94093e2b0531a78c26ba9baeceafc19b61df5f8

Changed in python-heatclient:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-heatclient (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/266648

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-heatclient (stable/liberty)

Reviewed: https://review.openstack.org/266648
Committed: https://git.openstack.org/cgit/openstack/python-heatclient/commit/?id=5d02fc7808c1e46d17e52e73ba69d223e76d7bd8
Submitter: Jenkins
Branch: stable/liberty

commit 5d02fc7808c1e46d17e52e73ba69d223e76d7bd8
Author: zengyingzhe <email address hidden>
Date: Mon Sep 28 18:40:25 2015 +0800

    Fix the bug when showing event in log format

    The event time displayed in log format is truncated, because the event
    log formater of heatclient resolves the event_time string incorrectly.
    Exchange the date and time fields splitted from event_time attribute,
    and don't truncate the last character of time_date[1].

    Closes-Bug: #1498283
    Change-Id: If94093e2b0531a78c26ba9baeceafc19b61df5f8
    (cherry picked from commit 35dd0f21df68bab229b04e6c4cceff3ee477b482)

tags: added: in-stable-liberty
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-heatclient 0.8.1

This issue was fixed in the openstack/python-heatclient 0.8.1 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-heatclient 0.9.0

This issue was fixed in the openstack/python-heatclient 0.9.0 release.

Changed in python-heatclient:
milestone: none → 1.3.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-heatclient 0.8.1

This issue was fixed in the openstack/python-heatclient 0.8.1 release.

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.