timeutils should be used in place of time methods in utils.py

Bug #1008628 reported by Vish Ishaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Zhongyue Luo

Bug Description

As part of the move to openstack-common, we have timeutils. They should be used in place of the time methods in utils.py

Changed in nova:
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Zhongyue Luo (lzyeval)
milestone: none → folsom-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/8219
Committed: http://github.com/openstack/nova/commit/9ff3121bd90133fb3b37c0e10407b5f7ade26b90
Submitter: Jenkins
Branch: master

commit 9ff3121bd90133fb3b37c0e10407b5f7ade26b90
Author: Zhongyue Luo <email address hidden>
Date: Wed Jun 6 10:32:49 2012 +0800

    Replaces functions in utils.py with openstack/common/timeutils.py

    Fixes bug #1008628

    1. Edit openstack-common.conf and import nova/openstack/common/timeutils.py
    2. Move time related functions from utils.py to timeutils.py
    3. Replace following functions in utils.py with timeutils.py
    - isotime
    - parse_isotime
    - strtime
    - parse_strtime
    - normalize_time
    - is_older_than
    - utcnow_ts
    - utcnow
    - set_time_override
    - advance_time_delta
    - advance_time_seconds
    - clear_time_override
    4. Remove datetime related functions and datetime related unittests

    Change-Id: I9a92be286fb071b6237dd39495d88dae106e2ce0

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-2 → 2012.2
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.