Bug 1781186
Summary: | Progress percentage not working as expected with foreman-installer | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Devendra Singh <desingh> |
Component: | Installation | Assignee: | Ewoud Kohl van Wijngaarden <ekohlvan> |
Status: | CLOSED ERRATA | QA Contact: | Devendra Singh <desingh> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.7.0 | CC: | bbuckingham, bkearney, ehelms, ekohlvan, ktordeur, nitthoma, sthirugn, zhunting |
Target Milestone: | 6.7.0 | Keywords: | Regression, Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | kafo-4.0.1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-04-14 13:27:49 UTC | 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: |
Description
Devendra Singh
2019-12-09 13:52:21 UTC
Can you attach an installer log so that we can see what steps were taking the longest and showing no progress? Can you check if this is still happening? I can see progress bar in satellite-cli-6.7.0-4.beta.el7sat.noarch: # satellite-installer --tuning medium --disable-system-checks Package versions are locked. Continuing with unlock. Installing Debug: Prefetching cli resources for foreman_confi [0%] [ ] (In reply to sthirugn from comment #5) > Can you check if this is still happening? I can see progress bar in > satellite-cli-6.7.0-4.beta.el7sat.noarch: > > # satellite-installer --tuning medium --disable-system-checks > Package versions are locked. Continuing with unlock. > Installing Debug: Prefetching cli resources for foreman_confi > [0%] [ ] Yes, it is still happening, the percentage value starts from 0% and after 1 to 2 minutes the progress reached 100%, but the in-between value like 1%, 5%, 50%, 65% 99% are missing. how would I know the percentage of completion(1%, 5%, 7%....60%...99%) if it has only two value 0(beginning) and 100(ending)? If you check the foreman-installer or satellite-installer in 6.6, 6.5 it works perfectly. Hello Devendra, Yes, I see it moves from 0% to 100% quickly. I am not sure if this is because the installer is running quickly. Ewoud, thoughts? The progress bar works by counting the amount of resources to monitor via MONITOR_RESOURCE. Then it looks at 'Starting to evaluate the resource' and Evaluated in [\d\.]+ seconds. I can see the MONITOR_RESOURCE lines in the log but not the evaluation which suggests it doesn't log those anymore. That means it can't update the progress. From the log it appears it wasn't an instant run so that can't explain it (Applied catalog in 126.32 seconds) but I don't see anything else. https://github.com/theforeman/kafo/blob/master/lib/kafo/progress_bar.rb The git changes to kafo don't suggest changes in this area, but it must be noted that in upstream this isn't really tested anymore. With Puppet 6 the hacks applied to Puppet no longer work and no progress bar is present. Downstream still uses Puppet 5 so there is still a progress bar present. To the person who's diving into this (which may very well be me), I'd make sure puppet evaltrace is enabled. Whether it's via a command line switch or a configuration option. On a slightly related note, Puppet 6.6.0 implements the progress directly via evaltrace which means we can also implement this on Puppet 6. https://tickets.puppetlabs.com/browse/PUP-6465 Created redmine issue https://projects.theforeman.org/issues/28827 from this bug Upstream bug assigned to ekohlvan Upstream bug assigned to ekohlvan Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28827 has been resolved. *** Bug 1802005 has been marked as a duplicate of this bug. *** FailedQA. Tested on 6.7 Snap12. The Fixed version is "kafo-4.0.1" but updated version is "rubygem-kafo-4.0.0-1.el7sat.noarch" Verified successfully on 6.7 Snap13. # satellite-installer --tuning default Package versions are locked. Continuing with unlock. Installing Package[ca-certificates] [12%] [................ ] Installing Service[named] [34%] [............................................. ] Installing Foreman_smartproxy [97%] [............................................................................................................................. Installing Done [100%][................................................................................................................................] Success! # rpm -q rubygem-kafo rubygem-kafo-4.0.1-1.el7sat.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:1454 |