Bug 1357864

Summary: Hammer : The puppet default field for sc-param matcher is not displayed
Product: Red Hat Satellite Reporter: Jitendra Yejare <jyejare>
Component: HammerAssignee: orabin
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, bkearney, oshtaier
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 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 Jitendra Yejare 2016-07-19 12:31:07 UTC
Description of problem:
Hammer is not displaying the puppet default is used for sc-param's matcher or not in 'sc-param info'.

Version-Release number of selected component (if applicable):
Sat 6.2 Snap 20.2 GA

How reproducible:
Always

Steps to Reproduce:
1. Create a matcher for sc-param.
2. Enter some 'value' for matcher and also check puppet default for that matcher.
3. Submit the sc-param.
4. Hammer info that sc-param and its matchers.

Actual results:
It doesnt displays any field for matcher showing whether its using puppet default or not.

Expected results:
hammer info should display both the given value as well as field for puppet default showing true or false.

Additional info:

Comment 2 orabin 2016-08-11 09:47:33 UTC
Created redmine issue http://projects.theforeman.org/issues/16059 from this bug

Comment 3 Bryan Kearney 2016-08-11 10:16:27 UTC
Upstream bug assigned to orabin

Comment 4 Bryan Kearney 2016-08-11 10:16:30 UTC
Upstream bug assigned to orabin

Comment 5 Bryan Kearney 2016-08-18 10:17:04 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/16059 has been closed

Comment 6 orabin 2016-10-05 15:23:36 UTC
*** Bug 1352502 has been marked as a duplicate of this bug. ***

Comment 8 Stanislav Tkachenko 2016-11-02 01:25:59 UTC
Verified on Satellite 6.3.0 Snap 5.0, hammer_cli_foreman 0.8.0

> # hammer -v -u admin -p changeme sc-param info --puppet-class="cli_test_classparameters" --id="3183" | grep default
> Use puppet default: no

> # hammer -v -u admin -p changeme --output=csv sc-param update --override="1" --use-puppet-default="1" --id="3183"               
> Parameter updated,3183
> # hammer -v -u admin -p changeme sc-param info --puppet-class="cli_test_classparameters" --id="3183" | grep default
> Use puppet default: yes

> # hammer -v -u admin -p changeme --output=csv sc-param update --use-puppet-default="0" --id="3183"
> Parameter updated,3183
> # hammer -v -u admin -p changeme sc-param info --puppet-class="cli_test_classparameters" --id="3183" | grep default
> Use puppet default: no

Comment 9 Satellite Program 2018-02-21 16:54:17 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