-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/58483/
-----------------------------------------------------------

Review request for Ambari, Dmytro Grinenko and Nate Cole.


Bugs: AMBARI-20774
    https://issues.apache.org/jira/browse/AMBARI-20774


Repository: ambari


Description
-------

When a VDF for a {{SERVICE}} upgrade targets only a subset of hosts in the 
cluster, there is a host version entry created for all hosts with the state of 
{{INSTALLING}}. This causes the web client to think that the installation is 
not complete and it prevents the upgrade button from displaying.

STR:
- Install a cluster with ZK and Storm
-- ZK should be on all 3 hosts, Storm only on 2
- Upload a VDF for Storm only and distribute it

With the introduction of PATCH/SERVICE repositories, we need to properly set 
the host_version based on a variety of factors:
- NOT_REQUIRED if the host has no versionable components or has no components 
targetted by the repository
- OUT_OF_SYNC _only_ if the host is supposed to have the repository installed 
but is in MM
- INSTALLING for all others (INSTALLED when forced)


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
 6e08e7b 
  ambari-server/src/main/java/org/apache/ambari/server/state/Cluster.java 
c961995 
  
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
 b7cc4cd 
  
ambari-server/src/test/java/org/apache/ambari/server/checks/ServicesNamenodeTruncateCheckTest.java
 df1aa37 
  
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProviderTest.java
 5ef31b5 
  
ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java
 345c463 


Diff: https://reviews.apache.org/r/58483/diff/1/


Testing
-------

PENDING...


Thanks,

Jonathan Hurley

Reply via email to