nova.utils.TIME_UNITS['Day'] is only 84400 sec

Bug #1357152 reported by mathyourlife
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Yaguang Tang

Bug Description

Full day is 86400 sec

diff --git a/nova/utils.py b/nova/utils.py
index 65d99aa..0b9afe4 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -90,7 +90,7 @@ TIME_UNITS = {
     'SECOND': 1,
     'MINUTE': 60,
     'HOUR': 3600,
- 'DAY': 84400
+ 'DAY': 86400
 }

Based on code from master branch 2014-08-14 HEAD commit 374e9766c20c9f83dbd8139aa9d95a66b5da7295

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/114419

Changed in nova:
assignee: nobody → Yaguang Tang (heut2008)
status: New → In Progress
Yaguang Tang (heut2008)
tags: added: icehouse-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/114419
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=21aeb80a83e157dbc2ba27f16a83c98a37b7067d
Submitter: Jenkins
Branch: master

commit 21aeb80a83e157dbc2ba27f16a83c98a37b7067d
Author: Yaguang Tang <email address hidden>
Date: Fri Aug 15 10:22:28 2014 +0800

    Correct seconds of a day from 84400 to 86400

    Correct a day to 86400 seconds which is used by API rate limit config
    Closes-bug: #1357152

    Change-Id: Ieceacd00f02b6ed27032cc0ac2f55be8b976a070

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.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.