ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Wagle (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-4306) Request Schedule status not updated for Point in time execution request
Date Wed, 15 Jan 2014 23:26:23 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13872787#comment-13872787
] 

Siddharth Wagle commented on AMBARI-4306:
-----------------------------------------

The Request Schedule status will be updated based on following rules:
- Check if any trigger exists for the first job
- Check if trigger exists, then it will fire in the future

If both of the above and untrue, mark RequestSchedule status as COMPLETED

> 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
>
>         Attachments: AMBARI-4306.patch
>
>
> *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)

Mime
View raw message