Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-20787

Ambari agent should log how it determines it's FQDN

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.5.1
    • ambari-agent
    • None

    Description

      Ambari agent determines its FQDN that will use for registering with Ambari Server as follows:

      1. invokes the script specified by hostname_script in ambari-agent.ini and uses the output of this script as host name to register with.
      2. if the script mentioned above returned with a non-zero error code (or threw an exception) than falls back to socket.getfqdn python api call.
      3. if hostname_script is not set in ambari-agent.ini than it uses socket.getfqdn python api call.

      Currently the agent doesn't log anything about how it obtained its FQDN which makes troubleshooting difficult in case it registers with Ambari Server using unexpected/wrong FQDN.

      Attachments

        1. AMBARI-20787.v1.patch
          2 kB
          Sebastian Toader

        Issue Links

          Activity

            People

              stoader Sebastian Toader
              stoader Sebastian Toader
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: