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 <aigna...@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 <alaza...@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 > OpenStackemail@example.com > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > > > _______________________________________________ > OpenStack-dev mailing list > OpenStackfirstname.lastname@example.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 OpenStackemail@example.com http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev