[openstack-dev] [Savanna] Definition of template

Alexander Ignatov aignatov at mirantis.com
Wed Nov 13 15:08:32 UTC 2013

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.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131113/6c8ad69d/attachment.html>

More information about the OpenStack-dev mailing list