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

Tom Beerbower resolved AMBARI-8784.
-----------------------------------
    Resolution: Fixed

> Unable To Move Manual Task From HOLDING to COMPLETED Via API
> ------------------------------------------------------------
>
>                 Key: AMBARI-8784
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8784
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-8784.patch
>
>
> Create a manual upgrade task via the upgrade pack, the result stage/task 
> combination that's created in the database cannot be updated via the 
> upgrade_items endpoint.
> {noformat}
> GET 
> http://localhost:8080/api/v1/clusters/c1/upgrades/26/upgrade_groups/19/upgrade_items/1/tasks/614
> {
>   "href" : 
> "http://localhost:8080/api/v1/clusters/c1/upgrades/26/upgrade_groups/19/upgrade_items/1/tasks/614";,
>   "Tasks" : {
>     "attempt_cnt" : 1,
>     "cluster_name" : "c1",
>     "command" : "EXECUTE",
>     "command_detail" : "AMBARI_SERVER_ACTION EXECUTE",
>     "end_time" : -1,
>     "error_log" : "/var/lib/ambari-agent/data/errors-614.txt",
>     "exit_code" : 0,
>     "host_name" : "c6403.ambari.apache.org",
>     "id" : 614,
>     "output_log" : "/var/lib/ambari-agent/data/output-614.txt",
>     "request_id" : 26,
>     "role" : "AMBARI_SERVER_ACTION",
>     "stage_id" : 1,
>     "start_time" : 1418838183777,
>     "status" : "HOLDING",
>     "stderr" : "",
>     "stdout" : "",
>     "structured_out" : { }
>   }
> }
> {noformat}
> {noformat}
> PUT 
> http://localhost:8080/api/v1/clusters/c1/upgrades/26/upgrade_groups/19/upgrade_items/1/tasks/614
> {
>   "UpgradeItem" : {
>     "status" : "COMPLETED"
>   }
> }
> 404 Method Not Allowed
> PUT  
> http://localhost:8080/api/v1/clusters/c1/upgrades/26/upgrade_groups/19/upgrade_items/1
> {
>   "UpgradeItem" : {
>     "status" : "COMPLETED"
>   }
> }
> 404 Method Not Allowed
> PUT http://localhost:8080/api/v1/clusters/c1/requests/26/stages/1
> {
>   "Stage" : {
>     "status" : "COMPLETED"
>   }
> }
> HTTP 200
> {noformat}



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

Reply via email to