'init_time' returned from node-create is of incorrect format

Bug #1522337 reported by Qiming Teng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
Medium
lvdongbing

Bug Description

when creating a node, we are getting the 'init_time' from the response in the following format:

"init_time": "2015-12-03T09:35:08.869456"

This is wrong, we should trim the precision values after seconds.

lvdongbing (dbcocle)
Changed in senlin:
assignee: nobody → lvdongbing (dbcocle)
Revision history for this message
Qiming Teng (tengqim) wrote :

seems I cannot reproduce it now?

Revision history for this message
lvdongbing (dbcocle) wrote :

@Qiming, I can reproduce it every time.
1. Create a node with debug
senlin --debug node-create node -p 0
2. See the first reponse body

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to senlin (master)

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

Changed in senlin:
status: Triaged → In Progress
Revision history for this message
Haiwei Xu (xu-haiwei) wrote :

In database, it is stored to '2015-12-03T09:35:08', I think that is ok, or we must keep it in this format before storing data into database?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to senlin (master)

Reviewed: https://review.openstack.org/253300
Committed: https://git.openstack.org/cgit/openstack/senlin/commit/?id=213277c0796dc1596fab3c87dd06e5937a5ed6f8
Submitter: Jenkins
Branch: master

commit 213277c0796dc1596fab3c87dd06e5937a5ed6f8
Author: lvdongbing <email address hidden>
Date: Thu Dec 3 21:56:16 2015 -0500

    Cut microsecond from init_time

    In response of node creation request, init_time contains microsecond,
    it's not a good view, this patch fixes the issue.

    Closes-Bug: #1522337
    Change-Id: I56667206b377828b61774f44e07044756ba9ad18

Changed in senlin:
status: In Progress → Fix Committed
Qiming Teng (tengqim)
Changed in senlin:
status: Fix Committed → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/senlin 1.0.0.0b2

This issue was fixed in the openstack/senlin 1.0.0.0b2 development milestone.

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.