FQDN and hostname check
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/
Expected outcome: Error ( Exit warning will advise users that hostname –f and hostname –s are returning the same value)
2. Situation: /etc/hosts contains long name (hostname –f will equal a FQDN) and /etc/sysconfig/
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
Changed in trafodion: | |
status: | Fix Committed → Fix Released |
Waiting on more testing to close out bug.