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

Host Version on Finalization Must Be Scoped Correctly Based on Upgrade Type

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • trunk
    • trunk
    • ambari-server
    • None

    Description

      During a PATCH or SERVICE upgrade, finalization will either fail or be incorrect based on the topology of the cluster. In cases where the upgraded service has components on every host, the host_version table is moved incorrectly to reflect the stack of the upgraded component.

      Topology (HDP 2.4.2.0-236)
      • c6401 - ZooKeeper Server, ZooKeeper Client, Storm Nimbus
      • c6402 - ZooKeeper Server, ZooKeeper Client, Storm Supervisor
      • c6403 - ZooKeeper Server, ZooKeeper Client, Storm Supervisor
      SERVICE upgrade from to HDP-2.5.4.0-121 for STORM only:
      Begin finalizing the upgrade of cluster c1 to version 2.5.4.0-121
      Finalizing the upgraded state of host components in 3 host(s).
      Finalizing the version for 3 host(s).
      Finalizing the version for cluster c1.
      Creating upgrade history.
      Upgrade was successful!
      
      ambari=# SELECT host_version.host_id, repo_version.version, state FROM host_version, repo_version WHERE host_version.repo_version_id = repo_version.repo_version_id ORDER BY version, host_id;
       host_id |   version   |   state
      ---------+-------------+-----------
             1 | 2.4.2.0-236 | INSTALLED
             2 | 2.4.2.0-236 | INSTALLED
             3 | 2.4.2.0-236 | INSTALLED
             1 | 2.5.4.0-121 | CURRENT
             2 | 2.5.4.0-121 | CURRENT
             3 | 2.5.4.0-121 | CURRENT
      (6 rows)
      

      In the event that STORM is not installed on all hosts, finalization fails:

      Topology (HDP 2.4.2.0-236)
      • c6401 - ZooKeeper Server, ZooKeeper Client, Storm Nimbus
      • c6402 - ZooKeeper Server, ZooKeeper Client, Storm Supervisor
      • c6403 - ZooKeeper Server, ZooKeeper Client
      Begin finalizing the upgrade of cluster c1 to version 2.5.4.0-121
      The following 1 host(s) have not been upgraded to version 2.5.4.0-121. Please install and upgrade the Stack Version on those hosts and try again.
      Hosts: c6403.ambari.apache.org
      

      The host_version table must allow for multiple CURRENT versions. Finalization must be allowed to occur when not all hosts are targeted for upgrade.

      Attachments

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: