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

Add Host is only performing Hostname Resolution check for added hosts

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.2
    • Component/s: ambari-web
    • Labels:
      None

      Description

      When hosts are added to the cluster, on Add Host, a Hostname Resolution check is performed. This checks on each host that the other hosts are resolving. For example, if you have Host1, Host2 and Host3. On each host, Ambari confirms Host1, Host2 and Host3 can resolve (by doing this).

      socket.gethostbyname(host) 
      

      When adding hosts to a cluster via Add Host, Ambari performs the Hostname Resolution check but the list of hosts ONLY includes all added hosts, not any of the hosts already in the cluster. For example, if I add Host4 and Host5 to the cluster, Ambari will check that each of those hosts can resolve Host4 and Host5 but not Host1, Host2 or Host3. This can present a problem if these new hosts Host 4 and Host5 network is mis-configured. They might not be able to resolve the existing cluster hosts and therefore, once we get components installed and started, those components might not function in the cluster correctly. This can become a challenge to diagnose.

      Attaching a few screen shots showing what is happening. c6401 + c6402 are part of original cluster and both are passed with the host check. But when I add c6403, it doesn't include the existing hosts c6401/c6402 in the check.

      The solution is to include existing hosts in the list of hosts to check resolution. Understandably, this list might be large in a very big cluster, so an option is to ONLY include the set of hosts that include a Master Component (like NameNode, etc).

      1. AMBARI-12787.patch
        2 kB
        Aleksandr Kovalenko
      2. c6403.tiff
        545 kB
        Aleksandr Kovalenko
      3. c6401-2.tiff
        579 kB
        Aleksandr Kovalenko

        Activity

        Hide
        akovalenko Aleksandr Kovalenko added a comment -

        6506 tests complete (10 seconds)
        94 tests pending

        Show
        akovalenko Aleksandr Kovalenko added a comment - 6506 tests complete (10 seconds) 94 tests pending
        Hide
        ababiichuk Andrii Babiichuk added a comment -

        +1 for the patch

        Show
        ababiichuk Andrii Babiichuk added a comment - +1 for the patch
        Hide
        akovalenko Aleksandr Kovalenko added a comment -

        committed to trunk and branch-2.1

        Show
        akovalenko Aleksandr Kovalenko added a comment - committed to trunk and branch-2.1
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Ambari-branch-2.1 #382 (See https://builds.apache.org/job/Ambari-branch-2.1/382/)
        AMBARI-12787. Add Host is only performing Hostname Resolution check for added hosts (akovalenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f9f7836ebce127160a8bcf6af17b92b83b98dd48)

        • ambari-web/app/controllers/wizard/step3_controller.js
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Ambari-branch-2.1 #382 (See https://builds.apache.org/job/Ambari-branch-2.1/382/ ) AMBARI-12787 . Add Host is only performing Hostname Resolution check for added hosts (akovalenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f9f7836ebce127160a8bcf6af17b92b83b98dd48 ) ambari-web/app/controllers/wizard/step3_controller.js
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Ambari-trunk-Commit #3282 (See https://builds.apache.org/job/Ambari-trunk-Commit/3282/)
        AMBARI-12787. Add Host is only performing Hostname Resolution check for added hosts (akovalenko) (akovalenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=3299ce44ecc661a4dec678a50a730e4a162e88cc)

        • ambari-web/app/controllers/wizard/step3_controller.js
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #3282 (See https://builds.apache.org/job/Ambari-trunk-Commit/3282/ ) AMBARI-12787 . Add Host is only performing Hostname Resolution check for added hosts (akovalenko) (akovalenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=3299ce44ecc661a4dec678a50a730e4a162e88cc ) ambari-web/app/controllers/wizard/step3_controller.js

          People

          • Assignee:
            akovalenko Aleksandr Kovalenko
            Reporter:
            akovalenko Aleksandr Kovalenko
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development