Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
"ambari-server upgradestack" will only work with specific OSs: redhat5, redhat6 and suse11, whereas in pre-1.6.0 releases, users could also specify other OSs in the same family (such as centos5, centos6, etc).
This change means this command now fails to run:
ambari-server upgradestack HDP-2.1 http://test centos6
01:16:41,187 ERROR [main] StackUpgradeHelper:168 - Caught exception on upgrade. Exiting... org.apache.ambari.server.StackAccessException: Stack data, stackName=HDP, stackVersion=2.1, osType=centos6, repoId=HDP-2.1 at org.apache.ambari.server.api.services.AmbariMetaInfo.getRepository(AmbariMetaInfo.java:331) at org.apache.ambari.server.api.services.AmbariMetaInfo.updateRepoBaseURL(AmbariMetaInfo.java:908) at org.apache.ambari.server.upgrade.StackUpgradeUtil.updateLocalRepo(StackUpgradeUtil.java:185) at org.apache.ambari.server.upgrade.StackUpgradeHelper.updateStackVersion(StackUpgradeHelper.java:117) at org.apache.ambari.server.upgrade.StackUpgradeHelper.main(StackUpgradeHelper.java:158)
But this runs:
ambari-server upgradestack HDP-2.1 http://test redhat6
Attachments
Issue Links
- links to