Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-888

LP Bug: 1410545 - FQDN and hostname check

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.0 (pre-incubation)
    • installer
    • None

    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

      Attachments

        Issue Links

          Activity

            People

              amoran Amanda Moran
              amoran Amanda Moran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: