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

HostInfo.fqdn could be wrong due to Python Issue5004

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 2.1.0
    • ambari-agent
    • None

    Description

      The HostInfo in the Ambari agent hearbeat could be wrong. This may lead to registration failure. The fqdn in HostInfo is from Facter.getFqdn(). Facter.getFqdn() calls the Python API socket.getfqdn() to get the fqdn. This, due to the Python Issue5004, could fail to get the real fqdn if there is no correct entry in "/etc/hosts" file, because the Python implementation calls an obsolete OS API. More details on the Python issue can be found its bug report.

      Attachments

        1. AMBARI-7765.1.patch
          1 kB
          Chuan Liu
        2. AMBARI-7765.2.patch
          1 kB
          Ivan Mitic
        3. AMBARI-7765.3.patch
          1 kB
          Ivan Mitic
        4. AMBARI-7765.4.patch
          2 kB
          Sumit Mohanty
        5. AMBARI-7765.patch
          1 kB
          Chuan Liu

        Activity

          People

            chuanliu Chuan Liu
            chuanliu Chuan Liu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: