ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Speidel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-4467) Create new /blueprints REST endpoint
Date Mon, 03 Feb 2014 16:02:10 GMT

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

John Speidel commented on AMBARI-4467:
--------------------------------------

Thanks again for you feedback Eric.
As Sumit stated, the blueprint spec is focused on the export/import use case for reproducing
existing clusters.
For this use case, it is my opinion that the current mapping works better. By mapping host
group to components, it makes it easier to add hosts by simply specifying a host group.  
This mapping is also what is used in the Savanna OpenStack project which will be an early
consumer of blueprints.
Although I am merging the host_group->component approach, I am still open for debate as
the blueprint is not yet being consumed so it is still a good time to make changes if we need
to.





> Create new /blueprints REST endpoint
> ------------------------------------
>
>                 Key: AMBARI-4467
>                 URL: https://issues.apache.org/jira/browse/AMBARI-4467
>             Project: Ambari
>          Issue Type: New Feature
>            Reporter: John Speidel
>            Assignee: John Speidel
>              Labels: api-addition, blueprints
>             Fix For: 1.5.0
>
>
> Create a new /blueprints REST endpoint. This endpoint represents an 'abstract blueprint'
or 'template' and doesn't contain cluster specific details such specific host information.
> This initial jira will be limited to basic blueprint information and will not contain
configuration elements.  These additional elements will be added in subsequent patches.
> Available operations are get, create and delete.  Update is not supported because blueprints
are immutable.
> Example of a simple blueprint resource:
> {code}
> {
>   "href" : "http://172.18.193.10:8080/api/v1/blueprints/bp1",
>   "host_groups" : [
>     {
>       "name" : "foo",
>       "components" : [
>         {
>           "name" : "component2"
>         },
>         {
>           "name" : "component1"
>         },
>         {
>           "name" : "component4"
>         },
>         {
>           "name" : "component3"
>         }
>       ],
>       "cardinality" : "2"
>     },
>     {
>       "name" : "bar",
>       "components" : [
>         {
>           "name" : "component5"
>         }
>       ],
>       "cardinality" : "1"
>     }
>   ],
>   "Blueprints" : {
>     "blueprint_name" : "bp1",
>     "stack_name" : "HDP",
>     "stack_version" : "1.3.3"
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message