Bug 1438951

Summary: when remote execution job is running, numbers in Monitor -> Jobs columns are not updated correctly/in time
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: Remote ExecutionAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2.8CC: aruzicka, bbuckingham, cduryee, ehelms, inecas, jhutar, mmccune, pmoravec, psuriset
Target Milestone: UnspecifiedKeywords: Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: scale_lab
Fixed In Version: tfm-rubygem-foreman_remote_execution 1.3.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:44:03 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 Jan Hutař 2017-04-04 20:40:43 UTC
Description of problem:
When remote execution job is running, numbers in Monitor -> Jobs columns are not updated correctly/in time.


Version-Release number of selected component (if applicable):
satellite-6.2.8-4.0.el7sat.noarch


How reproducible:
always for bugger ReX jobs


Steps to Reproduce:
1. Run some bigger ReX job (thousands of systems)
2. Note difference in counts on Monitor -> Jobs -> <your_job> -> Hosts
   and Monitor -> Jobs -> see Succeeded/Failed/Pending/Total hosts columns


Actual results:
Counts does not match


Expected results:
Counts should match or Monitor -> Jobs page should indicate it is still updating numbers or so.

Comment 1 Jan Hutař 2017-04-04 20:41:56 UTC
Forgot to mention that the problem is visible only when job is still running (or maybe when it is still creating sub-tasks).

Comment 2 Ivan Necas 2017-04-05 15:15:13 UTC
Could you provide screenshots and more specific description of the difference?

Comment 3 Jan Hutař 2017-04-07 06:33:03 UTC
I'm sorry. I had this in the backlog to report and did not checked it is still the issue. I was convinced the issue is there but looks like it is reporting numbers correctly.

Comment 4 Jan Hutař 2017-04-12 11:37:25 UTC
I see. Figured it out now. We have job which system query resolves into "Total hosts: 2251". It is now in "running 52%". But monitor -> Jobs shows in the columns for that job:

  Status: running 52%   <--- good
  Succeeded: 1127
  Failed: 58
  Pending: 115
  Total hosts: 1300   <--- not correct

Problem is the percentage shows 52% ran, but numbers show 91% ran (115 is 9% out of 1300).

I understand these numbers are probably taken from the job's master task, but simply might be confusing.

Comment 5 Ivan Necas 2017-09-15 11:08:41 UTC
Connecting redmine issue http://projects.theforeman.org/issues/20466 from this bug

Comment 7 Peter Ondrejka 2017-10-16 12:33:14 UTC
Verified on satellite-6.3.0-20.0.beta.el7sat.noarch, the table at monitor > jobs is now updated correctly as the job executes

Comment 8 Bryan Kearney 2018-02-21 16:41:10 UTC
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-2018:0336

Comment 9 Bryan Kearney 2018-02-21 16:44:03 UTC
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-2018:0336