Bug 457048 - RHN Satellite should allow FQDN with two parts
Summary: RHN Satellite should allow FQDN with two parts
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 0.1
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space02
TreeView+ depends on / blocked
 
Reported: 2008-07-29 13:22 UTC by Miroslav Suchý
Modified: 2009-09-17 06:59 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-09-17 06:59:42 UTC
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2008-07-29 13:22:28 UTC
+++ This bug was initially created as a clone of Bug #456413 +++

Description of problem:
Satellite 3.6? - 5.x

When trying to install a RHN Proxy on a system that has a FQDN that is built up
as hostname.root, for example "proxy.com", the Satellite refuses to configure
the new Proxy, and returns "proxy.com does not appear to be a valid hostname",
even though it resolves fine. 

According to the Satellite, the following would be an invalid host name:

$ host redhat.com
redhat.com has address 209.132.177.50

The Satellite expects a FQDN to have at least three parts, which makes no sense,
since it is perfectly valid to use hostname.root. The Satellite software
should allow FQDN with at least two parts.

Version-Release number of selected component (if applicable):
3.6? - 5.x

How reproducible:
Always

Steps to Reproduce:
1. Install a RHN Satellite Server
2. Install a RHN Proxy Server
3. Try to "Configure RHN Proxy Server" from the RHN Satellite webGUI, and press
"Continue".
  
Actual results:

Invalid RHN Proxy Hostname: proxy.com does not appear to be a valid hostname.
Invalid RHN Parent Server: satellite.com does not appear to be a valid hostname.

Expected results:
The RHN Satellite Server recognises the valid hostnames and configures the RHN
Proxy Server

Additional info:
This also goes for the Satellite installer, where we have to use --skip-fqdn
with perfectly resolveable hosts.

-- Additional comment from pkrul on 2008-07-23 09:00 EST --
Created an attachment (id=312479)
Patch to fix FQDN subroutines in rhn-base 5.x (source from spacewalk-git-20080702)

Comment 1 Miroslav Suchý 2008-07-29 13:33:28 UTC
Commited to git as:
5956596b2834d77aa588a74d8c215e7b68a57be4
d3de97dbf011b9e20de630e75446f3c9da86f2c9


Comment 2 Jesus M. Rodriguez 2008-09-09 17:59:06 UTC
redhat.com and anything greater than 2 works. A hostname of firebird does not.

Comment 3 Miroslav Suchý 2009-09-17 06:59:42 UTC
Spacewalk is released for long time.


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