Re: [Openstack] Fn::FindInMap gives error in Heat HOT Template

2015-02-11 Thread Thomas Spatzier
Hi Khayam,

the Fn::FindInMap is not supported in HOT as far as I can see in the code.

The list of functions supported in the HOT version you are using is defined
in this part of the code:
https://github.com/openstack/heat/blob/master/heat/engine/hot/template.py#L274

The list for version 2013-05-23 can be found in the same file.
I think this should also be covered in docs that get generated from the
sources, but I do not have a link at hand right now.

Regards,
Thomas

> From: Khayam Gondal 
> To: "openstack@lists.openstack.org" 
> Date: 11/02/2015 07:03
> Subject: [Openstack] Fn::FindInMap gives error in Heat HOT Template
>
> In my HOT template heat_template_version: 2014-10-16 I have a
> autoscaling group as
> auto_scale_server:
> type: OS::Heat::AutoScalingGroup
> properties:
>   min_size: 0
>   max_size: { "Fn::FindInMap" : [ "mirror_map", { "Ref" :
"Mirror" } ]}
>   resource:
>   type: OS::Nova::Server
>   properties:
> name: Scaled_Blade
> image: UbuntuDemo
> flavor: g1.disk
> key_name: htor
> networks: [{network: internal}]
> where value of max_size depends upon Property Mirror
> In Parameters section
> parameters:
>
>   Mirror:
> type: string
> label: Mirroring Port
> description: Select the Port on which you want to Mirror the
traffic
> constraints:
>  - allowed_values:
>- port1
>- fm00
>
>  Mappings:
> mirror_map:
>   fm00: 0
>   port1: 1
> When I start this template, I got error
> ERROR: Invalid key 'mirror_map' for parameter (Mappings)
>
> P.S I had also changed  HOT template version to '2013-05-23' but no luck
> ___
> Mailing list:
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe :
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] Heat Orchestration

2014-04-23 Thread Thomas Spatzier
Hi Prabhu,


there a few HOT samples in the heat-templates repo [1] that show how
neutron networks get created or used within a HOT template. It might be
worth to check them out.


https://github.com/openstack/heat-templates/blob/master/hot/servers_in_existing_neutron_net.yaml

https://github.com/openstack/heat-templates/blob/master/hot/servers_in_existing_neutron_network_no_floating_ips.yaml

https://github.com/openstack/heat-templates/blob/master/hot/servers_in_new_neutron_net.yaml


General information on HOT (short guide [2] and spec [3]) are available as
part of the developer docs, which also provides a list of all the resources
(See "OpenStack Resource Types in [4]) you can use in Heat templates.


Hope this helps.


[1] https://github.com/openstack/heat-templates
[2] http://docs.openstack.org/developer/heat/template_guide/hot_guide.html
[3] http://docs.openstack.org/developer/heat/template_guide/hot_spec.html
[4] http://docs.openstack.org/developer/heat/template_guide/


Regards,
Thomas



prabhuling kalyani  wrote on 23/04/2014 08:14:41:

> From: prabhuling kalyani 
> To: openstack@lists.openstack.org
> Date: 23/04/2014 08:26
> Subject: [Openstack] Heat Orchestration
>
> Hi,
> I am trying to understand the heat Orchestration phenomenon.
> I want to know if heat can create networks or if they need to be
> created upfront.
> Would help a lot if there is any documentation for HOT
> Thanks a lot
> - Prabhu___
> Mailing list:
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe :
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack