Bug 1554774 - Host's custom parameters get removed upon changing the content-view using hammer
Summary: Host's custom parameters get removed upon changing the content-view using hammer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts
Version: 6.3.0
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: 6.4.0
Assignee: Rahul Bajaj
QA Contact: Stephen Wadeley
URL:
Whiteboard:
: 1601718 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-13 10:48 UTC by Gauravi
Modified: 2023-12-15 16:02 UTC (History)
18 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_foreman-0.13.2.1-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:22:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20725 0 High Closed 'hammer host update' removes existing host parameters 2020-09-02 12:28:22 UTC
Red Hat Knowledge Base (Solution) 3379581 0 None None None 2018-05-23 11:03:44 UTC

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


Note You need to log in before you can comment on or make changes to this bug.