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

Update Service Group API to take list of mpack name associated with the service group

    XMLWordPrintableJSON

Details

    Description

      Today service group API is not associated with any mpacks. We need to store this association by adding "mpacks" field to the request. Note at present we will restrict a service group to be associated to a single mpack (i.e. EDW-MKTG service group will be associated with only EDW mpack and so all services in EDW-MKTG service group should be installed from EDW mpack. However note that from the API and DB schema perspective we need to future proof so that we can support installing services from multiple mpacks in the same service group.

      POST /clusters/c1/servicegroups
      [
        {
          "ServiceGroupInfo": {
            "service_group_name": "CORE",
            "mpacks": [
              {
                "name": "HDPCORE"
              }
            ]
          }
        },
        {
          "ServiceGroupInfo": {
            "service_group_name": "EDW-MKTG",
            "mpacks": [
              {
                "name": "EDW"
              }
            ]
          }
        },
        {
          "ServiceGroupInfo": {
            "service_group_name": "EDW-FINANCE",
            "mpacks": [
              {
                "name": "EDW"
              }
            ]
          }
        }
      ]
      

      Attachments

        Activity

          People

            sduan Scott Duan
            sduan Scott Duan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 19h 20m
                19h 20m