I need a hammer (CLI) command that will cancel jobs
Environment
Red Hat Satellite Server 6.2.x
Red Hat Satellite Server 6.3.x
Red Hat Satellite Server 6.4.x
Issue
Currently we are only able to cancel a job via the UI. Would like the ability to cancel the job via CLI such as: # hammer job-invocation cancel id=job_id
Steps to complete in WebUI:
- Navigate to Monitor -> Jobs
- Choose scheduled Job in question
- Select "Cancel Job"
Potential/Preferred Alternative:
hammer job-invocation cancel id=job_id
Current status:
Hammer does not currently have this functionality.
Resolution
This issue is resolved under BZ 1568063 for Satellite Server 6.5
Eratta: RHSA-2019:1222
$ hammer job-invocation list
| ID | DESCRIPTION | STATUS | SUCCESS | FAILED | PENDING | TOTAL | START |
|---|
| 1 | Run ping -c 5 company.com | queued | N/A | N/A | N/A | N/A | 2019-01-11 21:46:00 UTC |
|---|
$ hammer job-invocation cancel --id 1
Job invocation 1 cancelled
$ hammer job-invocation list
| ID | DESCRIPTION | STATUS | SUCCESS | FAILED | PENDING | TOTAL | START |
|---|
| 1 | Run ping -c 5 company.com | failed | N/A | N/A | N/A | 0 | 2019-01-11 21:46:00 UTC |
|---|
For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues
For more KB articles/solutions related to Red Hat Satellite 6.x Remote Execution Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Remote Execution Issues
Root Cause
This feature did not exist in previous Satellite versions. It has been added to the Satellite 6.5 release.
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.