Project

General

Profile

Actions

Bug #26124

open

Build duration wrong during rebuild

Added by Alex Fisher about 6 years ago. Updated over 5 years ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

I've just hit 'build' on a host I originally built a few days ago. On the host page and dashboard the 'build duration' displays '3 days'.

Following these debugging steps here. https://community.theforeman.org/t/what-is-build-duration-and-how-is-it-determined/11051/5?u=afisher

irb(main):002:0> host.initiated_at
=> Mon, 25 Feb 2019 11:18:08 UTC +00:00
irb(main):003:0> host.installed_at
=> Fri, 22 Feb 2019 17:13:38 UTC +00:00

Looks like `initiated_at` was reset, but even though `installed_at` is an earlier date, the difference is still calculated and '3 days' displayed.


Files

Build Durations.png View Build Durations.png 16.7 KB Screenshot Alex Fisher, 04/02/2019 10:44 AM
Actions #1

Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6505 added
Actions

Also available in: Atom PDF