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

Khayam Gondal khayam.gondal at gmail.com
Wed Feb 11 05:50:37 UTC 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150211/11ecd537/attachment.html>


More information about the Openstack mailing list