Bug 1627640 - recurring jobs ignore organization context of host search
Summary: recurring jobs ignore organization context of host search
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Remote Execution
Version: 6.4
Hardware: Unspecified
OS: Unspecified
medium vote
Target Milestone: Released
Assignee: Adam Ruzicka
QA Contact: Peter Ondrejka
Depends On:
TreeView+ depends on / blocked
Reported: 2018-09-11 07:04 UTC by Ales Dujicek
Modified: 2019-10-07 17:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-05-14 12:37:59 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:1222 None None None 2019-05-14 12:38:05 UTC
Foreman Issue Tracker 24882 None None None 2018-09-11 07:51:31 UTC

Description Ales Dujicek 2018-09-11 07:04:09 UTC
Description of problem:

When you create recurring job in the context of Default Organization

Monitor > Jobs > Run job

Job category: Commands
Job Template: Run Command - SSH Default
Search Query: last_report > "35 minutes ago"
Command: true repeat 3
Schedule: Set up recurring execution
Repeats: cronline
Cron line: * * * * *
Repeat N times: 3
Ends: Never

the first job is scheduled for all active hosts in Default Organization (one)
but then all repetitions of the jobs are scheduled for all active hosts across all organizations (two)

in the Job invocations page (Monitor > jobs) jobs does not provide correct host count

Description	Status	Succeeded	Failed	Pending	Total hosts	Start
Run true repeat 3	succeeded	2	0	0	1	29 minutes ago
Run true repeat 3	succeeded	2	0	0	1	30 minutes ago
Run true repeat 3	succeeded	1	0	0	1	31 minutes ago

Failed is two but Total host is only one

And the jobs detail page show nonsense result data like 200% Failed, or Infinity% Failed ..

Version-Release number of selected component (if applicable):
Sat 6.4 snap 21

How reproducible:

Expected results:
- recurring jobs are scheduled for the proper set of hosts
- job list page shows correct host count data and/or shows jobs filtered according to organization
- job details page does not show nonsense data like 200% Success or Infinity% Success

Comment 2 Ivan Necas 2018-09-11 07:51:29 UTC
Created redmine issue https://projects.theforeman.org/issues/24882 from this bug

Comment 3 pm-sat@redhat.com 2018-10-08 14:07:25 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24882 has been resolved.

Comment 4 Peter Ondrejka 2018-11-05 14:08:43 UTC
Verified on Satellite 6.5 snap 2

Comment 8 errata-xmlrpc 2019-05-14 12:37:59 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.


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