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 1440976 - hammer: `... job-invocation info -h` says "--name" is a possible option, but it returns "Error: 400 Bad Request"
Summary: hammer: `... job-invocation info -h` says "--name" is a possible option, but ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.2.8
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Adam Ruzicka
QA Contact: Peter Ondrejka
URL:
Whiteboard: scale_lab
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-10 21:19 UTC by Jan Hutař
Modified: 2019-04-01 20:27 UTC (History)
11 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_foreman_remote_execution-0.0.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 17:02:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 19253 0 None None None 2017-04-12 09:33:20 UTC

Description Jan Hutař 2017-04-10 21:19:16 UTC
Description of problem:
`... job-invocation info -h` says "--name" is a possible option, but it returns "Error: 400 Bad Request"


Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli-0.5.1.13-2.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_remote_execution-0.0.5.3-1.el7sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Have job with description "rex-template-date.sh at 2017-04-10"
2. Check help for "job-invocation info" sub command:
   # hammer -d --username <user> --password <pass> job-invocation info --help
3. Try to use "--name":
   # hammer --username <admin> --password <pass> job-invocation info --name "rex-template-date.sh at 2017-04-10"


Actual results:
Error: 400 Bad Request


Expected results:
Either should work (and maybe "--name" should be renamed to "--description", or it should provide helpful error message.

Comment 3 Adam Ruzicka 2017-04-12 09:33:16 UTC
Created redmine issue http://projects.theforeman.org/issues/19253 from this bug

Comment 4 Satellite Program 2017-04-12 12:08:16 UTC
Upstream bug assigned to aruzicka

Comment 5 Satellite Program 2017-04-12 12:08:20 UTC
Upstream bug assigned to aruzicka

Comment 6 Satellite Program 2017-04-18 14:08:09 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19253 has been resolved.

Comment 7 Oleksandr Shtaier 2017-07-03 07:47:21 UTC
According to PR name should not be accepted as a parameter, so removing BZ as a candidate for test automation

Comment 9 Adam Ruzicka 2017-08-16 14:32:51 UTC
The fix is included in upstream release hammer_cli_foreman_remote_execution-0.0.6

Comment 14 Peter Ondrejka 2017-10-23 12:26:56 UTC
On satellite-6.3.0-21.0.beta.el7sat.noarch

~]# hammer job-invocation info -h
Usage:
    hammer job-invocation info [OPTIONS]

Options:
 --id ID                        
 -h, --help                    print help

Comment 15 Bryan Kearney 2018-02-21 17:02:45 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-2018:0336


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