Jonathan Hurley created AMBARI-20958:
----------------------------------------
Summary: Host Version on Finalization Must Be Scoped Correctly
Based on Upgrade Type
Key: AMBARI-20958
URL: https://issues.apache.org/jira/browse/AMBARI-20958
Project: Ambari
Issue Type: Task
Components: ambari-server
Affects Versions: trunk
Reporter: Jonathan Hurley
Assignee: Jonathan Hurley
Priority: Critical
Fix For: trunk
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.
h6. 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
h6. {{SERVICE}} upgrade from to HDP-2.5.4.0-121 for {{STORM}} only:
{noformat}
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!
{noformat}
{code}
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)
{code}
In the event that {{STORM}} is not installed on all hosts, finalization fails:
h6. 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
{noformat}
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
{noformat}
The {{host_version}} table must allow for multiple {{CURRENT}} versions.
Finalization must be allowed to occur when not all hosts are targeted for
upgrade.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)