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 1470987

Summary: discovery settings are named differently in hammer than in UI
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: HammerAssignee: Anurag Patel <apatel>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3.0CC: akarsale, apatel, aruzicka, dhlavacd, kgaikwad, lzap, mbacovsk, mhulan, nkathole, pcreech, rabajaj, sghai
Target Milestone: 6.5.0Keywords: Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/20360
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:36:19 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 Sachin Ghai 2017-07-14 08:32:26 UTC
Description of problem: 

In 6.3 snap6 UI, I see following two settings:

1. Hostname_facts
2. Hostname_prefix

However, in CLI hammer same settings are named as:

1. discovery_hostname
2. discovery_prefix


I think all settings names in hammer should be consistent w/ UI

Version-Release number of selected component (if applicable):
sat6.3 snap6

How reproducible:
always

Steps to Reproduce:
1.  hammer settings list | grep discovery
2.
3.

Actual results:
mismatch in discovery settings names in UI and hammer

Expected results:
for consistency, name should be same at both places ( UI and CLI)

Additional info:

Comment 3 Sachin Ghai 2017-07-20 08:34:47 UTC
I would prefer to have the fix in 6.3 only. This may create a usability issue as same settings are named differently at UI and CLI.

Comment 11 Satellite Program 2017-07-20 14:15:58 UTC
Upstream bug assigned to orabin

Comment 12 Sachin Ghai 2017-08-08 08:13:49 UTC
@Brad, I would like to stick w/ the bz.

Comment 13 Lukas Zapletal 2018-05-29 14:21:35 UTC
After another look, I believe this should be fixed in hammer core.

Comment 14 Satellite Program 2018-06-21 10:23:08 UTC
Upstream bug assigned to apatel

Comment 15 Adam Ruzicka 2018-07-03 10:04:58 UTC
Just setting the devel_triaged flag as we seem to be keeping the BZ and fix is in the works in upstream.

Comment 16 Satellite Program 2018-07-03 14:22:49 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20360 has been resolved.

Comment 19 Nikhil Kathole 2018-12-14 07:50:12 UTC
VERIFIED

Version tested:
Satellite 6.5 snap 7

CLI now provides the FULL NAME column which helps to find settings as per UI name.

# hammer settings list | grep 'Hostname prefix'
discovery_prefix                                       | Hostname prefix                                             | mac                                                                              | The default prefix to use for the host name, must start with a letter           

# hammer settings list | grep 'Hostname facts'
discovery_hostname                                     | Hostname facts                                              | discovery_bootif                                                                 | List of facts to use for the hostname (separated by comma, first wins)

Comment 22 errata-xmlrpc 2019-05-14 12:36:19 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-2019:1222