Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1568063 - [RFE] Hammer Job Cancellation
Summary: [RFE] Hammer Job Cancellation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.2.14
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.5.0
Assignee: Adam Ruzicka
QA Contact: jcallaha
URL:
Whiteboard:
Depends On: 1465521
Blocks: 1582380
TreeView+ depends on / blocked
 
Reported: 2018-04-16 17:06 UTC by Camry Fedei
Modified: 2019-11-05 22:28 UTC (History)
12 users (show)

Fixed In Version: hammer_cli_foreman_remote_execution-0.1.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-14 12:37:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:1222 0 None None None 2019-05-14 12:37:20 UTC

Description Camry Fedei 2018-04-16 17:06:02 UTC
Description of problem:
Currently only able to cancel a job via the UI. Would like the ability to cancel the job via CLI via: # hammer job-invocation cancel id=job_id

Steps to complete in WebUI:
 1. Navigate to Monitor -> Jobs 
 2. Choose scheduled Job in question
 3. Select "Cancel Job"

Potential/Preferred Alternative:
 #  hammer job-invocation cancel id=job_id

Practical Use Case:
 - Partner has a customer who has provided a list of jobs needing to be scheduled for remote execution via satellite, and has decided to cancel one of these jobs for any reason.
     > It's difficult to search these as you can find the ID via hammer, but were unable to search through the webUI in the same manner, and have to dig through their other tasks to try and find the appropriate task.
     > Would make for a much easier execution to simply utilize hammer for the cancellation.

Comment 3 Adam Ruzicka 2018-06-04 12:46:49 UTC
hammer_cli_foreman_remote_execution-0.1.0 containing the needed bits and pieces was released in upstream.

Comment 8 jcallaha 2019-01-10 21:57:30 UTC
Verified in Satellite 6.5.0 Snap 10

[vagrant@sat-6-5-qa-rhel7 ~]$ hammer job-invocation list
---|--------------------------|--------|---------|--------|---------|-------|------------------------
ID | DESCRIPTION              | STATUS | SUCCESS | FAILED | PENDING | TOTAL | START                  
---|--------------------------|--------|---------|--------|---------|-------|------------------------
1  | Run ping -c 5 google.com | queued | N/A     | N/A    | N/A     | N/A   | 2019-01-11 21:46:00 UTC
---|--------------------------|--------|---------|--------|---------|-------|------------------------ 

[vagrant@sat-6-5-qa-rhel7 ~]$ hammer job-invocation cancel --id 1
Job invocation 1 cancelled

[vagrant@sat-6-5-qa-rhel7 ~]$ hammer job-invocation list
---|--------------------------|--------|---------|--------|---------|-------|------------------------
ID | DESCRIPTION              | STATUS | SUCCESS | FAILED | PENDING | TOTAL | START                  
---|--------------------------|--------|---------|--------|---------|-------|------------------------
1  | Run ping -c 5 google.com | failed | N/A     | N/A    | N/A     | 0     | 2019-01-11 21:46:00 UTC
---|--------------------------|--------|---------|--------|---------|-------|------------------------

Comment 10 errata-xmlrpc 2019-05-14 12:37: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/RHSA-2019:1222


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