FQDN and hostname check

Bug #1410545 reported by Amanda Moran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Released
High
Amanda Moran

Bug Description

- Installation should check that the configuration is correct:
o gethostname –f and gethostname –s should return different results, if not we stop the installation
o gethostname –f should return FQDN
o gethostname –s should return short names
o if “hostname -f” returns a short name then we error out => NEED TO CHECK
o we must check that what the Customer types matches the “hostname” (no arguments) information returned
o when Customer types the name for sqconfig we transform them into FQDN and we display the long names to the Customer
o then we test the different scenarios (long names, short names, whatever names) to make sure it works

Changes have been check in to the installer.

The test cases I tested myself:

1. Situation: /etc/hosts contains short name (hostname –f will equal short name) and /etc/sysconfig/network contains short name (hostname will equal short name).
Expected outcome: Error ( Exit warning will advise users that hostname –f and hostname –s are returning the same value)
               Actual outcome: Pass
2. Situation: /etc/hosts contains long name (hostname –f will equal a FQDN) and /etc/sysconfig/network contains short name (hostname will equal shortname)
Expected outcome: No error
Actual outcome: Pass
3. Situation: Nodes entered by user are FQDN and hostname is FQDN
Expected outcome: No error
Actual outcome: Pass
4. Situation: Nodes entered by user are FQDN and hostname is a short name
Expected outcome: Error (Exit warning will advice users to rerun trafodion_setup using shortnames)
Actual outcome: Pass
5. Situation: Nodes entered by user are short names and hostname is a short name
Expected outcome: No Error
Actual outcome: Pass
6. Situation: Nodes entered by user are short and hostname is a FQDN
Expected outcome: No Error but nodes entered will be changed to the FQDN (by adding the domain) and printed on the screen/logged.
Actual outcome: Pass

Tags: installer
Revision history for this message
Amanda Moran (amanda-kay-moran) wrote :

Waiting on more testing to close out bug.

Changed in trafodion:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.