[
https://issues.apache.org/jira/browse/AMBARI-13594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xi Wang updated AMBARI-13594:
-----------------------------
Description:
CompatibleRepositoryVersion ResourceProvider will have one more field called
"upgrade_types" that will be a list of all of the upgrade types that are
supported from the current stack to the target stack of the repo version that
is registered.
E.g.,
* Current stack is 2.1
* Cluster Version record for HDP 2.3 is INSTALLED (and has repo)
Then the button for Perform Upgrade should check the compatible repositories
endpoint for 2.1->2.3. That particular path will only allow NON_ROLLING (aka
Express Upgrade).
The API to use in order to determine whether ROLLING, NON_ROLLING (Express) or
BOTH are applicable is like this :
Example : In order to check for 2.2 - > 2.3 upgrade, look at upgrade_types
information in order to determine the supported type.
http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/compatible_repository_versions/2
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/compatible_repository_versions/2",
"CompatibleRepositoryVersions" :
{ "display_name" : "HDP-2.3.0.0-2557", "id" : 2, "repository_version" :
"2.3.0.0-2557", "stack_name" : "HDP", "stack_version" : "2.3", *
"upgrade_types" : [ "ROLLING", "NON_ROLLING" ]* }
was:
CompatibleRepositoryVersion ResourceProvider will have one more field called
"upgrade_types" that will be a list of all of the upgrade types that are
supported from the current stack to the target stack of the repo version that
is registered.
E.g.,
* Current stack is 2.1
* Cluster Version record for HDP 2.3 is INSTALLED (and has repo)
Then the button for Perform Upgrade should check the compatible repositories
endpoint for 2.1->2.3. That particular path will only allow NON_ROLLING (aka
Express Upgrade).
The API to use in order to determine whether ROLLING, NON_ROLLING (Express) or
BOTH are applicable is like this :
Example : In order to check for 2.2 - > 2.3 upgrade, look at upgrade_types
information in order to determine the supported type.
http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/compatible_repository_versions/2
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/compatible_repository_versions/2",
"CompatibleRepositoryVersions" :
{ "display_name" : "HDP-2.3.0.0-2557", "id" : 2, "repository_version" :
"2.3.0.0-2557", "stack_name" : "HDP", "stack_version" : "2.3", *
"upgrade_types" : [ "ROLLING", "NON_ROLLING" ]* }
> Express Upgrade: UI - Disallow RU in HDP 2.1->2.3 since no upgrade pack
> supports it
> -----------------------------------------------------------------------------------
>
> Key: AMBARI-13594
> URL: https://issues.apache.org/jira/browse/AMBARI-13594
> Project: Ambari
> Issue Type: Story
> Components: ambari-web
> Affects Versions: 2.1.3
> Reporter: Xi Wang
> Assignee: Xi Wang
> Fix For: 2.1.3
>
> Attachments: AMBARI-13594.patch
>
>
> CompatibleRepositoryVersion ResourceProvider will have one more field called
> "upgrade_types" that will be a list of all of the upgrade types that are
> supported from the current stack to the target stack of the repo version that
> is registered.
> E.g.,
> * Current stack is 2.1
> * Cluster Version record for HDP 2.3 is INSTALLED (and has repo)
> Then the button for Perform Upgrade should check the compatible repositories
> endpoint for 2.1->2.3. That particular path will only allow NON_ROLLING (aka
> Express Upgrade).
> The API to use in order to determine whether ROLLING, NON_ROLLING (Express)
> or BOTH are applicable is like this :
> Example : In order to check for 2.2 - > 2.3 upgrade, look at upgrade_types
> information in order to determine the supported type.
> http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/compatible_repository_versions/2
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/compatible_repository_versions/2",
> "CompatibleRepositoryVersions" :
> { "display_name" : "HDP-2.3.0.0-2557", "id" : 2, "repository_version" :
> "2.3.0.0-2557", "stack_name" : "HDP", "stack_version" : "2.3", *
> "upgrade_types" : [ "ROLLING", "NON_ROLLING" ]* }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)