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

Review request for Ambari, Dmytro Grinenko, Dmitro Lisnichenko, Jonathan 
Hurley, Nate Cole, and Sid Wagle.


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


Repository: ambari


Description
-------

In Ambari 2.1, if the stack is HDP 2.1, the user does not even see a Stacks and 
Versions page.
The Ambari upgrade will have to bootstrap the versions by
* Inserting repo_vesion for HDP 2.1
* Inserting cluster_vesion as CURRENT
* Inserting host_versions as CURRENT

This will then allow clicking on the "Perform Upgrade" button to call the 
Upgrades endpoint correctly, which needs to know the source version in order to 
calculate the upgrade pack and configs to use.


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java
 2c9714e 
  
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClusterVersionDAO.java
 d3326b1 
  
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog212.java
 6919e64 
  
ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml
 PRE-CREATION 
  
ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog212Test.java
 6268f91 

Diff: https://reviews.apache.org/r/38238/diff/


Testing
-------

Installed Ambari 2.1.1 with HDP 2.1.0.0
Upgraded Ambari to 2.1.2 using my build, which updated the schema, and also 
populated the repo_version, cluster_version, and host_version.
In my install, only the repo_version had an id in the ambari_sequences table, 
so I also tested that a value was inserted if not already present for all 3 
entities.

I also added a basic upgrade pack for HDP 2.1 -> 2.3 for basic testing, which 
can be started using a curl call.


Thanks,

Alejandro Fernandez

Reply via email to