Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1554774

Summary: Host's custom parameters get removed upon changing the content-view using hammer
Product: Red Hat Satellite Reporter: Gauravi <gapatil>
Component: HostsAssignee: Rahul Bajaj <rabajaj>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.3.0CC: ahumbe, akarsale, apatel, bkearney, dhlavacd, inecas, jason.unovitch, kgaikwad, mhulan, pcreech, pierre-yves.goubet, rabajaj, rajukuma, rbajaj, sreber, swadeley, tstrachota, vvasilev
Target Milestone: 6.4.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_foreman-0.13.2.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 19:22:43 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 Gauravi 2018-03-13 10:48:43 UTC
Description of problem:
Updating content-view for a host using hammer removes host's parameters 

Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli-0.11.0.1-1.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. #hammer host info --name host.example.com
...
Parameters:
    kt_activation_keys => test_key
    tag.purpose => testing
All parameters:
    kt_activation_keys => test_key
    tag.purpose => testing
...

2. #hammer host update  --name host.example.com --content-view content_view_2

3. #hammer host info --name host.example.com
...
Parameters:

All parameters:
...

Actual results:
Custom parameters gets removed/wiped out

Expected results:
Custom parameters should be retained

Additional info:
1. Customer is creating this parameter manually kt_activation_keys might be because in documentation it is not so clear. 

2. Same task can be done through web UI with those custom parameters retained.

Comment 3 Ivan Necas 2018-05-22 10:23:47 UTC
Connecting redmine issue http://projects.theforeman.org/issues/20725 from this bug

Comment 7 Tomas Strachota 2018-07-18 08:17:32 UTC
*** Bug 1601718 has been marked as a duplicate of this bug. ***

Comment 8 Rahul Bajaj 2018-07-23 12:04:33 UTC
related pr: https://github.com/theforeman/hammer-cli-foreman/pull/368

Comment 10 Rahul Bajaj 2018-08-08 09:52:26 UTC
Hey gauravi,

yes, it seems to be a duplicate. The pr is https://github.com/theforeman/hammer-cli-foreman/pull/368. need to add some tests there, doing that asap!

Comment 12 Satellite Program 2018-09-05 10:07:24 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/20725 has been resolved.

Comment 16 Patrick Creech 2018-09-24 14:45:22 UTC
snap 23, not 63

Comment 18 Bryan Kearney 2018-10-16 19:22:43 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:2927