Bug 1266241

Summary: Last 5% of fusor-installer feels like it takes almost as long as 0 - 95%
Product: Red Hat Quickstart Cloud Installer Reporter: Matt Reid <mreid>
Component: fusor-installerAssignee: John Matthews <jmatthew>
Status: NEW --- QA Contact: Dave Johnson <dajohnso>
Severity: unspecified Docs Contact:
Priority: high    
Version: 1.0CC: jmontleo
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1274725 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1274725    
Bug Blocks:    

Description Matt Reid 2015-09-24 20:53:56 UTC
Description of problem:
I don't have timings around this, but the last 5% or so of fusor-installer took much longer than I would have expected, given how long it took to get to 95%. Feels like it took almost as long to do the last 5% as it did to go from 0 - 95%. Is it all one task, or a number of things that are left to do at that point? 

Not sure where the % progress comes from, but it might help ease expectations if the last few things it did accounted for more of the overall progress, since they seem to take longer.

Version-Release number of selected component (if applicable):
Tech Preview

Additional info:

Comment 1 John Matthews 2015-10-13 18:21:57 UTC
Let's look into different task weights to give this a better feel.

Comment 2 Jason Montleon 2015-10-23 12:42:46 UTC
This probably goes back to katello-installer/foreman-installer behavior and I  it is not specific to fusor-installer. rake tasks like db:migrate, etc, are running at the end of the install and these are what is being waited on for so long.

Comment 3 Stephen Herr 2015-10-27 20:24:18 UTC
This Bug is dependant on an upstream foreman-kafo issue:
http://projects.theforeman.org/issues/12166

The kafo installer (which katello-installer adds on to, and fusor-installer adds on to that) calculates progress by simply calculating #-printed-puppet-lines / #-expected-puppet-lines. There is currently no mechanism to specify that one puppet line is much longer than others.

Comment 4 Jason Montleon 2016-05-23 14:15:06 UTC
We may have trimmed some time off of the seeding process as it appears it was unnecessarily running an extra rake db:seed and rake db:migrate which both take a fair amount of time. In combination with the foreman-installer changes coming hopefully we can get a taskbar that better represents progress as well.