Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.3.0
    • Component/s: ambari-server
    • Labels:
      None

      Description

      ambari-server-2.1.0-1462.x86_64
      Attempting to register and install a repo version was stuck on one of the hosts.
      The cluster version was stuck in INSTALLING, and so was one of the hosts; the other hosts were fine
      Log from host were it failed

      2015-09-03 12:21:59,319 - Attempting to determine actual version with build number.
      2015-09-03 12:21:59,319 - Old versions: ['2.3.2.0-2598', '2.3.2.0-2716']
      2015-09-03 12:21:59,369 - New versions: ['2.3.2.0-2598', '2.3.2.0-2716']
      2015-09-03 12:21:59,369 - Deltas: set([])
      2015-09-03 12:21:59,370 - Cannot determine a new actual version installed by using the delta method.
      2015-09-03 12:21:59,370 - Found actual version 2.3.2.0-210 by parsing file /var/lib/ambari-agent/data/repo_version_history.csv
      

      In fact, the bug (at least at branch-2.1.0) is that we can not overwrite old build version of the same stack. For example,

      >>> import repo_version_history
      >>> import logging
      >>> Logger = logging.getLogger()
      >>> global Logger
      >>> repo_version_history.write_actual_version_to_history_file('2.3.2.0', '2.3.2.0-210')
      False
      >>> repo_version_history.write_actual_version_to_history_file('2.3.2.0', '2.3.2.0-2716')
      False
      

      produces

      cat /tmp/repo_version_history.csv
      2.3.2.0,2.3.2.0-210
      

      Originally check for existing repo version was added to avoid appending the same repo version multiple times to file. But later we decided to consider only "normalized" repo version (without build number) and introduced not obvious bug

      So the bug STR is to:

      • successfully install first repo version on host
      • install second repo version (of the same stack) on host, and it should fail during installation.
      1. AMBARI-13014.patch
        4 kB
        Dmitry Lysnichenko

        Issue Links

          Activity

          Hide
          dmitriusan Dmitry Lysnichenko added a comment -

          Committed to trunk and to branch-2.1

          Show
          dmitriusan Dmitry Lysnichenko added a comment - Committed to trunk and to branch-2.1
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #3405 (See https://builds.apache.org/job/Ambari-trunk-Commit/3405/)
          AMBARI-13014. RU: Installing version stuck on host (dlysnichenko) (dlysnichenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=82396b1fd322506b705662d097176481c94130d9)

          • ambari-common/src/main/python/resource_management/libraries/functions/repo_version_history.py
          • ambari-server/src/test/python/custom_actions/TestRepoVersionHistory.py
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #3405 (See https://builds.apache.org/job/Ambari-trunk-Commit/3405/ ) AMBARI-13014 . RU: Installing version stuck on host (dlysnichenko) (dlysnichenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=82396b1fd322506b705662d097176481c94130d9 ) ambari-common/src/main/python/resource_management/libraries/functions/repo_version_history.py ambari-server/src/test/python/custom_actions/TestRepoVersionHistory.py
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Ambari-branch-2.1 #497 (See https://builds.apache.org/job/Ambari-branch-2.1/497/)
          AMBARI-13014. RU: Installing version stuck on host (dlysnichenko) (dlysnichenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=6d9b99751597365221048021e34af20607942b25)

          • ambari-common/src/main/python/resource_management/libraries/functions/repo_version_history.py
          • ambari-server/src/test/python/custom_actions/TestRepoVersionHistory.py
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Ambari-branch-2.1 #497 (See https://builds.apache.org/job/Ambari-branch-2.1/497/ ) AMBARI-13014 . RU: Installing version stuck on host (dlysnichenko) (dlysnichenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=6d9b99751597365221048021e34af20607942b25 ) ambari-common/src/main/python/resource_management/libraries/functions/repo_version_history.py ambari-server/src/test/python/custom_actions/TestRepoVersionHistory.py

            People

            • Assignee:
              dmitriusan Dmitry Lysnichenko
              Reporter:
              dmitriusan Dmitry Lysnichenko
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development