Bug 1022248

Summary: Hammer CLI: unable to set a global parameter
Product: Red Hat Satellite Reporter: Apurva Bhole <abhole>
Component: ProvisioningAssignee: Ohad Levy <ohadlevy>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: NightlyCC: dcleal, ohadlevy, omaciel, sghai
Target Milestone: UnspecifiedKeywords: Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/3473
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:15:00 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:

Description Apurva Bhole 2013-10-22 20:18:57 UTC
Description of problem:
The "global_parameter set" command fails.

Version-Release number of selected component (if applicable):
# rpm -qa | grep foreman
katello-configure-foreman-1.4.7-5.el6sat.noarch
foreman-1.3.0-18.el6sat.noarch
foreman-proxy-1.3.0-3.el6sat.noarch
ruby193-rubygem-foreman-katello-engine-0.0.17-6.el6sat.noarch
ruby193-rubygem-katello-foreman-engine-0.0.11-3.el6sat.noarch
katello-foreman-all-1.4.6-39.el6sat.noarch
ruby193-rubygem-foreman_api-0.1.6-1.el6sat.noarch
rubygem-foreman_api-0.1.6-1.el6sat.noarch
rubygem-hammer_cli_foreman-0.0.7-2.el6sat.noarch
foreman-postgresql-1.3.0-18.el6sat.noarch
katello-configure-foreman-proxy-1.4.7-5.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. global_parameter set --name $name --value $value

Actual results:
Error: undefined method `index' for #<HammerCLI::Apipie::ResourceInstance:0x7f5e40700df0>

Expected results:
parameter should be set successfully

Comment 2 Apurva Bhole 2013-10-22 20:28:25 UTC
More Info:
# rpm -qa | grep hammer
rubygem-hammer_cli-0.0.7-2.el6sat.noarch
rubygem-hammer_cli_foreman-0.0.7-2.el6sat.noarch

Comment 4 Dominic Cleal 2014-01-09 13:45:17 UTC
Unsure of the exact hammer release, but now fixed upstream for the next MDP.

Comment 7 Sachin Ghai 2014-05-06 09:12:03 UTC
Verified with Satellite-6.0.3-RHEL-6-20140430.4

[root@qetello02 yum.repos.d]# hammer global-parameter set --name='testparam' --value='testvalue'
Created parameter [testparam] with value [testvalue].
[root@qetello02 yum.repos.d]# hammer global-parameter list
---------------|--------------------------
NAME           | VALUE                    
---------------|--------------------------
opt-ASJyPuHadi | val-rAQEyCLjbI GNnDkJtFun
opt-lcudsGTyuD | val-edJgeRQBEW YlYJmBvFjz
testparam      | testvalue                
---------------|--------------------------
[root@qetello02 yum.repos.d]#

Comment 8 Bryan Kearney 2014-07-02 14:08:56 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.

Comment 9 Bryan Kearney 2014-07-02 14:10:29 UTC
This was delivered in 6.0.3, the Beta version of Satellite 6.0

Comment 10 Bryan Kearney 2014-07-02 14:15:00 UTC
This was delivered in the Satellite 6 Beta (6.0.3)