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)