Bug 1440976

Summary: hammer: `... job-invocation info -h` says "--name" is a possible option, but it returns "Error: 400 Bad Request"
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: Remote ExecutionAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2.8CC: aruzicka, bbuckingham, dhlavacd, egolov, ehelms, inecas, jcallaha, orabin, oshtaier, psuriset, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: scale_lab
Fixed In Version: tfm-rubygem-hammer_cli_foreman_remote_execution-0.0.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 17:02:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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