You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Di Li <di...@ca.ibm.com> on 2017/01/23 16:51:09 UTC

Review Request 55848: AMBARI-19630: Ambari should accept stack version in format of x.x.x.x without the build level digits

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

Review request for Ambari and Tim Thorpe.


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


Repository: ambari


Description
-------

Ambari current requires stack version ( used in the repo) as x.x.x.x-xxxx, Ambari should be flexible enough to accept both x.x.x.x-xxxx and x.x.x.x


Diffs
-----

  ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py 7274a59 
  ambari-common/src/main/python/resource_management/libraries/functions/version_select_util.py 615a0cd 
  ambari-server/src/test/python/TestVersionSelectUtil.py 38798e2 

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


Testing
-------

unit tests
build an trunk cluster with version 2.6.0.0, run upgrade, downgrade, then upgrade again, at the Finalize step verify the hostcomponentstate table has 2.6.0.0 as the version and upgrade_state as COMPLETE instead of the previous "IN_PROGESS". then be able to click the finalize and finalize the upgrade.


Thanks,

Di Li