Filter hosts registered to Red Hat Satellite 6.4 as per the status of job executed.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.4

Issue

  • How to filter hosts as per the status of jobs executed on them?
  • Using execution_status = error shows incorrect results.

Resolution

To view the status of jobs executed on the hosts on Red Hat Satellite 6.4:

  • On the Satellite WebUI:
    - Navigate to, Monitor -> Jobs -> Select the job -> In the search bar for filter run " job_invocation.result = status " to obtain the list.
    - Replace status with success, cancelled, pending or failed.

  • On the Satellite CLI:
    Note - Hammer output will simply show the number of hosts as per job execution status as below.

# hammer job-invocation list --search


-

ID | DESCRIPTION  | STATUS    | SUCCESS | FAILED | PENDING | TOTAL | START                  
-|-|-|-|-|-|-|-
6  | Run hostname | failed    | 3       | 19     | 0       | 22    | 2019-01-22 16:05:58 UTC

5  | Run hostname | failed    | 2       | 20     | 0       | 22    | 2019-01-22 14:14:58 UTC
-|-|-|-|-|-|-|-

For more KB articles/solutions related to Red Hat Satellite 6.x Remote Execution Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Remote Execution Issues

Root Cause

  • The filter "job_invocation.result = status" refers to the status of the particular job executed on any host.
  • The filter "execution_status = error" refers to the status of the last job executed on the particular host.
SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.