<tt><font size=2>That doc also says that Ref is not supported in template heat_template_version:
2014-10-16.</font></tt>
<br>
<br><tt><font size=2>Qiming Teng <tengqim@linux.vnet.ibm.com> wrote
on 02/12/2015 05:35:45 AM:<br>
<br>
> From: Qiming Teng <tengqim@linux.vnet.ibm.com></font></tt>
<br><tt><font size=2>> To: openstack@lists.openstack.org</font></tt>
<br><tt><font size=2>> Date: 02/11/2015 09:47 PM</font></tt>
<br><tt><font size=2>> Subject: Re: [Openstack] Fn::FindInMap gives
error in Heat HOT Template</font></tt>
<br><tt><font size=2>> <br>
> I think Thomas was referring to this doc ...<br>
> <br>
> </font></tt><a href=http://docs.openstack.org/developer/heat/template_guide/><tt><font size=2>http://docs.openstack.org/developer/heat/template_guide/</font></tt></a><tt><font size=2><br>
> hot_spec.html#heat-template-verion<br>
> <br>
> <br>
> On Wed, Feb 11, 2015 at 12:18:01AM -0800, Thomas Spatzier wrote:<br>
> > Hi Khayam,<br>
> > <br>
> > the Fn::FindInMap is not supported in HOT as far as I can see
in the code.<br>
> > <br>
> > The list of functions supported in the HOT version you are using
is defined<br>
> > in this part of the code:<br>
> > </font></tt><a href=https://github.com/openstack/heat/blob/master/heat/engine/hot/><tt><font size=2>https://github.com/openstack/heat/blob/master/heat/engine/hot/</font></tt></a><tt><font size=2><br>
> template.py#L274<br>
> > <br>
> > The list for version 2013-05-23 can be found in the same file.<br>
> > I think this should also be covered in docs that get generated
from the<br>
> > sources, but I do not have a link at hand right now.<br>
> > <br>
> > Regards,<br>
> > Thomas<br>
> > <br>
> > > From: Khayam Gondal <khayam.gondal@gmail.com><br>
> > > To: "openstack@lists.openstack.org" <openstack@lists.openstack.org><br>
> > > Date: 11/02/2015 07:03<br>
> > > Subject: [Openstack] Fn::FindInMap gives error in Heat HOT
Template<br>
> > ><br>
> > > In my HOT template heat_template_version: 2014-10-16 I
have a<br>
> > > autoscaling group as<br>
> > > auto_scale_server:<br>
> > >     type: OS::Heat::AutoScalingGroup<br>
> > >     properties:<br>
> > >       min_size: 0<br>
> > >       max_size: { "Fn::FindInMap"
: [ "mirror_map", { "Ref" :<br>
> > "Mirror" } ]}<br>
> > >       resource:<br>
> > >           type: OS::Nova::Server<br>
> > >           properties:<br>
> > >             name: Scaled_Blade<br>
> > >             image: UbuntuDemo<br>
> > >             flavor: g1.disk<br>
> > >             key_name: htor<br>
> > >             networks: [{network:
internal}]<br>
> > > where value of max_size depends upon Property Mirror<br>
> > > In Parameters section<br>
> > > parameters:<br>
> > ><br>
> > >       Mirror:<br>
> > >         type: string<br>
> > >         label: Mirroring Port<br>
> > >         description: Select the Port
on which you want to Mirror the<br>
> > traffic<br>
> > >         constraints:<br>
> > >          - allowed_values:<br>
> > >            - port1<br>
> > >            - fm00<br>
> > ><br>
> > >      Mappings:<br>
> > >         mirror_map:<br>
> > >           fm00: 0<br>
> > >           port1: 1<br>
> > > When I start this template, I got error<br>
> > > ERROR: Invalid key 'mirror_map' for parameter (Mappings)<br>
> > ><br>
> > > P.S I had also changed  HOT template version to '2013-05-23'
but no luck<br>
> > > _______________________________________________<br>
> > > Mailing list:<br>
> > </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</font></tt></a><tt><font size=2><br>
> > > Post to     : openstack@lists.openstack.org<br>
> > > Unsubscribe :<br>
> > </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</font></tt></a><tt><font size=2><br>
> > <br>
> > <br>
> > _______________________________________________<br>
> > Mailing list: </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</font></tt></a><tt><font size=2><br>
> > Post to     : openstack@lists.openstack.org<br>
> > Unsubscribe : </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</font></tt></a><tt><font size=2><br>
> > <br>
> <br>
> <br>
> _______________________________________________<br>
> Mailing list: </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</font></tt></a><tt><font size=2><br>
> Post to     : openstack@lists.openstack.org<br>
> Unsubscribe : </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</font></tt></a><tt><font size=2><br>
> <br>
</font></tt>