ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-19473) Add Downgrade request validation to avoid accidental double-upgrades
Date Thu, 12 Jan 2017 03:28:16 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-19473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Hurley updated AMBARI-19473:
-------------------------------------
    Attachment: AMBARI-19473.patch

> Add Downgrade request validation to avoid accidental double-upgrades
> --------------------------------------------------------------------
>
>                 Key: AMBARI-19473
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19473
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-19473.patch
>
>
> There are currently several ways of starting upgrades / downgrades:
> - The use of a directive on the request
> {noformat}
> http://localhost:8080/api/v1/clusters/c1/upgrades?downgrade=true
> {noformat}
> - The POST body JSON
> {noformat}
> {
> "RequestInfo": {
>   "downgrade": "true"
>   },
> "Upgrade":{
>   "from_version": ...
>  }
> }
> {noformat}
> The directive is confusing and can allow multiple downgrades or upgrades to be scheduled
concurrently. It should be removed for consistency and the {{Upgrade/direction}} property
should replace it.



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

Mime
View raw message