Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-4306

Request Schedule status not updated for Point in time execution request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • ambari-server
    • None

    Description

      API call:

      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
      

      Request Schedule:

      {
      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"
      }
      }
      

      Attachments

        1. AMBARI-4306.patch
          18 kB
          Siddharth Wagle

        Issue Links

          Activity

            People

              swagle Siddharth Wagle
              swagle Siddharth Wagle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: