You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Alice Chen (JIRA)" <ji...@apache.org> on 2015/07/22 20:18:35 UTC

[jira] [Created] (TRAFODION-888) LP Bug: 1410545 - FQDN and hostname check

Alice Chen created TRAFODION-888:
------------------------------------

             Summary: LP Bug: 1410545 - FQDN and hostname check
                 Key: TRAFODION-888
                 URL: https://issues.apache.org/jira/browse/TRAFODION-888
             Project: Apache Trafodion
          Issue Type: Bug
          Components: installer
            Reporter: Amanda Moran
            Assignee: Amanda Moran
            Priority: Critical
             Fix For: 1.0 (pre-incubation)


-	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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)