Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1491938

Summary: remote execution job executed twice on every client when executing on thousands of hosts
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: Tasks PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.11CC: aruzicka, inecas, jhutar
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-15 12:43:36 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-09-15 05:32:00 UTC
Description of problem:
Remote execution job executed twice (or reported twice) on every client when executing on thousands of hosts


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


How reproducible:
Most of the time


Steps to Reproduce:
1. I have Satellite and 16 capsules with almost 30k clients registered
2. I schedule execution of ReX job on hosts matching "name ~ container1"
   and preview on job scheduling page shows "Resolves to: 3429 hosts"
3. When job finishes, its task says "6858 task(s), 6817 success, 41 fail"
4. Job -> Hosts then shows all rows twice (at least on first 3 pages)


Actual results:
Looks like there are shown 2 reports for each systems in Job -> Hosts (but with 1 URI, so looks like report itself is there only once)


Expected results:
Number of hosts where the job ran should match expectations

Comment 1 Ivan Necas 2017-09-15 05:41:13 UTC
@jan: I suspect it might be https://bugzilla.redhat.com/show_bug.cgi?id=1465628, could you confirm that happens also with 6.2.12 snaps?

Comment 3 Jan Hutař 2017-09-15 07:58:13 UTC
Resetting needinfo on myself.

Comment 4 Ivan Necas 2017-09-15 12:40:22 UTC
If it was future execution, you might be hitting https://bugzilla.redhat.com/show_bug.cgi?id=1478442, that is also scheduled for 6.2.12

Comment 5 Ivan Necas 2017-09-15 12:43:36 UTC

*** This bug has been marked as a duplicate of bug 1478442 ***

Comment 6 Jan Hutař 2017-11-14 20:08:49 UTC
Already closed, removing NEEDINFO on me.