Siddharth Wagle created AMBARI-4306:
---------------------------------------
Summary: Request Schedule status not updated for Point in time
execution request
Key: AMBARI-4306
URL: https://issues.apache.org/jira/browse/AMBARI-4306
Project: Ambari
Issue Type: Bug
Components: controller
Affects Versions: 1.5.0
Reporter: Siddharth Wagle
Assignee: Siddharth Wagle
Fix For: 1.5.0
*API call*:
{code}
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST -d
'[{"RequestSchedule":{"batch":[{"requests":[{"order_id" :
"1","type":"POST","uri":"/api/v1/clusters/c1/requests","RequestBodyInfo":{"RequestInfo":{"context":"Restart
Nagios","command":"RESTART","service_name":"NAGIOS","component_name":"NAGIOS_SERVER","hosts":"c6401.ambari.apache.org"}}}]},{"batch_settings":{"batch_separation_in_seconds":120,"task_failure_tolerance":1}}]}}]'
http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/request_schedules
{code}
*Request Schedule*:
{code}
{
href:
"http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/request_schedules/23",
RequestSchedule: {
batch: {
batch_requests: [
{
order_id: 1,
request_type: "POST",
request_uri: "/api/v1/clusters/c1/requests",
request_body: "{"RequestInfo":{"context":"Restart
Nagios","command":"RESTART","service_name":"NAGIOS","component_name":"NAGIOS_SERVER","hosts":"c6401.ambari.apache.org"}}",
request_status: "InProgress",
return_code: 202
}
],
batch_settings: {
batch_separation_in_seconds: 120,
task_failure_tolerance_limit: 1
}
},
cluster_name: "c1",
description: null,
id: 23,
last_execution_status: "InProgress",
schedule: null,
status: "SCHEDULED"
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)