Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1387658 - Planning of remote execution task on large number of hosts (reported with 500 hosts) takes a lot of time, potentially leading to stuck task
Planning of remote execution task on large number of hosts (reported with 500...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Remote Execution (Show other bugs)
6.2.0
All Linux
high Severity high (vote)
: 6.2.10
: Unused
Assigned To: Shimon Shtein
jcallaha
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-21 09:11 EDT by Renu Chauhan
Modified: 2017-06-27 09:06 EDT (History)
6 users (show)

See Also:
Fixed In Version: rubygem-foreman_remote_execution-0.3.0.17-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1446728 (view as bug list)
Environment:
Last Closed: 2017-06-20 13:21:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
verification screenshot (36.39 KB, image/png)
2017-05-25 11:19 EDT, jcallaha
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 17921 None None None 2017-01-04 07:01 EST
Red Hat Product Errata RHBA-2017:1553 normal SHIPPED_LIVE Satellite 6.2.10 Async Bug Release 2017-06-20 17:19:07 EDT

  None (edit)
Description Renu Chauhan 2016-10-21 09:11:01 EDT
Description of problem: When trying to run a command on all the hosts registered to the Satellite by going to run job and putting * in the search field on the Satellite WebUI, then the task is in pending state for a long time and when Cu go over Tasks and click on the task created he get the following error:

RuntimeError
plan_self has to be invoked before being able to reference the output


Whereas when running the command is run on a single host, then it is executed normally.

Version-Release number of selected component (if applicable):
V 6.2

How reproducible:
Always

Steps to Reproduce:
1.Login on Satellite Server --> Monitor --> Jobs --> Run job
2.In the search query, putting * and in the commands section, a command to be run on all the hosts
3.Where as if in the search section, a few hosts are defined then the command on these hosts is executable well.

Actual results:
I am not able to run a command on all the hosts at a time by entering * in the search section.

Expected results:
We should be able to run a command on all the hosts at a time by putting * in the search query section.

Additional info:It works with few number of hosts by specifying the hosts but fails with * (large number of hosts)
Comment 3 Ivan Necas 2017-01-04 06:45:30 EST
The original error produced when looking at a task in pending state has been addressed in https://bugzilla.redhat.com/show_bug.cgi?id=1364767 is already shipped as part of errata https://access.redhat.com/errata/RHBA-2016:2940 (sat 6.2.5). Is seems the issue might be with the effectivity of the planning when working with larger number of hosts.
Comment 5 Ivan Necas 2017-01-04 07:01:13 EST
Created redmine issue http://projects.theforeman.org/issues/17921 from this bug
Comment 6 pm-sat@redhat.com 2017-01-15 14:05:32 EST
Upstream bug assigned to sshtein@redhat.com
Comment 7 pm-sat@redhat.com 2017-01-15 14:05:36 EST
Upstream bug assigned to sshtein@redhat.com
Comment 11 Ivan Necas 2017-01-26 07:22:52 EST
There is also https://bugzilla.redhat.com/show_bug.cgi?id=1416542. We need to do more testing/tuning on large scale infrastructure to be able to say, if this is the only change needed, or additional updates are required.
Comment 12 pm-sat@redhat.com 2017-01-30 18:05:36 EST
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17921 has been resolved.
Comment 14 jcallaha 2017-05-25 11:19:02 EDT
Verified in Satellite 6.2.10 Snap 1

Kicked off a job against 700 hosts. The jobs started executing almost immediately. All jobs completed in under 8 minutes. See attached screenshot.
Comment 15 jcallaha 2017-05-25 11:19 EDT
Created attachment 1282303 [details]
verification screenshot
Comment 17 errata-xmlrpc 2017-06-20 13:21:30 EDT
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/RHBA-2017:1553

Note You need to log in before you can comment on or make changes to this bug.