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 1470676 - Validations around Hostname_prefix setting are missing
Summary: Validations around Hostname_prefix setting are missing
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Discovery Plugin
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-13 12:48 UTC by Sachin Ghai
Modified: 2019-08-12 14:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 17:45:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sachin Ghai 2017-07-13 12:48:06 UTC
Description of problem:
Hostname_prefix setting description says: The default prefix to use for the host name, must start with a letter

Since we know that prefix must start w/ letter then lets add some validation around prefix. For now I can enter any string for this setting, which may not work when host is discovered.

Like: I tried -mac(notice - ) and it was updated, though when I discovered host, given prefix was not set. So we should add validations.

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

How reproducible:


Steps to Reproduce:
1. go to Administer -> settings -> discovered -> hostname_prefix
2. set some string which doesn't start w/ letter
3.

Actual results:
any string starting w/ special characters, number is being accepted

Expected results:
user shouldn't be able to set any random string. in case user tries to update string which doesn't start w/ letter, should get validation error.

Additional info:

Comment 2 Sachin Ghai 2017-08-10 10:37:46 UTC
Please note similar validation needs to be set in hammer:
]# hammer -u admin -p changeme settings list | grep discovery_prefix
discovery_prefix                                       |                                                                        | The default prefix to use for the host name, must start with a letter           
[root@cloud-qe]# hammer -u admin -p changeme settings set --name discovery_prefix --value "1mac"
Setting [discovery_prefix] updated to [1mac]

Comment 3 Bryan Kearney 2018-09-04 17:45:58 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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