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)
I stumbled upon http://docs.openstack.org/hot-referen... which suggests that only 'Fn::Select' is supported in HOT '2014-10-16' (but should still not fail like you mention). Please change your HOT template version to '2013-05-23' and give it a try.
I checked that but no luck