<div dir="ltr"><div>Hello, <br><br></div>I've been reading through the thread and the wiki pages and I'm still confused by the terms. Is there a clear definition of what do we understand by component from user's and developer's point of view. If I write "component, type:MySQL" what is behind that definition? I mean how does the system know what exactly MySQL is and how to install it? What MySQL version is it gonna be? Will it be x86 or x64? How does the system understand that I need MySQL for Windows on Windows VM rather then Linux MySQL? What do I as a developer need to do so that it would be possible to have "type: MyCoolComponentType"?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 22, 2013 at 8:35 PM, Thomas Spatzier <span dir="ltr"><<a href="mailto:thomas.spatzier@de.ibm.com" target="_blank">thomas.spatzier@de.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Zane Bitter <<a href="mailto:zbitter@redhat.com">zbitter@redhat.com</a>> wrote on 22.10.2013 17:23:52:<br>
<div class="im">> From: Zane Bitter <<a href="mailto:zbitter@redhat.com">zbitter@redhat.com</a>><br>
> To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>,<br>
</div>> Date: 22.10.2013 17:26<br>
<div><div class="h5">> Subject: Re: [openstack-dev] [Heat] HOT Software configuration proposal<br>
><br>
> On 22/10/13 16:35, Thomas Spatzier wrote:<br>
> > Zane Bitter <<a href="mailto:zbitter@redhat.com">zbitter@redhat.com</a>> wrote on 22.10.2013 15:24:28:<br>
> >> From: Zane Bitter <<a href="mailto:zbitter@redhat.com">zbitter@redhat.com</a>><br>
> >> To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>,<br>
> >> Date: 22.10.2013 15:27<br>
> >> Subject: Re: [openstack-dev] [Heat] HOT Software configuration<br>
proposal<br>
> >><br>
> >> On 22/10/13 09:15, Thomas Spatzier wrote:<br>
> >>> BTW, the convention of properties being input and attributes being<br>
> > output,<br>
> >>> i.e. that subtle distinction between properties and attributes is not<br>
> >>> really intuitive, at least not to me as non-native speaker, because I<br>
> > used<br>
> >>> to use both words as synonyms.<br>
> >><br>
> >> As a native speaker, I can confidently state that it's not intuitive<br>
to<br>
> >> anyone ;)<br>
> ><br>
> > Phew, good to read that ;-)<br>
> ><br>
> >><br>
> >> We unfortunately inherited these names from the Properties section and<br>
> >> the Fn::GetAtt function in cfn templates. It's even worse than that,<br>
> >> because there's a whole category of... uh... things (DependsOn,<br>
> >> DeletionPolicy, &c.) that don't even have a name - I always have to<br>
> >> resist the urge to call them 'attributes' too.<br>
> ><br>
> > So is this something we should try to get straight in HOT while we<br>
still<br>
> > have the flexibility?<br>
><br>
> Y-yes. Provided that we can do it without making things *more*<br>
> confusing, +1. That's hard though, because there are a number of places<br>
> we have to refer to them, all with different audiences:<br>
> - HOT users<br>
> - cfn users<br>
> - Existing developers<br>
> - New developers<br>
> - Plugin developers<br>
><br>
> and using different names for the same thing can cause problems. My test<br>
> for this is: if you were helping a user on IRC debug an issue, is there<br>
> a high chance you would spend 15 minutes talking past each other because<br>
> they misunderstand the terminology?<br>
<br>
</div></div>Hm, good point. Seems like it would really cause more confusion than it<br>
helps. So back away from the general idea of renaming things that exist<br>
both in cfn and HOT.<br>
What we should try of course is to give new concepts that will only exist<br>
in HOT intuitive names.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> > Regarding properties/attributes for example, to me I would call both<br>
just<br>
> > properties of a resource or component, and then I can write them or<br>
read<br>
> > them like:<br>
> ><br>
> > components:<br>
> > my_component:<br>
> > type: ...<br>
> > properties:<br>
> > my_prop: { get_property: [ other_component,<br>
other_component_prop ] }<br>
> ><br>
> > other_component:<br>
> > # ...<br>
> ><br>
> > I.e. you write property 'my_prop' of 'my_component' in its properties<br>
> > section, and you read property 'other_component_prop' of<br>
'other_component'<br>
> > using the get_property function.<br>
> > ... we can also call them attributes, but use one name, not two<br>
different<br>
> > names for the same thing.<br>
><br>
> IMO inputs (Properties) and outputs (Fn::GetAtt) are different things<br>
> (and they exist in different namespaces), so -1 for giving them the same<br>
> name.<br>
><br>
> In an ideal world I'd like HOT to use something like get_output_data (or<br>
> maybe just get_data), but OTOH we have e.g. FnGetAtt() and<br>
> attributes_schema baked in to the plugin API that we can't really<br>
> change, so it seems likely to lead to developers and users adopting<br>
> different terminology, or making things very difficult for new<br>
> developers, or both :(<br>
><br>
> cheers,<br>
> Zane.<br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="font-family:arial;font-size:small">Sincerely yours<br>
Stanislav (Stan) Lagun<br>Senior Developer<br>Mirantis</span></span><br><span style="border-collapse:separate;color:rgb(0,0,0);font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="font-family:arial;font-size:small"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"" lang="EN-US">35b/3, Vorontsovskaya
St.</span><br>Moscow, Russia<br>Skype: stanlagun<br><a href="http://www.mirantis.com/" target="_blank">www.mirantis.com</a><br><a href="mailto:slagun@mirantis.com" target="_blank">slagun@mirantis.com</a></span></span></div>
</div>