Fix usage of deprecated methods from oslo.utils.timeutils
Bug #1479056 reported by
ChangBo Guo(gcb)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Gábor Antal |
Bug Description
We deprecated some methods isotime and strtime since oslo.utils 1.6.0, need clean up these methods.
For more details , search 'deprecated' in ' https:/
Changed in nova: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → ChangBo Guo(gcb) (glongwave) |
Changed in nova: | |
assignee: | ChangBo Guo(gcb) (glongwave) → nobody |
status: | In Progress → Confirmed |
summary: |
- Fix deprecated methods in oslo.utils.timeutils + Fix usage of deprecated methods from oslo.utils.timeutils |
Changed in nova: | |
assignee: | nobody → Stephen Finucane (sfinucan) |
Changed in nova: | |
assignee: | Stephen Finucane (sfinucan) → Diana Clarke (diana-clarke) |
status: | Confirmed → In Progress |
Changed in nova: | |
assignee: | nobody → Stephen Finucane (sfinucan) |
Changed in nova: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
we can find some warning in jekins job logs like:
2015-07-23 07:05:25.242 | Captured stderr: py:181: DeprecationWarning: Using function/method 'oslo_utils. timeutils. strtime( )' is deprecated in version '1.6' and will be removed in a future version: use either datetime. datetime. isoformat( ) or datetime. datetime. strftime( ) instead workspace/ gate-nova- python27/ .tox/py27/ local/lib/ python2. 7/site- packages/ oslo_versionedo bjects/ fields. py:338: DeprecationWarning: Using function/method 'oslo_utils. timeutils. isotime( )' is deprecated in version '1.6' and will be removed in a future version: use datetime. datetime. isoformat( ) isotime( value)
2015-07-23 07:05:25.242 | ~~~~~~~~~~~~~~~~
2015-07-23 07:05:25.242 | nova/context.
2015-07-23 07:05:25.242 | self, 'timestamp') else None,
2015-07-23 07:05:25.242 | /home/jenkins/
2015-07-23 07:05:25.243 | return timeutils.