Red Hat Bugzilla – Bug 1274725
Last 5% of fusor-installer feels like it takes almost as long as 0 - 95%
Last modified: 2017-08-01 15:57:48 EDT
+++ This bug was initially created as a clone of Bug #1266241 +++
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):
--- Additional comment from John Matthews on 2015-10-13 14:21:57 EDT ---
Let's look into different task weights to give this a better feel.
--- Additional comment from Jason Montleon on 2015-10-23 08:42:46 EDT ---
This probably goes back to katello-installer/foreman-installer behavior and 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.
1/ The process duration is estimated from count of resources in puppet plan. The real number of resources processed may differ based on installer options and puppet version used.
2/ Also the duration of the steps may differ significantly. As it was said above db migrations, seeds, cache population and others is done at the end of installation and all of them are long running tasks.
3/ Also when the estimate was lower then the real result, which is common, all the extra tasks are executed at 99% to avoid exceeding 100%.
As a solution we can probably address 3/ by multiplying the estimate by some arbitrary ratio to avoid waiting at 99%. Assuming that eventual skip from 95% to 100% is more acceptable for the user. To address 2/ some kind of weighting could be added, but it is unlikely to get in in 6.2 timeframe.
Created redmine issue http://projects.theforeman.org/issues/14753 from this bug
Moving to POST since upstream bug http://projects.theforeman.org/issues/12166 has been closed
The fix to this bug will be delivered with release 6.3 of Satellite.