[openstack-dev] [Savanna] Definition of template

Jon Maron jmaron at hortonworks.com
Mon Nov 18 14:53:08 UTC 2013


I'd like to suggest that we take a step back and identify the actual requirement(s) we're trying address, independent of the actual implementation (current or otherwise).  Once that requirement is clearly stated, we can think of viable approaches and then, lastly, how the current architecture can be re-configured or modified to accommodate those approaches.  Right now this conversation has the feel of a nebulous requirement being addressed with a kludged approach.

-- Jon

On Nov 13, 2013, at 5:54 PM, Andrey Lazarev <alazarev at mirantis.com> wrote:

> John,
> 
> I think we should either select one of the listed border approaches (no validation or full validation) or define some strict rules on what is allowed and what is not. Otherwise phrases like "at a minimum a cluster template would contain node groups" is a speculation and we will not be able to determine right way to solve them. I can easily suggest any number of concerns like listed above ("cluster template with tt without jt has no sense" , "cluster template should contain at least namenode", etc.). 
> 
> I like idea of no validation for template. If I want to save anti-affinity params in cluster template, but don't know which nodegroups will be used, why can't I do that?      
> 
> Thanks,
> Andrew.
> 
> 
> On Wed, Nov 13, 2013 at 12:23 PM, John Speidel <jspeidel at hortonworks.com> wrote:
> I strongly agree that we should try to keep templates as flexible as possible by allowing some values to be omitted and provided at a later time.  But, in this case, we are talking about cluster templates without any node groups being specified.  I think that at a minimum a cluster template would contain node groups but could omit the node group counts which could be provided at launch time.  This makes a lot of sense.  But, in my opinion, without at least specifying the set of node groups in a cluster template, configuration really wouldn't make sense and therefore the template would not be of much/any value.
> 
> 
> On Wed, Nov 13, 2013 at 10:08 AM, Alexander Ignatov <aignatov at mirantis.com> wrote:
> Hi, Andrew
> 
> Agreed with your opinion. Initially Savanna’s templates approach is the option 1 you are talking about. 
> This was designed at the start of Savanna 0.2 release cycle. It was also documented here: https://wiki.openstack.org/wiki/Savanna/Templates . 
> Maybe some points are outdated but the idea is the same as the option 1: user can create cluster template and don’t need to specify all fields, for example ’node_groups’ field. And these fields, both required and optional, can be overwritten in the cluster object even if it contains ‘cluster_template_id’.
> 
> I see you raised this question because of patch https://review.openstack.org/#/c/56060/. I think it’s just a bug in the validation level not in api.
> 
> I also agree that we should change UI part accordingly, at least add an ability for users to override fields set in cluster and node group templates during the cluster creation.
> 
> Regards,
> Alexander Ignatov
> 
> 
> 
> On 12 Nov 2013, at 23:20, Andrey Lazarev <alazarev at mirantis.com> wrote:
> 
>> Hi all,
>> 
>> I want to raise the question "What template is". Answer to this question could influence UI, validation and user experience significantly. I see two possible answers:
>> 1. Template is a simplification for object creation. It allows to keep common params in one place and not specify them each time. 
>> 2. Template is a full description of object. User should be able to create object from template without specifying any params.
>> 
>> As I see the current approach is the option 1, but UI is done mostly for option 2. This leads to situations when user creates incomplete template (backend allows it because of option 1), but can't use it later (UI doesn't allow to work with incomplete templates).
>> 
>> Let's define common vision on how will we treat templates and document this somehow.
>> 
>> My opinion is that we should proceed with the option 1 and change UI accordingly.    
>> 
>> Thanks,
>> Andrew
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> 
> 
> CONFIDENTIALITY NOTICE
> NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131118/d3e65452/attachment.html>


More information about the OpenStack-dev mailing list