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

Auto-start services: Backend API and DB changes for component auto start

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server

    Description

      Add a new field recovery_enabled in servicecomponentdesiredstate and provide API support for PUT and GET.

      Type: PUT
      Request 1: api/v1/clusters/<cluster_name>/components?ServiceComponentInfo/component_name.in(<enabled_component_names>)
      Request Params: application/json
      {
      ServiceComponentInfo:

      { “recovery_enabled”: “true” }

      }

      Request 2:
      api/v1/clusters/<cluster_name>/components?ServiceComponentInfo/component_name.in(<disabled_component_names>)
      Request Params: application/json
      {
      ServiceComponentInfo:

      { recovery_enabled: “false” }

      }

      Request 3:
      api/v1/clusters/testcluster/components/<component_name>
      Request Params: application/json
      '{"ServiceComponentInfo" : {"recovery_enabled":"false"}}'

      Type:GET
      Request: api/v1/clusters/<cluster_name>/components?fields=ServiceComponentInfo/component_name,ServiceComponentInfo/service_name,ServiceComponentInfo/category,ServiceComponentInfo/recovery_enabled

      Attachments

        1. rb43671.patch
          37 kB
          Nahappan Somasundaram

        Issue Links

          Activity

            People

              smnaha Nahappan Somasundaram
              smnaha Nahappan Somasundaram
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: