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] [Created] (AMBARI-19473) Add Downgrade request validation to avoid accidental double-upgrades
Date Wed, 11 Jan 2017 21:26:16 GMT
Jonathan Hurley created AMBARI-19473:
----------------------------------------

             Summary: 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


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