Bug 1304500
| Summary: | Validation on IP addressed failed with a comma present | ||
|---|---|---|---|
| Product: | Red Hat Quickstart Cloud Installer | Reporter: | John Matthews <jmatthew> |
| Component: | fusor-installer | Assignee: | Jason Montleon <jmontleo> |
| Status: | CLOSED DEFERRED | QA Contact: | Tasos Papaioannou <tpapaioa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.0 | CC: | apagac, jmontleo, tpapaioa |
| Target Milestone: | TP3 | Keywords: | Triaged |
| Target Release: | 1.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-02-25 17:27:21 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1315447 | ||
|
Description
John Matthews
2016-02-03 20:12:00 UTC
https://github.com/fusor/fusor-installer/pull/53 will fix this RHEL-OSP nodes setup restrictions Addressed in TP3 RC3 With the changes from https://github.com/fusor/fusor-installer/pull/53 , validate_ntp_host in /usr/share/katello-installer/hooks/lib/provisioning_wizard.rb looks like this: --- def validate_ntp_host if @ntp_host.nil? || @ntp_host.empty? 'NTP sync host must be specified' elsif !(valid_hostname?(@ntp_host)) && !(valid_hostname?(@ntp_host)) 'NTP sync host - Invalid Hostname or IP address' end end --- What's the reason for having !(valid_hostname?(@ntp_host)) && !(valid_hostname?(@ntp_host)) instead of just !(valid_hostname?(@ntp_host)) ? Maybe it was intended to be: !(valid_ip?(@ntp_host)) || !(valid_hostname?(@ntp_host)) ? This is what was meant. It should be possible to enter an IP or hostname for the ntp host. !(valid_ip?(@ntp_host)) || !(valid_hostname?(@ntp_host)) Shouldn't it be: !(valid_ip?(@ntp_host)) && !(valid_hostname?(@ntp_host)) i.e., if (not a valid ip address) AND (not a valid hostname), then return ''NTP sync host - Invalid Hostname or IP address'? Yes. I think we're saying the same thing; it's a bug and should be fixed. Working on it now Verified on fusor-installer-0.0.14-40.el7_2.noarch.rpm QCI has sunset. Closing the BZ's. |