Jonathan Hurley created AMBARI-11939:
----------------------------------------

             Summary: Upgrades Placed Into ABORTED Status Show As COMPLETED
                 Key: AMBARI-11939
                 URL: https://issues.apache.org/jira/browse/AMBARI-11939
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.1.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
            Priority: Critical
             Fix For: 2.1.0


When placing a stack upgrade request into the ABORTED state, Ambari calculates 
the stages and overall request as COMPLETED even though the tasks are actually 
ABORTED.

This prevents that request from being placed back into the PENDING state.

{code}

- Now this upgrade can be aborted:
{code:title=PUT api/v1/clusters/<cluster>/upgrades/21}
{
  "Upgrade": {
    "request_status": "ABORTED"
  }
}
{code}

- At this point, experimental mode can be enabled to work with Ambari. When 
finalize is ready, the same upgrade/request can be placed back into a 
{{PENDING}} status:
{code:title=PUT api/v1/clusters/<cluster>/upgrades/21}
{
  "Upgrade": {
    "request_status": "PENDING"
  }
}
{code}



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

Reply via email to