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

Reply via email to