OpenStack Compute (Nova)

uptime calculation in simple_usage is incorrect

Reported by Anthony Young on 2012-01-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Low
Anthony Young

Bug Description

The uptime of a server is reported as:

info['uptime'] = delta.days * 24 * 60 + delta.seconds

The correct calculation is:

info['uptime'] = delta.days * 24 * 60 * 60 + delta.seconds

Changed in nova:
assignee: nobody → Anthony Young (sleepsonthefloor)
status: New → In Progress
Changed in nova:
importance: Undecided → Low
milestone: none → essex-3

Reviewed: https://review.openstack.org/3428
Committed: http://github.com/openstack/nova/commit/093c147a14059c60e6b787589398ee7d8f9792d9
Submitter: Jenkins
Branch: master

commit 093c147a14059c60e6b787589398ee7d8f9792d9
Author: Anthony Young <email address hidden>
Date: Wed Jan 25 12:30:09 2012 -0800

    Fix uptime calculation in simple_usage

     * Fixes bug 921807

    Change-Id: Ie6460adb95ef3b9cb0473023816c255aac707e99

Changed in nova:
status: In Progress → Fix Committed

Reviewed: https://review.openstack.org/3449
Committed: http://github.com/openstack/nova/commit/2b06655d3946e0594dd0bd23b637930cfcfc8568
Submitter: Jenkins
Branch: milestone-proposed

commit 2b06655d3946e0594dd0bd23b637930cfcfc8568
Author: Anthony Young <email address hidden>
Date: Wed Jan 25 12:30:09 2012 -0800

    Fix uptime calculation in simple_usage

     * Fixes bug 921807

    Change-Id: Ie6460adb95ef3b9cb0473023816c255aac707e99

Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-3 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers