Scott Duan created AMBARI-22878:
-----------------------------------

             Summary: Update Service Group API to take list of mpack name 
associated with the service group
                 Key: AMBARI-22878
                 URL: https://issues.apache.org/jira/browse/AMBARI-22878
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 3.0.0
            Reporter: Scott Duan
             Fix For: 3.0.0


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.

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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to