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.