[ 
https://issues.apache.org/jira/browse/AMBARI-11928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14586633#comment-14586633
 ] 

Hudson commented on AMBARI-11928:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.1 #45 (See 
[https://builds.apache.org/job/Ambari-branch-2.1/45/])
AMBARI-11928 RU: UI does not specify from_version when downgrading. 
(ababiichuk) (ababiichuk: 
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=54260cfaa30718da8babf4ec25601d596971b41a)
* ambari-web/test/controllers/main/admin/stack_and_upgrade_controller_test.js
* ambari-web/app/controllers/global/cluster_controller.js
* ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
* ambari-web/app/utils/ajax/ajax.js


> RU:  UI does not specify from_version when downgrading
> ------------------------------------------------------
>
>                 Key: AMBARI-11928
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11928
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.1.0.
>            Reporter: Andrii Babiichuk
>            Assignee: Andrii Babiichuk
>            Priority: Critical
>             Fix For: 2.1.0.
>
>         Attachments: AMBARI-11928.patch
>
>
> When the upgrade is cross-stack (HDP-2.2 -> HDP-2.3), the wrong upgrade pack 
> is used to create tasks.
> When the user is presented an option to Downgrade, the following request is 
> sent to the server:
> {noformat}
> POST /api/v1/clusters/c1/upgrades
> {
>   "RequestInfo": {
>     "downgrade": "true"
>   },
>   "Upgrade": {
>     "repository_version":"2.2.6.0-2772"
>   }
> }
> {noformat}
> This request makes the backend choose the HDP-2.2/upgrade-2.2 upgrade pack.  
> This is ok if the source and target versions were both 2.2, but when going 
> from 2.2 to 2.3, we should be picking the upgrade-2.3 Upgrade Pack.  The 
> request in this case should be:
> {noformat}
> POST /api/v1/clusters/c1/upgrades
> {
>   "RequestInfo": {
>     "downgrade": "true"
>   },
>   "Upgrade": {
>     "from_version": "2.3.0.0-2220",
>     "repository_version":"2.2.6.0-2772"
>   }
> }
> {noformat}
> The code to handle from_version is already implemented so no changes needed 
> on the BE.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to