Bug 1331660

Summary: RFE: add ability to find all jobs that were run against a particular host.
Product: Red Hat Satellite Reporter: Ivan Necas <inecas>
Component: Remote ExecutionAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bkearney, jcallaha, kbidarka
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman_remote_execution-0.3.0.12-1 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-14 21:00:13 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:
Attachments:
Description Flags
Jobs filtered by host none

Description Ivan Necas 2016-04-29 07:38:16 UTC
Description of problem:
Currently, the only way to find the jobs run against a host, one needs to know the id of the host (you can use hammer host info to find out), and search in `Monitory -> Tasks` for

`label = Actions::RemoteExecution::RunHostJob and resource_type = Host::Managed and resource_id = 2`

This is just a raw tasks data, and it's not very user friendly.

We should be able to search for a host in the `Monitor -> Jobs` page, based on the host name and ideally, having a link from a host details page to get to that page.

Comment 1 Ivan Necas 2016-04-29 07:39:15 UTC
Created redmine issue http://projects.theforeman.org/issues/14875 from this bug

Comment 2 Bryan Kearney 2016-05-09 14:18:37 UTC
Upstream bug assigned to mhulan

Comment 3 Bryan Kearney 2016-05-09 14:18:39 UTC
Upstream bug assigned to mhulan

Comment 4 Bryan Kearney 2016-05-11 12:17:44 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14875 has been closed

Comment 7 jcallaha 2016-09-01 19:04:15 UTC
Verified in Satellite 6.2.2. You can now search by host on the job invocations page.

See attached verification screenshot.

Comment 8 jcallaha 2016-09-01 19:07:05 UTC
Created attachment 1196939 [details]
Jobs filtered by host

Comment 10 errata-xmlrpc 2016-09-14 21:00:13 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/RHBA-2016:1885